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

[bugfix] ScalarFunctionExpr does not preserve the nullable flag on roundtrip #13830

Merged
merged 3 commits into from
Dec 19, 2024

Conversation

ccciudatu
Copy link
Contributor

Which issue does this PR close?

Closes #13829.

Rationale for this change

Preserve the nullable flag for scalar functions after a ser/deser roundtrip.

What changes are included in this PR?

  • a test to showcase the bug
  • the fix, consisting in adding the nullable field in the proto file and using it to propagate the flag on serialization.

Are these changes tested?

The first commit is a test that fails and the subsequent commits make it pass.

Are there any user-facing changes?

No

@github-actions github-actions bot added the proto Related to proto crate label Dec 18, 2024
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 @ccciudatu -- this looks like a good fix and good test coverage to me.

@alamb alamb merged commit 3467011 into apache:main Dec 19, 2024
25 checks passed
@alamb
Copy link
Contributor

alamb commented Dec 19, 2024

Thanks again ❤️

@ccciudatu ccciudatu deleted the coalesce-round-trip branch December 19, 2024 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proto Related to proto crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ScalarFunctionExpr does not preserve the nullable flag on serialization roundtrip
2 participants