Skip to content

Remove redundant DISTINCT#44176

Merged
devcrafter merged 44 commits intomasterfrom
igor/remove_redundant_distinct
Feb 17, 2023
Merged

Remove redundant DISTINCT#44176
devcrafter merged 44 commits intomasterfrom
igor/remove_redundant_distinct

Conversation

@devcrafter
Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Improvement

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):

Remove redundant DISTINCT clauses in query (subqueries). Implemented on top of query plan. It does similar optimization as optimize_duplicate_order_by_and_distinct regarding DISTINCT clauses. Can be enabled via query_plan_remove_redundant_distinct setting. Related to #42648

@devcrafter devcrafter force-pushed the igor/remove_redundant_distinct branch from d41aa2b to 60d5862 Compare December 12, 2022 22:39
@devcrafter devcrafter changed the base branch from igor/remove_redundant_order_by to master December 12, 2022 22:39
@devcrafter devcrafter marked this pull request as draft December 12, 2022 22:39
- it doesn't consider prefixes yet
@devcrafter devcrafter force-pushed the igor/remove_redundant_distinct branch from 60d5862 to db6e1ac Compare December 12, 2022 22:41
@robot-ch-test-poll2 robot-ch-test-poll2 added the pr-improvement Pull request with some product improvements label Dec 12, 2022
@devcrafter devcrafter marked this pull request as ready for review December 16, 2022 11:29
@devcrafter devcrafter marked this pull request as draft December 21, 2022 15:20
@devcrafter
Copy link
Copy Markdown
Member Author

Need to wait for DISTINCT fix in Planner. Currently, Planner creates only preliminary DISTINCT steps.

@devcrafter devcrafter added the do not test disable testing on pull request label Jan 25, 2023
@devcrafter devcrafter removed the do not test disable testing on pull request label Jan 25, 2023
Copy link
Copy Markdown
Member

@KochetovNicolai KochetovNicolai left a comment

Choose a reason for hiding this comment

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

Generally GLTM

@devcrafter devcrafter merged commit 0bad474 into master Feb 17, 2023
@devcrafter devcrafter deleted the igor/remove_redundant_distinct branch February 17, 2023 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-improvement Pull request with some product improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants