datafusion-comet
datafusion-comet copied to clipboard
feat: Implement Spark-compatible CAST from Numeric to Binary
Which issue does this PR close?
https://github.com/apache/datafusion-comet/issues/405, https://github.com/apache/datafusion-comet/issues/377
Closes #.
Rationale for this change
What changes are included in this PR?
How are these changes tested?
I am getting
Cannot resolve "TRY_CAST(a AS BINARY)" due to data type mismatch: cannot cast "BIGINT" to "BINARY"
In non ANSI Mode and respectfully for all other INT types. It is actually the behavior from spark without comet which confuses me as I was expecting it to work or at least return null.
Cannot resolve "TRY_CAST(a AS BINARY)" due to data type mismatch: cannot cast "BIGINT" to "BINARY"
Where did you get the error? Looks like BigInt to Binary is okay to cast.
@mattharder91 I will close this PR for now since it has been inactive for a while. Feel free to reopen this or create a new PR if you continue work on this.