alamb commented on issue #16756:
URL: https://github.com/apache/datafusion/issues/16756#issuecomment-3612456922

   @geoffreyclaude made a really nice PR with examples of extending SQL 
relations to implement PIVOT/UNPIVOT, TABLESAMPLE, etc
   - https://github.com/apache/datafusion/pull/17843
   
   I think two good examples we could use in the blog post are:
   1. support custom operators (adapt the example from 
https://github.com/apache/datafusion/blob/0f83c1d233499e80fd9b0baf89dd624099c1d1ba/datafusion/core/tests/user_defined/expr_planner.rs#L42-L41)
   2. Supporting custom syntax (like `TABLESAMPLE`, `PIVOT`, etc) from 
https://github.com/apache/datafusion/pull/17843
   
   
   So we could also enumerate the possible places to customize planning:
   1. expression planning with `ExprPlanner`
   2. type planning with `TypePlanner`
   3. after https://github.com/apache/datafusion/pull/17843, relation planning 
with `RelationPlanner`
   


-- 
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]

Reply via email to