samuelcolvin commented on issue #10180: URL: https://github.com/apache/datafusion/issues/10180#issuecomment-2074760696
ye, `return_type_from_exprs` doesn't help. I got around it mostly, with I think good performance by rewriting the query when there's a cast, so: ```sql select * from foo where json_get(attributes, 'bar')::string='ham' ``` Will be rewritten to: ```sql select * from foo where json_get_str(attributes, 'bar')='ham' ``` The main requirement I have now is that the error when you do try to compare a union is more helpful and less ugly. -- 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