Skip to content

fix(parser): handle parenthesized scalar subquery comparisons - #381

Open
AntoineGS wants to merge 1 commit into
DerekStride:mainfrom
AntoineGS:feat/parenthesized-subquery
Open

AntoineGS wants to merge 1 commit into
DerekStride:mainfrom
AntoineGS:feat/parenthesized-subquery

Conversation

@AntoineGS

@AntoineGS AntoineGS commented Sep 27, 2026 •

Copy link
Copy Markdown

Separate query bodies from statement-level parentheses and retain nested table subqueries through explicit ambiguity handling. This handles cases like:

SELECT 1 + (SELECT MAX(price) FROM products);

where SELECT MAX(price) FROM products) is the scalar subquery.

Tests included!

Separate query bodies from statement-level parentheses and retain nested
table subqueries through explicit ambiguity handling.
This handles cases like SELECT 1 + (SELECT MAX(price) FROM products);
where the inner SELECT is a scalar subquery.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant