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

Fix unparsing offset #12539

Merged
merged 1 commit into from
Sep 20, 2024
Merged

Fix unparsing offset #12539

merged 1 commit into from
Sep 20, 2024

Conversation

Stazer
Copy link
Contributor

@Stazer Stazer commented Sep 19, 2024

Which issue does this PR close?

Closes #12538.

Rationale for this change

What changes are included in this PR?

I have added a missing block for unparsing OFFSET.

Are these changes tested?

Yes. Unit-Tests are provided.

Are there any user-facing changes?

No.

@github-actions github-actions bot added the sql SQL Planner label Sep 19, 2024
Copy link
Contributor

@phillipleblanc phillipleblanc left a comment

Choose a reason for hiding this comment

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

Looks great, thanks!

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.

Thank you @Stazer and @phillipleblanc for the reivew

@alamb
Copy link
Contributor

alamb commented Sep 20, 2024

Looks like there are some small CI failures on this PR

@alamb alamb merged commit 5f424d3 into apache:main Sep 20, 2024
24 checks passed
@alamb
Copy link
Contributor

alamb commented Sep 20, 2024

🚀 -- thanks again

sgrebnov pushed a commit to spiceai/datafusion that referenced this pull request Oct 23, 2024
sgrebnov added a commit to spiceai/datafusion that referenced this pull request Oct 24, 2024
* init (apache#12453)

* Fix unparse table scan with the projection pushdown (apache#12534)

* unparse the projection base on the source schema

* refactor and enhance the test

* Fix unparsing OFFSET (apache#12539)

* Unparse Sort with pushdown limit to SQL string (apache#12873)

* unparse Sort with push down limit

* cargo fmt

* set query limit directly

* Unparse `SubqueryAlias` without projections to SQL (apache#12896)

* change pub function comment to doc

* unparse subquery alias without projections

* fix tests

* rollback the empty line

* rollback the empty line

* exclude the table_scan with pushdown case

* fmt and clippy

* simplify the ast to string and remove unused debug code

* enhance unparsing plan with pushdown to avoid unnamed subquery (apache#13006)

* Update

---------

Co-authored-by: Lordworms <[email protected]>
Co-authored-by: Jax Liu <[email protected]>
Co-authored-by: Justus Flerlage <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sql SQL Planner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix unparsing OFFSET
3 participants