You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BoundQuery could be created for each parenthesis, even though they are not considered as a Subquery
I see.
In the non-subquery or scalar-subquery case, extra levels of parentheses are Expr::Nested, including 1 + (((select 2))). There is a single Expr::Subquery and a single Query. This covers 1 + (((select 2) + 3) + 4).
But for subqueries with its own syntax, extra levels of parentheses are SetExpr::Query, including exists(((select 2))). There is a single Expr::Subquery with multiple Query levels, to accommodate exists(((select 2) union (select 3)) union (select 4))
Let me open an issue to track whether these two should be unified, especially the unsupported 1 < any(((select 2))) is parsed as case A today be may belong to case B.
I see.
In the non-subquery or scalar-subquery case, extra levels of parentheses are
Expr::Nested
, including1 + (((select 2)))
. There is a singleExpr::Subquery
and a singleQuery
. This covers1 + (((select 2) + 3) + 4)
.But for subqueries with its own syntax, extra levels of parentheses are
SetExpr::Query
, includingexists(((select 2)))
. There is a singleExpr::Subquery
with multipleQuery
levels, to accommodateexists(((select 2) union (select 3)) union (select 4))
Let me open an issue to track whether these two should be unified, especially the unsupported
1 < any(((select 2)))
is parsed as case A today be may belong to case B.Originally posted by @xiangjinwu in #14430 (review)
To view the parsed ast:
cargo run --bin sqlparser <<< '(((select 2)));'
The text was updated successfully, but these errors were encountered: