You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are some difficulties in supporting UDFs with @Parameter(...) Row and @Parameter(...) Predicate1:
Each parameter type should be translatable to Calcite RelDataType.
If we want to translate Row type to Calcite RelRecordType, then we need to have an ability to somehow pass a Schema of that Row. This is currently not implemented in registering UDFs.
There is no an appropriate Calcite RelDataType for lambda types.
At the moment when UDF is applied, we have all Rows in form of Object[]. And Object[] cannot be automatically cast to Row.
What would you like to happen?
I want to create a new UDF which supports a lambda parameter and a Row parameter, for example
But beam SQL throws an exception like this
sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl cannot be cast to java.lang.Class
Issue Priority
Priority: 2 (default / most feature requests should be filed as P2)
Issue Components
The text was updated successfully, but these errors were encountered: