Skip to content

Restore Sort unparser guard for correct ORDER BY placement (v2)#20923

Open
alamb wants to merge 4 commits intoapache:mainfrom
alamb:viktor/fix-unparser-origin
Open

Restore Sort unparser guard for correct ORDER BY placement (v2)#20923
alamb wants to merge 4 commits intoapache:mainfrom
alamb:viktor/fix-unparser-origin

Conversation

@alamb
Copy link
Contributor

@alamb alamb commented Mar 13, 2026

Which issue does this PR close?

Rationale for this change

Fixes a regression in the unparser introduced in Datafusion 52, as described by @krinart in #20658

I can't fix #20658 because I can't push to the fork, so I made a new PR to resolve a merge conflict and apply some suggestions

What changes are included in this PR?

  1. Start with Restore Sort unparser guard for correct ORDER BY placement #20658
  2. Merge up from main and resolve a conflict

Are these changes tested?

By CI and new tests

Are there any user-facing changes?

Bug fix

@alamb alamb changed the title Restore Sort unparser guard for correct ORDER BY placement (replacement) Restore Sort unparser guard for correct ORDER BY placement (v2) Mar 13, 2026
@krinart
Copy link
Contributor

krinart commented Mar 14, 2026

Apologies for not updating original PR - was busy last couple days.

Thanks @alamb!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect ORDER BY in unparser after DF 52 upgrade

2 participants