Skip to content
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

Support multi column IN lists #8590

Conversation

my-vegetable-has-exploded
Copy link
Contributor

Which issue does this PR close?

Closes #6635.

Rationale for this change

What changes are included in this PR?

  • Currently, I use BuiltinScalarFunction::Struct to represent struct. sql_expr_to_logical_expr_internal return Result<Expr>, but Struct(Option<Vec<ScalarValue>>, Fields) need ScalarValue, I think it is ok to let physical-expr to handle the downcast process.
  • add type-coercion for struct.

Are these changes tested?

Here is the draft pr. I feel like this is enough to finish the issue. Maybe you can take a first look when you are free.

I will add some tests after apache/arrow-rs#5217 merged and version updated.

Are there any user-facing changes?

@github-actions github-actions bot added sql SQL Planner logical-expr Logical plan and expressions labels Dec 20, 2023
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

This looks very neat @my-vegetable-has-exploded -- the only other thing this PR needs I think is some end to end .slt tests and then it would be good to go

@alamb
Copy link
Contributor

alamb commented Dec 22, 2023

BTW filed apache/arrow-rs#5234 to track releasing the next arrow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
logical-expr Logical plan and expressions sql SQL Planner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support multi column IN lists like (c1, c2) IN ((c1, c2), ,,,)
2 participants