-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rewrite array @> array
and array <@ array
in sql_expr_to_logical_expr
#11155
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1225,22 +1225,6 @@ fn select_binary_expr_nested() { | |
quick_test(sql, expected); | ||
} | ||
|
||
#[test] | ||
fn select_at_arrow_operator() { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we add an explain test? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think it is needed since we don't really care about how it looks in plan. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe we can make sure |
||
let sql = "SELECT left @> right from array"; | ||
let expected = "Projection: array.left @> array.right\ | ||
\n TableScan: array"; | ||
quick_test(sql, expected); | ||
} | ||
|
||
#[test] | ||
fn select_arrow_at_operator() { | ||
let sql = "SELECT left <@ right from array"; | ||
let expected = "Projection: array.left <@ array.right\ | ||
\n TableScan: array"; | ||
quick_test(sql, expected); | ||
} | ||
|
||
#[test] | ||
fn select_wildcard_with_groupby() { | ||
quick_test( | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
forgot to remove in previous PR