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

Remove redundant ORDER BY in INSERT queries #19916

Merged
merged 1 commit into from
Nov 28, 2023

Conversation

miniway
Copy link
Contributor

@miniway miniway commented Nov 27, 2023

Description

After Trino 423, Trino could not remove redundant ORDER BY in CREATE TABLE AS and INSERT queries.

For CTAS, 87f405a has fixed the issue. We should remove redundant ORDER BY in INSERT query also

Additional context and related issues

Release notes

( ) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
(x) Release notes are required, with the following suggested text:

# Section
* Improve performance of INSERT ... SELECT queries that contain a redundant ORDER BY clause.

@cla-bot cla-bot bot added the cla-signed label Nov 27, 2023
@electrum electrum requested a review from martint November 28, 2023 06:14
@martint martint merged commit aceb19e into trinodb:master Nov 28, 2023
@github-actions github-actions bot added this to the 434 milestone Nov 28, 2023
@miniway miniway deleted the redundant_order_by branch November 29, 2023 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants