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

Port ArraySort to function-arrays subcrate #9551

Merged
merged 3 commits into from
Mar 12, 2024
Merged

Port ArraySort to function-arrays subcrate #9551

merged 3 commits into from
Mar 12, 2024

Conversation

erenavsarogullari
Copy link
Member

@erenavsarogullari erenavsarogullari commented Mar 11, 2024

Which issue does this PR close?

Closes #9550

What changes are included in this PR?

This PR aims to do following changes in terms of Epic #9285:
1- ArraySort is ported to function-arrays subcrate,
2- ScalarUDFImpl. return_type has been implemented to support input types: List, FixedSizeList and LargeList,
3- Function Documentation is updated.

Are these changes tested?

Yes, all array.slt based array_sort tests are passed.

Are there any user-facing changes?

No

@github-actions github-actions bot added logical-expr Logical plan and expressions physical-expr Physical Expressions sqllogictest SQL Logic Tests (.slt) labels Mar 11, 2024
@@ -182,7 +182,7 @@ CREATE TABLE array_agg_distinct_list_table AS VALUES
('b', [0,1])
;

# Apply array_sort to have determinisitic result, higher dimension nested array also works but not for array sort,
# Apply array_sort to have deterministic result, higher dimension nested array also works but not for array sort,
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

Copy link
Contributor

@jayzhan211 jayzhan211 left a comment

Choose a reason for hiding this comment

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

LGTM

@jayzhan211 jayzhan211 merged commit d2fc02b into apache:main Mar 12, 2024
24 checks passed
@jayzhan211
Copy link
Contributor

Thanks @erenavsarogullari

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
logical-expr Logical plan and expressions physical-expr Physical Expressions sqllogictest SQL Logic Tests (.slt)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Port ArraySort to function-arrays subcrate
2 participants