Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support parsing SQL strings to Exprs #10995

Merged
merged 11 commits into from
Jun 23, 2024
Merged

Conversation

xinlifoobar
Copy link
Contributor

Which issue does this PR close?

Closes #8736

Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@xinlifoobar xinlifoobar marked this pull request as draft June 19, 2024 10:44
@github-actions github-actions bot added sql SQL Planner core Core DataFusion crate labels Jun 19, 2024
@xinlifoobar xinlifoobar changed the title Draft parse_sql Support parsing SQL strings to Exprs Jun 20, 2024
@xinlifoobar xinlifoobar marked this pull request as ready for review June 20, 2024 07:13
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this looks great -- thank you so much @xinlifoobar

I have some suggestions that could make the examples / code easier to read, but they could be done as follow on PRs too. I think the code is really nice. Well done 🏆

cc @Omega359 @jiacai2050 @devinjdangelo @backkem and @Jefffrey as you expressed interest in #8736

datafusion/core/src/dataframe/mod.rs Outdated Show resolved Hide resolved
datafusion/core/src/dataframe/mod.rs Outdated Show resolved Hide resolved
datafusion/core/src/execution/context/mod.rs Outdated Show resolved Hide resolved
datafusion/core/src/execution/session_state.rs Outdated Show resolved Hide resolved
datafusion-examples/examples/parse_sql_expr.rs Outdated Show resolved Hide resolved
datafusion-examples/examples/parse_sql_expr.rs Outdated Show resolved Hide resolved
@github-actions github-actions bot added logical-expr Logical plan and expressions physical-expr Physical Expressions optimizer Optimizer rules sqllogictest SQL Logic Tests (.slt) substrait labels Jun 22, 2024
@xinlifoobar xinlifoobar marked this pull request as draft June 22, 2024 14:03
@github-actions github-actions bot removed the logical-expr Logical plan and expressions label Jun 22, 2024
@github-actions github-actions bot removed physical-expr Physical Expressions optimizer Optimizer rules sqllogictest SQL Logic Tests (.slt) substrait labels Jun 22, 2024
@xinlifoobar
Copy link
Contributor Author

xinlifoobar commented Jun 22, 2024

Sorry for the confusions... I merged a bad local main and messed up the histories. Fixed up.

@xinlifoobar xinlifoobar marked this pull request as ready for review June 22, 2024 14:11
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great -- thanks again @xinlifoobar

@alamb alamb merged commit 6f10dbc into apache:main Jun 23, 2024
23 checks passed
findepi pushed a commit to findepi/datafusion that referenced this pull request Jul 16, 2024
* Draft parse_sql

* Allow stirng pass

* Complete sql to expr support

* Add examples

* Add unit tests

* Fix format

* Remove async for trival operation and add parquet demo

* Fix comments

* fix comments

* fix comments

* Fix doc link
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Core DataFusion crate sql SQL Planner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support parsing SQL strings to Exprs
3 participants