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
I had searched in the feature and found no similar feature requirement.
Description
Currently, in the SQL conversion of SeaTunnel, the COALESCE(args0, args1, args2, ...) function does not support casting args1 or args2 to the type of args0.
For example, args0 is of string type, args1 is of int type, and args2 is of double type, which will cause the wrong data type to be passed to the downstream. We should cast the data to the type indicated by args0(string).
Current Behavior
When trying to use COALESCE function directly on a string field:
SELECT COALESCE(str_field, 1) FROM my_table
Will output data type 1 <-> int
Expected Behavior
The COALESCE function should automatically handle type conversion, converting any other type to args0 type output
Search before asking
Description
Currently, in the SQL conversion of SeaTunnel, the
COALESCE(args0, args1, args2, ...)
function does not support casting args1 or args2 to the type of args0.For example, args0 is of string type, args1 is of int type, and args2 is of double type, which will cause the wrong data type to be passed to the downstream. We should cast the data to the type indicated by args0(string).
Current Behavior
When trying to use
COALESCE
function directly on a string field:Will output data type 1 <-> int
Expected Behavior
The
COALESCE
function should automatically handle type conversion, converting any other type toargs0
type outputChanges
Usage Scenario
No response
Related issues
No response
Are you willing to submit a PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: