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 Dictionary and List types in scalar_to_sql #14346

Merged
merged 5 commits into from
Feb 5, 2025

Conversation

cetra3
Copy link
Contributor

@cetra3 cetra3 commented Jan 29, 2025

Rationale for this change

Adds more support for ScalarValue variants in scalar_to_sql

What changes are included in this PR?

Includes support for lists and dictionary type scalars.

Are these changes tested?

Tests have been added for the ScalarValue::Dictionary and ScalarValue::List variants

Are there any user-facing changes?

There are no breaking/user-facing changes

@github-actions github-actions bot added the sql SQL Planner label Jan 29, 2025
@alamb
Copy link
Contributor

alamb commented Feb 3, 2025

Thanks @cetra3 -- I think this PR needs to be merged up from main -- the PR currently has a fialure due to a logical conflict

@alamb alamb changed the title Add more supported options to scalar_to_sql Support Dictionary types in scalar_to_sql Feb 3, 2025
@alamb alamb changed the title Support Dictionary types in scalar_to_sql Support Dictionary and List types in scalar_to_sql Feb 3, 2025
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.

Looks good to me -- thank you @cetra3

FYI @phillipleblanc

"'foo'",
),
(
Expr::Literal(ScalarValue::List(Arc::new(
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you please also add a test for LargeList?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Copy link
Contributor

@phillipleblanc phillipleblanc left a comment

Choose a reason for hiding this comment

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

Thanks!

@alamb
Copy link
Contributor

alamb commented Feb 5, 2025

🚀

@alamb alamb merged commit 68ee07f into apache:main Feb 5, 2025
25 checks passed
@alamb
Copy link
Contributor

alamb commented Feb 5, 2025

Thanks again @cetra3 and @phillipleblanc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sql SQL Planner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants