Add standalone example of using the SQL frontend
Which issue does this PR close?
Part of https://github.com/apache/datafusion/issues/10855
Rationale for this change
The current rewrite_expr.rs example has three distinct examples:
- Using DataFusion LogicalPlanning without execution
- Implementing an
AnalyzerRule - Implementing an
OptimizerRule
Each I think should be its own example to make them easier to find and more full featured
What changes are included in this PR?
- Add example
sql_frontend.rs - Improve documentation of TableSource trait
Are these changes tested?
Yes by CI
Are there any user-facing changes?
@andygrove or @jdye64 I wonder if you might have some time to review this PR as I think it is relevant to to your use of DataFusion
I am working on getting the CI to run successfully on this PR, see https://github.com/apache/datafusion/pull/11173
🤔 this might also make https://github.com/apache/datafusion/blob/main/datafusion/sql/examples/sql.rs redundant
Thanks everyone for the comments and feedback