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 checked and found that Spark has the same behavior as PostgreSQL. Maybe we should use a different coercion rule for this since the current comparison_coercion is also used by union.
I checked and found that Spark has the same behavior as PostgreSQL. Maybe we should use a different coercion rule for this since the current comparison_coercion is also used by union.
I agree we should split the coercion rules for union and binary comparison
Describe the bug
A comparison like
column1 < '10'
(wherecolumn1
is an int64) will castcolumn1
to utf8 instead of casting the utf8 constant to an integer.Typically string constants in a sql query are treated as unknown, and preference should be on casting the "unknown" value to a target type.
To Reproduce
Expected behavior
column1
not to be cast to a string.Postgres output:
Additional context
No response
The text was updated successfully, but these errors were encountered: