Skip to content

fix: correctly specify the nullability of map_values return type #15901

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

Merged
merged 2 commits into from
May 1, 2025

Conversation

rluvaton
Copy link
Contributor

Which issue does this PR close?

N/A

but related to:

Rationale for this change

The map_values UDF does not specify correctly the nullability of the result list.

when the input map array is nullable the output list is nullable, when the input map array values is nullable, the output list items are nullable

What changes are included in this PR?

updated map_values to use return_type_from_args

Are these changes tested?

yes

Are there any user-facing changes?

yes

@rluvaton rluvaton marked this pull request as draft April 30, 2025 10:54
@rluvaton rluvaton marked this pull request as ready for review April 30, 2025 11:02
@rluvaton
Copy link
Contributor Author

rluvaton commented Apr 30, 2025

The broken tests are failing on main as well:

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.

Thank you @rluvaton

@alamb
Copy link
Contributor

alamb commented Apr 30, 2025

I merged this PR up from main to get the fix for CI failures

@rluvaton
Copy link
Contributor Author

Thanks, there is another failure in CI which is unrelated

@alamb
Copy link
Contributor

alamb commented Apr 30, 2025

Thanks, there is another failure in CI which is unrelated

I re-started the failed CI check

@alamb alamb merged commit 026a2b1 into apache:main May 1, 2025
27 checks passed
@alamb
Copy link
Contributor

alamb commented May 1, 2025

Thanks again @rluvaton

@rluvaton rluvaton deleted the fix-return-type branch May 1, 2025 06:30
nirnayroy pushed a commit to nirnayroy/datafusion that referenced this pull request May 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants