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

planner: fix order-by grouping set expressions resolution may have already been resolved to grouping column already #45745

Merged
merged 3 commits into from Aug 3, 2023

Conversation

AilinKid
Copy link
Contributor

@AilinKid AilinKid commented Aug 2, 2023

What problem does this PR solve?

Issue Number: close #45715

Problem Summary:

What is changed and how it works?

order-by grouping set expressions resolution may have already been resolved to grouping column already
so when resolve the args of grouping function, the column/expression substitution is not always necessary

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)
  • No code

Side effects

  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Breaking backward compatibility

Documentation

  • Affects user behaviors
  • Contains syntax changes
  • Contains variable changes
  • Contains experimental features
  • Changes MySQL compatibility

Release note

Please refer to Release Notes Language Style Guide to write a quality release note.

planner: fix order-by grouping set expressions resolution may have already been resolved to grouping column already

…n resolved to grouping column already

Signed-off-by: AilinKid <314806019@qq.com>
@ti-chi-bot ti-chi-bot bot added release-note size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Aug 2, 2023
@tiprow
Copy link

tiprow bot commented Aug 2, 2023

Hi @AilinKid. Thanks for your PR.

PRs from untrusted users cannot be marked as trusted with /ok-to-test in this repo meaning untrusted PR authors can never trigger tests themselves. Collaborators can still trigger tests on the PR using /test all.

I understand the commands that are listed here.

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 kubernetes/test-infra repository.

@codecov
Copy link

codecov bot commented Aug 2, 2023

Codecov Report

Merging #45745 (95aca0e) into master (412fa13) will increase coverage by 0.0305%.
Report is 8 commits behind head on master.
The diff coverage is 100.0000%.

Additional details and impacted files
@@               Coverage Diff                @@
##             master     #45745        +/-   ##
================================================
+ Coverage   73.3314%   73.3620%   +0.0305%     
================================================
  Files          1271       1274         +3     
  Lines        392954     393653       +699     
================================================
+ Hits         288159     288792       +633     
- Misses        86415      86462        +47     
- Partials      18380      18399        +19     
Flag Coverage Δ
integration 78.1388% <ø> (?)
unit 73.3538% <100.0000%> (+0.0223%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
dumpling 54.0444% <ø> (ø)
parser 85.0359% <ø> (-0.0109%) ⬇️
br 52.0255% <ø> (+0.0271%) ⬆️

…case test

Signed-off-by: AilinKid <314806019@qq.com>
Copy link
Contributor

@elsa0520 elsa0520 left a comment

Choose a reason for hiding this comment

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

LGTM

@AilinKid
Copy link
Contributor Author

AilinKid commented Aug 2, 2023

/test unit-test

@tiprow
Copy link

tiprow bot commented Aug 2, 2023

@AilinKid: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/test unit-test

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 kubernetes/test-infra repository.

Signed-off-by: AilinKid <314806019@qq.com>
@ti-chi-bot
Copy link

ti-chi-bot bot commented Aug 3, 2023

[LGTM Timeline notifier]

Timeline:

  • 2023-08-02 08:47:47.034926722 +0000 UTC m=+261550.977275250: ☑️ agreed by elsa0520.
  • 2023-08-03 03:50:33.829423725 +0000 UTC m=+330117.771772254: ☑️ agreed by guo-shaoge.

@AilinKid
Copy link
Contributor Author

AilinKid commented Aug 3, 2023

/test check_dev_2

@ti-chi-bot
Copy link

ti-chi-bot bot commented Aug 3, 2023

@AilinKid: The specified target(s) for /test were not found.
The following commands are available to trigger required jobs:

  • /test build
  • /test canary-scan-security
  • /test check-dev
  • /test check-dev2
  • /test mysql-test
  • /test pingcap/tidb/canary_ghpr_unit_test
  • /test pull-br-integration-test
  • /test pull-common-test
  • /test pull-e2e-test
  • /test pull-integration-common-test
  • /test pull-integration-copr-test
  • /test pull-integration-ddl-test
  • /test pull-integration-jdbc-test
  • /test pull-integration-mysql-test
  • /test pull-mysql-connector-test
  • /test pull-sqllogic-test
  • /test pull-tiflash-test
  • /test unit-test

The following commands are available to trigger optional jobs:

  • /test pull-notify-when-compatibility-sections-changed

Use /test all to run the following jobs that were automatically triggered:

  • pingcap/tidb/ghpr_build
  • pingcap/tidb/ghpr_check
  • pingcap/tidb/ghpr_check2
  • pingcap/tidb/ghpr_mysql_test
  • pingcap/tidb/ghpr_unit_test

In response to this:

/test check_dev_2

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 kubernetes/test-infra repository.

@AilinKid
Copy link
Contributor Author

AilinKid commented Aug 3, 2023

/test check-dev2

@tiprow
Copy link

tiprow bot commented Aug 3, 2023

@AilinKid: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/test check_dev_2

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 kubernetes/test-infra repository.

@tiprow
Copy link

tiprow bot commented Aug 3, 2023

@AilinKid: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/test check-dev2

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 kubernetes/test-infra repository.

@AilinKid
Copy link
Contributor Author

AilinKid commented Aug 3, 2023

/test check-dev2

@tiprow
Copy link

tiprow bot commented Aug 3, 2023

@AilinKid: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/test check-dev2

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 kubernetes/test-infra repository.

@AilinKid
Copy link
Contributor Author

AilinKid commented Aug 3, 2023

/ok-to-test

@ti-chi-bot ti-chi-bot bot added the ok-to-test label Aug 3, 2023
@AilinKid
Copy link
Contributor Author

AilinKid commented Aug 3, 2023

/approve

@ti-chi-bot
Copy link

ti-chi-bot bot commented Aug 3, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: AilinKid, elsa0520, guo-shaoge

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

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [AilinKid,guo-shaoge]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot bot merged commit 494e458 into pingcap:master Aug 3, 2023
14 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm ok-to-test release-note size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

order-by grouping set expressions resolution may have already been resolved to grouping column already
3 participants