Skip to content

Support try_from_array and eq_array for ScalarValue::Union - #12208

Merged
alamb merged 1 commit into
apache:mainfrom
coralogix:scalar-union
Sep 5, 2024
Merged

alamb merged 1 commit into
apache:mainfrom
coralogix:scalar-union

Conversation

@joroKr21

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Part of #2326

Rationale for this change

Extending support for union types to primitive operations.

What changes are included in this PR?

Added support for DataType::Union to ScalarValue::try_from_array and ScalarValue::eq_array.

Are these changes tested?

Added unit tests (we don't have slt tests yet, see #10161)

Are there any user-facing changes?

Not directly, but more functions will work on union types.

@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.

Makes sense to me -- than you @joroKr21

@alamb

alamb commented Sep 5, 2024

Copy link
Copy Markdown
Contributor

🚀

@alamb
alamb merged commit d6f3f73 into apache:main Sep 5, 2024
@joroKr21
joroKr21 deleted the scalar-union branch September 5, 2024 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

common Related to common crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants