Skip to content

Conversation

@zhuqi-lucas
Copy link
Contributor

Which issue does this PR close?

Rationale for this change

Add rewrite for order by limit 1, but limit to only project to the column which we order by.

What changes are included in this PR?

Add rewrite for order by limit 1, but limit to only project to the column which we order by.

Are these changes tested?

Yes

Are there any user-facing changes?

No

@github-actions github-actions bot added the optimizer Optimizer rules label Nov 6, 2025
@zhuqi-lucas zhuqi-lucas changed the title Rewrite limit 1 Rewrite order by limit 1 to Min/Max aggregate Nov 6, 2025
@zhuqi-lucas zhuqi-lucas marked this pull request as draft November 6, 2025 14:26
@github-actions github-actions bot added the functions Changes to functions implementation label Nov 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

functions Changes to functions implementation optimizer Optimizer rules

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant