Support countdistinct pushdown#1457
Merged
tisonkun merged 18 commits intopingcap:masterfrom Mar 10, 2021
tisonkun:pushdown-distinct-aggregation
Merged
Support countdistinct pushdown#1457tisonkun merged 18 commits intopingcap:masterfrom tisonkun:pushdown-distinct-aggregation
tisonkun merged 18 commits intopingcap:masterfrom
tisonkun:pushdown-distinct-aggregation
Conversation
Signed-off-by: tison <wander4096@gmail.com>
Contributor
Author
|
/run-all-tests |
Contributor
Author
|
/rebuild |
Contributor
Author
|
/run-all-tests |
Contributor
Author
|
/run-all-tests |
Contributor
Author
|
/rebuild |
Contributor
Author
|
/run-all-tests |
Contributor
Author
|
@hanfei1991 @windtalker PTAL |
Member
|
A little question: What does the kvproto change for? |
Contributor
Author
We don't have effective change for kvproto, maybe polluted casually, reverting... |
Member
|
/LGTM |
Contributor
Author
|
/run-all-tests |
Contributor
Author
|
/run-all-tests |
windtalker
reviewed
Mar 10, 2021
windtalker
reviewed
Mar 10, 2021
Contributor
Author
|
/run-all-tests |
Contributor
Author
|
@windtalker please take a look. |
ti-srebot
approved these changes
Mar 10, 2021
Contributor
Author
|
Thanks for your reviews! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What problem does this PR solve?
Issue Number: ref #1428
co pingcap/tidb#22867
Problem Summary:
Support count distinct pushdown.
What is changed and how it works?
Proposal: Pushing down DISTINCT AGG in MPP
What's Changed:
Update
contrib/tipbto respectExpr.has_distinct. When the flag istrue, append agg_func_name withDistinctsuffix.Also replace
countdistinctwith implementation insettings, which is the same logic.Workaround -Null Combinator to bypass count distinct with
nullvalue. An elegant impl could follow with ClickHouse/ClickHouse#11661Related changes
pingcap/docs/pingcap/docs-cn:Check List
Tests
Side effects
N/A
Release note