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

Re-generate UDFs affected by signature::variadic_equal disappearance in DataFusion #74

Merged
merged 1 commit into from
Aug 9, 2024

Conversation

vgapeyev
Copy link
Contributor

@vgapeyev vgapeyev commented Aug 9, 2024

These are the re-generated UDFs adjusting to the disappearance of DataFusion's signature::TypeSignature::VariadicEqual in apache/datafusion#10439

In DataFusion, this was replaced with the new signature::TypeSignature::UserDefined, which comes with a new method ScalarUDFImpl::coerce_types (to be user-implemented) that DF calls to preprocess actual arguments before passing them to the invoke method.
This is not something that is suitable to our more statically-checked setting, so this PR replaces VariadicEqual with VariadicAny. It's a worse approximation to SDF function signatures, but that's only important for "documentation"-like purposes; SDF typechecking and execution are not affected.

Updated version of make-functions, adjusting for the disappearance of DataFusion's `signature::TypeSignature::VariadicEqual`.
@vgapeyev vgapeyev merged commit aff4d89 into main Aug 9, 2024
1 check passed
@vgapeyev vgapeyev deleted the vlad/no-variadic_uniform branch August 9, 2024 19:38
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