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

Added array_any_value function #12329

Merged
merged 2 commits into from
Sep 12, 2024
Merged

Conversation

athultr1997
Copy link
Contributor

@athultr1997 athultr1997 commented Sep 4, 2024

Which issue does this PR close?

Closes #10812

Rationale for this change

Introduces new array function to get the first non-null value from an array.

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@github-actions github-actions bot added documentation Improvements or additions to documentation sqllogictest SQL Logic Tests (.slt) proto Related to proto crate labels Sep 4, 2024
@athultr1997 athultr1997 marked this pull request as draft September 4, 2024 18:42
@athultr1997 athultr1997 marked this pull request as ready for review September 4, 2024 19:27
Copy link
Member

@Weijun-H Weijun-H left a comment

Choose a reason for hiding this comment

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

Thanks @athultr1997 , I think this pr is very close, and I left some minor to improve.

datafusion/functions-nested/src/extract.rs Outdated Show resolved Hide resolved
@athultr1997 athultr1997 force-pushed the athultr/array_any_value branch 2 times, most recently from c1faf36 to 21b9524 Compare September 5, 2024 04:03
Copy link
Member

@Weijun-H Weijun-H left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks @athultr1997

@Weijun-H
Copy link
Member

Weijun-H commented Sep 6, 2024

@jayzhan211 could you have time to review this pr?

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 @athultr1997 and @Weijun-H -- I reviewed the tests and it looks like good coverage to me. I have a suggestion for some additional coverage but it could be done as a follow on PR

datafusion/sqllogictest/test_files/array.slt Show resolved Hide resolved
----
1 h NULL
1 h NULL 1
Copy link
Contributor

Choose a reason for hiding this comment

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

❤️

@alamb
Copy link
Contributor

alamb commented Sep 11, 2024

Thanks @athultr1997 and @Weijun-H

@alamb
Copy link
Contributor

alamb commented Sep 12, 2024

🚀

@alamb alamb merged commit 5e4ab59 into apache:main Sep 12, 2024
25 checks passed
@athultr1997 athultr1997 deleted the athultr/array_any_value branch September 15, 2024 04:21
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation proto Related to proto crate sqllogictest SQL Logic Tests (.slt)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support array_any_value
4 participants