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 am going to close this one as I can't figure out what this ticket is tracking
I think the current error message is pretty straightforward:
❯ select abs('123');
Error during planning: No function matches the given name and argument types 'abs(Utf8)'. You might need to add explicit type casts.
Candidate functions:
abs(Float64/Float32)
I am not sure what this issue is tracking any more. Is the requested feature to support automatically cocercing strings to some type?
Describe the bug
In the pg database, the abs support varchar data type
But the result in the datafusion is
In other size, the returned type of abs is the input type.
If the input type is int, the returned type must be the int.
If the result data is out of range, PG will throw error message.
but in the datafusion, it convert the
-2147483648
to INT64To Reproduce
execute the sql
Expected behavior
the result of type is always double
Additional context
The text was updated successfully, but these errors were encountered: