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

refine SubqueryForSet #4623

Merged
merged 12 commits into from
Apr 18, 2022
Merged

refine SubqueryForSet #4623

merged 12 commits into from
Apr 18, 2022

Conversation

SeaRise
Copy link
Contributor

@SeaRise SeaRise commented Apr 11, 2022

What problem does this PR solve?

Issue Number: ref #4118

Problem Summary:

What is changed and how it works?

  • move SubqueryForSet from ExpressionAnalyzer.h to SubqueryForSet.h
  • move subqueries_for_sets from InterpreterDAG to DAGContext

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

None

@ti-chi-bot
Copy link
Member

ti-chi-bot commented Apr 11, 2022

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • windtalker
  • ywqzzy

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.

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 do-not-merge/needs-linked-issue release-note-none Denotes a PR that doesn't merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed do-not-merge/needs-linked-issue labels Apr 11, 2022
@SeaRise
Copy link
Contributor Author

SeaRise commented Apr 12, 2022

/run-all-tests

@sre-bot
Copy link
Collaborator

sre-bot commented Apr 12, 2022

Coverage for changed files

Filename                                           Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
DataStreams/CreatingSetsBlockInputStream.cpp           183               183     0.00%           9                 9     0.00%         197               197     0.00%         112               112     0.00%
DataStreams/CreatingSetsBlockInputStream.h              15                15     0.00%           6                 6     0.00%          29                29     0.00%           8                 8     0.00%
Flash/Coprocessor/DAGContext.cpp                        95                71    25.26%          26                18    30.77%         211               174    17.54%          66                56    15.15%
Flash/Coprocessor/DAGContext.h                          31                13    58.06%          24                12    50.00%          72                30    58.33%           8                 3    62.50%
Flash/Coprocessor/DAGQueryBlockInterpreter.cpp         390               390     0.00%          45                45     0.00%         878               878     0.00%         312               312     0.00%
Flash/Coprocessor/DAGQueryBlockInterpreter.h             2                 2     0.00%           2                 2     0.00%           2                 2     0.00%           0                 0         -
Flash/Coprocessor/InterpreterDAG.cpp                    19                19     0.00%           4                 4     0.00%          51                51     0.00%          16                16     0.00%
Flash/Coprocessor/InterpreterDAG.h                       1                 1     0.00%           1                 1     0.00%           1                 1     0.00%           0                 0         -
Interpreters/ExpressionAnalyzer.h                        4                 4     0.00%           4                 4     0.00%           4                 4     0.00%           0                 0         -
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                  740               698     5.68%         121               101    16.53%        1445              1366     5.47%         522               507     2.87%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
17023      9510             44.13%    191889  96433        49.75%

full coverage report (for internal network access only)

@SeaRise SeaRise changed the title refine SubqueryForSet and CreatingSetBlockInputStream [WIP] refine SubqueryForSet and CreatingSetBlockInputStream Apr 12, 2022
@ti-chi-bot ti-chi-bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 12, 2022
@SeaRise
Copy link
Contributor Author

SeaRise commented Apr 12, 2022

/run-all-tests

@SeaRise SeaRise changed the title [WIP] refine SubqueryForSet and CreatingSetBlockInputStream refine SubqueryForSet and CreatingSetBlockInputStream Apr 12, 2022
@ti-chi-bot ti-chi-bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 12, 2022
@sre-bot
Copy link
Collaborator

sre-bot commented Apr 12, 2022

Coverage for changed files

Filename                                           Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
DataStreams/CreatingSetsBlockInputStream.cpp           183               183     0.00%           9                 9     0.00%         197               197     0.00%         112               112     0.00%
DataStreams/CreatingSetsBlockInputStream.h              15                15     0.00%           6                 6     0.00%          29                29     0.00%           8                 8     0.00%
Flash/Coprocessor/DAGContext.cpp                        95                71    25.26%          26                18    30.77%         211               174    17.54%          66                56    15.15%
Flash/Coprocessor/DAGContext.h                          31                13    58.06%          24                12    50.00%          72                30    58.33%           8                 3    62.50%
Flash/Coprocessor/DAGQueryBlockInterpreter.cpp         390               390     0.00%          45                45     0.00%         878               878     0.00%         312               312     0.00%
Flash/Coprocessor/DAGQueryBlockInterpreter.h             2                 2     0.00%           2                 2     0.00%           2                 2     0.00%           0                 0         -
Flash/Coprocessor/InterpreterDAG.cpp                    19                19     0.00%           4                 4     0.00%          51                51     0.00%          16                16     0.00%
Flash/Coprocessor/InterpreterDAG.h                       1                 1     0.00%           1                 1     0.00%           1                 1     0.00%           0                 0         -
Interpreters/ExpressionAnalyzer.h                        4                 4     0.00%           4                 4     0.00%           4                 4     0.00%           0                 0         -
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                  740               698     5.68%         121               101    16.53%        1445              1366     5.47%         522               507     2.87%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
17023      9510             44.13%    191889  96428        49.75%

full coverage report (for internal network access only)

@SeaRise SeaRise changed the title refine SubqueryForSet and CreatingSetBlockInputStream refine SubqueryForSet Apr 13, 2022
@SeaRise
Copy link
Contributor Author

SeaRise commented Apr 13, 2022

/run-integration-test

@SeaRise SeaRise requested a review from ywqzzy April 13, 2022 10:49
@SeaRise
Copy link
Contributor Author

SeaRise commented Apr 14, 2022

/run-integration-test

@ti-chi-bot ti-chi-bot added the status/LGT1 Indicates that a PR has LGTM 1. label Apr 14, 2022
Copy link
Contributor

@windtalker windtalker 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 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 Apr 18, 2022
@SeaRise
Copy link
Contributor Author

SeaRise commented Apr 18, 2022

/merge

@ti-chi-bot
Copy link
Member

@SeaRise: It seems you want to merge this PR, I will help you trigger all the tests:

/run-all-tests

You only need to trigger /merge once, and if the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes.

If you have any questions about the PR merge process, please refer to pr process.

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
Copy link
Member

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

Commit hash: b097fa1

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Apr 18, 2022
@ti-chi-bot
Copy link
Member

@SeaRise: Your PR was out of date, I have automatically updated it for you.

At the same time I will also trigger all tests for you:

/run-all-tests

If the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes.

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.

@sre-bot
Copy link
Collaborator

sre-bot commented Apr 18, 2022

Coverage for changed files

Filename                                           Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
DataStreams/CreatingSetsBlockInputStream.h              14                14     0.00%           5                 5     0.00%          26                26     0.00%           8                 8     0.00%
Flash/Coprocessor/DAGContext.cpp                       100                71    29.00%          27                19    29.63%         227               180    20.70%          72                58    19.44%
Flash/Coprocessor/DAGContext.h                          33                15    54.55%          26                14    46.15%          77                34    55.84%           8                 3    62.50%
Flash/Coprocessor/DAGQueryBlockInterpreter.cpp         390               390     0.00%          45                45     0.00%         878               878     0.00%         312               312     0.00%
Flash/Coprocessor/DAGQueryBlockInterpreter.h             2                 2     0.00%           2                 2     0.00%           2                 2     0.00%           0                 0         -
Flash/Coprocessor/InterpreterDAG.cpp                    17                17     0.00%           4                 4     0.00%          50                50     0.00%          12                12     0.00%
Flash/Coprocessor/InterpreterDAG.h                       1                 1     0.00%           1                 1     0.00%           1                 1     0.00%           0                 0         -
Interpreters/ExpressionAnalyzer.h                        4                 4     0.00%           4                 4     0.00%           4                 4     0.00%           0                 0         -
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                  561               514     8.38%         114                94    17.54%        1265              1175     7.11%         412               393     4.61%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
17078      9519             44.26%    192376  96505        49.84%

full coverage report (for internal network access only)

@ti-chi-bot ti-chi-bot merged commit 66f45c7 into pingcap:master Apr 18, 2022
@SeaRise SeaRise deleted the refine_subquery_set branch April 18, 2022 02:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note-none Denotes a PR that doesn't merit a release note. size/L Denotes a PR that changes 100-499 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.

5 participants