Skip to content

Support Union types in ScalarValue - #9683

Merged
avantgardnerio merged 6 commits into
apache:mainfrom
coralogix:bg_upstream_panic
Mar 19, 2024
Merged

avantgardnerio merged 6 commits into
apache:mainfrom
coralogix:bg_upstream_panic

Conversation

@avantgardnerio

@avantgardnerio avantgardnerio commented Mar 18, 2024 •

Copy link
Copy Markdown
Contributor

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

@thinkharderdev thinkharderdev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

One comment but lgtm

Comment thread datafusion/common/src/scalar/mod.rs
@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

@alamb alamb left a comment

Copy link
Copy Markdown
Contributor

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

Comment thread datafusion/common/src/scalar/mod.rs
Comment thread datafusion/common/src/scalar/mod.rs Outdated
@avantgardnerio
avantgardnerio merged commit 8074ca1 into apache:main Mar 19, 2024
@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