Skip to content

expression: Push down group concat to TiFlash#24778

Merged
ti-chi-bot merged 27 commits intopingcap:masterfrom
fzhedu:PushDownGroupConcat
Aug 30, 2021
Merged

expression: Push down group concat to TiFlash#24778
ti-chi-bot merged 27 commits intopingcap:masterfrom
fzhedu:PushDownGroupConcat

Conversation

@fzhedu
Copy link
Contributor

@fzhedu fzhedu commented May 20, 2021

What problem does this PR solve?

Issue Number: close pingcap/tiflash#1908

Problem Summary: push down group_concat() to TiFlash (it is not pushed down to TiKV also).

What is changed and how it works?

Proposal: implemention doc

What's Changed:

How it Works:

Related changes

  • PR to update pingcap/docs/pingcap/docs-cn:
  • Need to cherry-pick to the release branch

Check List

Tests

  • Integration test

Release note

push down group_concat to TiFlash

@fzhedu fzhedu requested a review from lzmhhh123 May 20, 2021 04:10
@fzhedu fzhedu requested review from a team as code owners May 20, 2021 04:10
@ti-chi-bot
Copy link
Member

ti-chi-bot commented May 20, 2021

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • hanfei1991
  • rebelice

To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer in the comment.
After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer in the comment to help you merge this pull request.

The full list of commands accepted by this bot can be found here.

Details

Reviewer can indicate their review by submitting an approval review.
Reviewer can cancel approval by submitting a request changes review.

@ti-chi-bot ti-chi-bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label May 20, 2021
@fzhedu fzhedu requested review from hanfei1991 and windtalker May 20, 2021 04:10
@sre-bot
Copy link
Contributor

sre-bot commented May 20, 2021

Please follow PR Title Format:

  • pkg [, pkg2, pkg3]: what's changed

Or if the count of mainly changed packages are more than 3, use

  • *: what's changed

@fzhedu fzhedu changed the title Push down group concat to TiFlash expression: Push down group concat to TiFlash May 20, 2021
@ti-chi-bot ti-chi-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 22, 2021
@wshwsh12 wshwsh12 removed the request for review from a team June 18, 2021 08:33
Copy link
Contributor

@lzmhhh123 lzmhhh123 left a comment

Choose a reason for hiding this comment

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

@fzhedu Please fix the ci and rebase the branch.

@fzhedu fzhedu force-pushed the PushDownGroupConcat branch from 0558148 to 1bead62 Compare August 4, 2021 02:45
@ti-chi-bot ti-chi-bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 4, 2021
Copy link
Contributor

Choose a reason for hiding this comment

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

I think since we already add orderBy field in pb expression, agg_to_pb can support OrderByItems for any aggregation functions. If an aggregation function with OrderByItems is not functionally supported by TiKV or TiFlash, it should be filtered out by function CheckAggPushDown

Copy link
Contributor Author

Choose a reason for hiding this comment

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

so we can not check it here?

Copy link
Member

Choose a reason for hiding this comment

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

Agreed with windtalker. This check is unnesessary.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok

Copy link
Contributor

Choose a reason for hiding this comment

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

maybe add a new function CheckAggPushTiKV?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, we can implement CheckAggPushTiKV after more cases, but now this case exists only for groupConcat, so I do not implement it.

Copy link
Contributor

Choose a reason for hiding this comment

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

maybe adding a comment here would reduce confusion

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok

Copy link
Contributor

Choose a reason for hiding this comment

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

This is a indepandent bug fix?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is introduced due to the special case for groupConcat code

This is a indepandent bug fix?

@ti-chi-bot ti-chi-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 8, 2021
@fzhedu fzhedu force-pushed the PushDownGroupConcat branch from 273bf0f to d6a71d9 Compare August 9, 2021 09:29
@ti-chi-bot ti-chi-bot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Aug 9, 2021
@ti-chi-bot ti-chi-bot added the do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. label Aug 10, 2021
@fzhedu fzhedu requested review from lzmhhh123 and windtalker August 10, 2021 13:00
@fzhedu fzhedu force-pushed the PushDownGroupConcat branch from f06cef6 to 789ea66 Compare August 11, 2021 01:54
@fzhedu
Copy link
Contributor Author

fzhedu commented Aug 11, 2021

/run-check_dev_2

@fzhedu
Copy link
Contributor Author

fzhedu commented Aug 12, 2021

/run-all-tests

@ti-chi-bot ti-chi-bot added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Aug 22, 2021
@fzhedu fzhedu force-pushed the PushDownGroupConcat branch from 103f918 to 828dc24 Compare August 30, 2021 04:31
@ti-chi-bot ti-chi-bot added the status/LGT1 Indicates that a PR has LGTM 1. label Aug 30, 2021
Copy link
Contributor

@ichn-hu ichn-hu left a comment

Choose a reason for hiding this comment

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

LGTM

@ti-chi-bot
Copy link
Member

@ichn-hu: Thanks for your review. The bot only counts approvals from reviewers and higher roles in list, but you're still welcome to leave your comments.

Details

In response to this:

LGTM

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository.

@ti-chi-bot ti-chi-bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. and removed do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. labels Aug 30, 2021
@fzhedu
Copy link
Contributor Author

fzhedu commented Aug 30, 2021

/merge

@ti-chi-bot
Copy link
Member

@fzhedu: /merge is only allowed for the committers, you can assign this pull request to the committer in list by filling /assign @committer in the comment to help merge this pull request.

Details

In response to this:

/merge

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository.

@ti-chi-bot ti-chi-bot added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Aug 30, 2021
@rebelice
Copy link
Contributor

/merge

@ti-chi-bot
Copy link
Member

This pull request has been accepted and is ready to merge.

DetailsCommit hash: 828dc24

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Aug 30, 2021
@ti-chi-bot ti-chi-bot merged commit f50dd1f into pingcap:master Aug 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/expression release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/planner SIG: Planner size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support group concat distinct agg function push down

9 participants