LiaCastaneda opened a new pull request, #22326:
URL: https://github.com/apache/datafusion/pull/22326
## Which issue does this PR close?
No issue — this is a follow-up to #21679.
## Rationale for this change
In `ScalarUDF`, arity is enforced by the framework via `TypeSignature`. In
`HigherOrderUDF`, functions with a fixed number of value and lambda arguments
had to use `UserDefined` and manually validate arity inside
`coerce_value_types`, which is boilerplate that every implementor has to repeat.
## What changes are included in this PR?
Adds `HigherOrderTypeSignature::Exact { values: usize, lambdas: usize }
`variant that enforces a fixed count of value and lambda arguments, calling
coerce_value_types only for type coercion
## Are these changes tested?
<!--
We typically require tests for all PRs in order to:
1. Prevent the code from being accidentally broken by subsequent changes
2. Serve as another way to document the expected behavior of the code
If tests are not included in your PR, please explain why (for example, are
they covered by existing tests)?
-->
## Are there any user-facing changes?
<!--
If there are user-facing changes then we may require documentation to be
updated before approving the PR.
-->
<!--
If there are any breaking changes to public APIs, please add the `api
change` label.
-->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]