-
Notifications
You must be signed in to change notification settings - Fork 5
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
feat: Subquery - ANY, ALL and IN support #142
Conversation
// This will be extended with `AnyAll` type. | ||
/// ANY(...) / ALL(...) | ||
AnyAll, | ||
// [NOT] IN(...) is not defined as it is implicitly evaluated as ANY = (...) / ALL <> (...) // This will be extended with `AnyAll` type. |
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.
Legacy comment: // This will be extended with `AnyAll` type.
@@ -341,8 +344,19 @@ impl Subquery { | |||
pub fn transform_field(field: &Field, typ: SubqueryType) -> Field { | |||
match typ { | |||
SubqueryType::Scalar => field.clone(), | |||
SubqueryType::Exists => Field::new(field.name(), DataType::Boolean, false), | |||
// Field will be transformed for `AnyAll` as well | |||
SubqueryType::Exists => Field::new(field.name(), DataType::Boolean, false), // Field will be transformed for `AnyAll` as well |
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.
Legacy comment: // Field will be transformed for `AnyAll` as well
@@ -1039,18 +1039,140 @@ async fn test_binary_any() -> Result<()> { | |||
// utf8 | |||
test_expression!("'a' = ANY(['a', 'b'])", "true"); | |||
test_expression!("'c' = ANY(['a', 'b'])", "false"); | |||
//test_expression!("'c' = ANY(['a', NULL])", "NULL"); |
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.
Is this test commented out intentionally?
215a977
to
fcacb68
Compare
545d684
to
2dbfc49
Compare
2dbfc49
to
74024b6
Compare
Which issue does this PR close?
Closes #.
Rationale for this change
What changes are included in this PR?
Are there any user-facing changes?