Skip to content

Remove redundant ORDER BY in INSERT queries#19916

Merged
martint merged 1 commit intotrinodb:masterfrom
miniway:redundant_order_by
Nov 28, 2023
Merged

Remove redundant ORDER BY in INSERT queries#19916
martint merged 1 commit intotrinodb:masterfrom
miniway:redundant_order_by

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