Skip to content

feat: to_array_of_size for ScalarValue::FixedSizeList #8225

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Nov 16, 2023

Conversation

wjones127
Copy link
Member

Which issue does this PR close?

Closes #8220

Rationale for this change

I found this was needed for using literal fixed size lists in DataFusion physical expressions.

What changes are included in this PR?

Implements eq_array and to_array_of_size for ScalarValue::FixedSizeList.

Are these changes tested?

A new unit test is added for each function.

Are there any user-facing changes?

I've updated the documentation to reflect that this is now supported.

@github-actions github-actions bot added the optimizer Optimizer rules label Nov 15, 2023
@wjones127 wjones127 changed the base branch from main to fsl-scalar-arrayref November 15, 2023 21:12
@wjones127
Copy link
Member Author

This is stacked on #8221. The base should automatically change when we merge that one, although I may need to rebase.

@wjones127 wjones127 marked this pull request as ready for review November 15, 2023 23:24
Base automatically changed from fsl-scalar-arrayref to main November 16, 2023 17:05
@github-actions github-actions bot removed the optimizer Optimizer rules label Nov 16, 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.

LGTM -- thank you @wjones127

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Complete FixedSizeList Scalar support
2 participants