jayzhan211 commented on PR #13404: URL: https://github.com/apache/datafusion/pull/13404#issuecomment-2506916421
An alternative approach is that we need to differentiate `string literal` and `varchar` like Postgres an DuckDB. Only untyped `string literal` is able to cast to any other types, so we have the *implicit casting* for query like `select ascii(42);` but not `select ascii(42::VARCHAR)` @jonathanc-n Your solution in this PR might not return error for `select ascii(42::VARCHAR)`, you might need to find a way to take `string literal` as an `unknown` or `untyped`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org