Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
rm useless test
Signed-off-by: jayzhan211 <[email protected]>
  • Loading branch information
jayzhan211 committed Jun 28, 2024
commit 3fb54895f32492769ebfd284572bc9db1374aeaa
4 changes: 2 additions & 2 deletions datafusion/sql/src/expr/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ impl<'a, S: ContextProvider> SqlToRel<'a, S> {
vec![left, right],
)));
} else {
return internal_err!("array_append not found");
return internal_err!("array_prepend not found");
}
}
} else if matches!(op, Operator::AtArrow | Operator::ArrowAt) {
Expand All @@ -177,7 +177,7 @@ impl<'a, S: ContextProvider> SqlToRel<'a, S> {
)));
}
} else {
return internal_err!("array_append not found");
return internal_err!("array_has_all not found");
}
}
}
Expand Down
16 changes: 0 additions & 16 deletions datafusion/sql/tests/sql_integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1225,22 +1225,6 @@ fn select_binary_expr_nested() {
quick_test(sql, expected);
}

#[test]
fn select_at_arrow_operator() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add an explain test?

Copy link
Contributor Author

Choose a reason for hiding this comment

The 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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can make sure array_has_all is applied 🤔

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(
Expand Down