alamb opened a new issue, #10855: URL: https://github.com/apache/datafusion/issues/10855
### Is your feature request related to a problem or challenge? We have an example for writing a user defined optimizer rule in https://github.com/apache/datafusion/blob/3773fb7fb54419f889e7d18b73e9eb48069eb08e/datafusion/core/tests/user_defined/user_defined_plan.rs#L251 However, we don't have a corresponding example for writing a user defined AnalyzerRule which also means the APIs for using them are complicated (see https://github.com/apache/datafusion/pull/10849 for example) ### Describe the solution you'd like The idea example I think would be ti Add a file to https://github.com/apache/datafusion/tree/3773fb7fb54419f889e7d18b73e9eb48069eb08e/datafusion-examples `user_defined_analyzer.rs` Perhaps the example could show how to create an `AnalyzerRule` that replaced an experssion like `a / b` with a function call `safe_div(a, b)` where `save_div` ### Describe alternatives you've considered _No response_ ### Additional context _No response_ -- 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]
