jayzhan211 commented on issue #10180: URL: https://github.com/apache/datafusion/issues/10180#issuecomment-2072405561
I take a look a bit, I found that your `return_type` is `Union`, but If I understand correctly, you should compute the return type based on args. For example, your test `json_get(json_data, 'foo')`, if you compute the return_type based on `foo`, you return `Int`, then you will not meet the error. The error is because Union is not yet supported in `comparison_coercion` -- 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