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
{{ message }}
Repository navigation
[FEATURE] Support function parameter coercion with Calcite #3761
Before introducing Calcite, when input parameter types of a function don't match with its expected types, it will try to coerce the parameter type with the expected types.
However, such mechanism isn't in place in current implementations with Calcite. This results in multiple problems. For example:
when input is a literal and the expected type is a date, it will not automatically coerce the literal to a date. Instead, it requires that the function supports string type as an input. (CalciteDateTimeFunctionIT.testUnixTimestampWithTimestampString)
when the input is long and the expected type is only integer (SqlTypeName.INTEGER), it can't resolve the function call to a known implementation.
What solution would you like?
Implement function type parameter coercion with Calcite.
Activity