Skip to content

feat(proto): udf decoding fallback #15997

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

leoyvens
Copy link
Contributor

@leoyvens leoyvens commented May 8, 2025

Falls back to the codec hook when the UDF is not present in the SessionContext.

Which issue does this PR close?

Rationale for this change

We need this for more flexible logical plan decoding.

Are these changes tested?

There isn't a lot of test coverage for this code, but there is one test that has a different error message now.

Are there any user-facing changes?

This conservatively avoids any breaking changes for users of datafusion-proto.

@github-actions github-actions bot added the proto Related to proto crate label May 8, 2025
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 @leoyvens -- this looks like a nice change to me

I worry that without test coverage we will break the functionality in the future. Is there any way we can add tests that would fail if this code got accidentally broken/reverted in the future?

@leoyvens leoyvens force-pushed the proto-udf-decoding-fallback branch from 672b023 to a3b47fc Compare May 8, 2025 23:00
@leoyvens
Copy link
Contributor Author

leoyvens commented May 9, 2025

@alamb thanks for your review, I've extended a test to cover this.

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.

More flexible udf decoding in datafusion-proto
2 participants