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 Union types in ScalarValue #9683

Merged
merged 6 commits into from
Mar 19, 2024

Conversation

avantgardnerio
Copy link
Contributor

@avantgardnerio avantgardnerio commented Mar 18, 2024

Which issue does this PR close?

Closes #8499.
Closes #8500

Rationale for this change

It was decided in the linked issue that implementing the variant was the preferred solution.

What changes are included in this PR?

Implement the ScalarValue::Union variant.

Are these changes tested?

Via a functional test.

Are there any user-facing changes?

More queries should work.

@github-actions github-actions bot added the sql SQL Planner label Mar 18, 2024
@avantgardnerio avantgardnerio marked this pull request as ready for review March 18, 2024 20:55
Copy link
Contributor

@thinkharderdev thinkharderdev left a comment

Choose a reason for hiding this comment

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

One comment but lgtm

datafusion/common/src/scalar/mod.rs Show resolved Hide resolved
@alamb alamb changed the title Fix union panic Support Union types when building AnalysisContext::try_from_column Mar 18, 2024
@avantgardnerio avantgardnerio requested a review from tustvold March 19, 2024 13:13
@alamb alamb changed the title Support Union types when building AnalysisContext::try_from_column Support Union types in ScalarValue and when building AnalysisContext::try_from_column Mar 19, 2024
@alamb alamb changed the title Support Union types in ScalarValue and when building AnalysisContext::try_from_column Support Union types in ScalarValue Mar 19, 2024
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.

Thanks @avantgardnerio

I think this also closes #8500 so added that to the PR description and changed the title to match

datafusion/common/src/scalar/mod.rs Show resolved Hide resolved
datafusion/common/src/scalar/mod.rs Outdated Show resolved Hide resolved
@avantgardnerio avantgardnerio merged commit 8074ca1 into apache:main Mar 19, 2024
23 checks passed
@avantgardnerio avantgardnerio deleted the bg_upstream_panic branch March 19, 2024 18:14
avantgardnerio added a commit to coralogix/arrow-datafusion that referenced this pull request Mar 27, 2024
Support Union types in `ScalarValue`  (apache#9683)

(cherry picked from commit 8074ca1)
avantgardnerio added a commit to coralogix/arrow-datafusion that referenced this pull request Mar 27, 2024
avantgardnerio added a commit to coralogix/arrow-datafusion that referenced this pull request Mar 27, 2024
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.

Add ScalarValue::Union variant Union types not handled when building AnalysisContext::try_from_column
3 participants