Closed
Description
Is your feature request related to a problem or challenge?
We have an example for writing a user defined optimizer rule in
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 #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