alamb commented on PR #13117: URL: https://github.com/apache/datafusion/pull/13117#issuecomment-2439494427
> Maybe we should have a form of validator of logical plan well-formedness (union branches match, the types match exactly) and the check would go there. I think this is what the the type coercion analyzer pass already does. If the goal is to provide users errors sooner (when DataFrame is created) rather than later (when DataFrame is run) some other ideas: 1. Add a function to DataFrame (`DataFrame::optimize`, `DataFrame::validate`, `DataFrame::check` that runs) 2. Add some configuration / option that runs coercion logic automatically on each DataFrame call -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
