alamb opened a new issue, #15267:
URL: https://github.com/apache/datafusion/issues/15267

   ### Is your feature request related to a problem or challenge?
   
   By default DataFusion doesn't support many operators, for example `->`
   
   ```sql
   > set datafusion.sql_parser.dialect = postgres;
   0 row(s) fetched.
   Elapsed 0.001 seconds.
   
   > select 'foo'->'bar';
   This feature is not implemented: Unsupported SQL binary operator Arrow
   ```
   
   However, you can use the `ExprPlanner` API to support htem
   - There is a lower level API that lets you customize how expressions are 
planned, here: 
https://docs.rs/datafusion/latest/datafusion/logical_expr/planner/trait.ExprPlanner.html
   - 
https://docs.rs/datafusion/latest/datafusion/execution/trait.FunctionRegistry.html#method.register_expr_planner
   
   However, when @dadepo asked about this in 
https://github.com/apache/datafusion/discussions/15264 it was not clear it was 
supported
   
   After some digging I found an example in our tests:
   
https://github.com/apache/datafusion/blob/87eec43856a5d8cefef24d1ff85d375d2b58d8c2/datafusion/core/tests/user_defined/expr_planner.rs#L35-L124
   
   
   
   ### Describe the solution you'd like
   
   I would like a secton in in the [docs](https://datafusion.apache.org) that 
has an example of how to do this
   
   Perhaps in this page: 
https://datafusion.apache.org/library-user-guide/adding-udfs.html
   Or maybe it needs its own page 🤔 
   
   ### 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: github-unsubscr...@datafusion.apache.org.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

Reply via email to