findepi opened a new issue, #12272: URL: https://github.com/apache/datafusion/issues/12272
### Is your feature request related to a problem or challenge? I as a user want to be able to inspect type of expressions. Example usage is to inspect different sides of the comparison (column vs expression) to make sure there is no implicit cast preventing or limiting predicate pushdown. The type inspection should also help me write a CAST. ### Describe the solution you'd like A function similar to `arrow_typeof` which reveals the SQL type of an expression. ### Describe alternatives you've considered Using `arrow_typeof` function. Teturn result of that function cannot be used in a CAST: ``` DataFusion CLI v41.0.0 > SELECT arrow_typeof('a'); +-------------------------+ | arrow_typeof(Utf8("a")) | +-------------------------+ | Utf8 | +-------------------------+ 1 row(s) fetched. Elapsed 0.015 seconds. > SELECT CAST('a' AS Utf8); This feature is not implemented: Unsupported SQL type Custom(ObjectName([Ident { value: "Utf8", quote_style: None }]), []) ``` ### Additional context None -- 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.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