You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "alamb (via GitHub)" <gi...@apache.org> on 2025/12/04 14:11:59 UTC
Re: [I] [BLOG] Blog post about writing your own SQL dialect / extending SQL with DataFusion [datafusion]
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: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org