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

MinMax Index Supports Nullable DataType #5153

Merged
merged 4 commits into from
Jun 20, 2022

Conversation

hehechen
Copy link
Contributor

@hehechen hehechen commented Jun 15, 2022

Signed-off-by: hehechen [email protected]

What problem does this PR solve?

Currently, MinMax Index does not support Nullable datatype.
Issue Number: close #4787

Problem Summary:

What is changed and how it works?

We can extract the nested data type from DataTypeNullable and reuse existing MinMax index code.

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

Signed-off-by: hehechen <[email protected]>
@ti-chi-bot
Copy link
Member

ti-chi-bot commented Jun 15, 2022

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • JaySon-Huang
  • jiaqizho

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 release-note-none Denotes a PR that doesn't merit a release note. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Jun 15, 2022
@hehechen hehechen changed the title MinMax support nullable MinMax Index Supports Nullable DataType Jun 15, 2022
Signed-off-by: hehechen <[email protected]>
@hehechen
Copy link
Contributor Author

/run-all-tests

@sre-bot
Copy link
Collaborator

sre-bot commented Jun 16, 2022

Coverage for changed files

Filename                                                Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
DataTypes/IDataType.h                                        63                26    58.73%          49                22    55.10%          79                38    51.90%          18                 9    50.00%
Storages/DeltaMerge/File/DMFileWriter.cpp                   111                 7    93.69%          15                 0   100.00%         443                17    96.16%          74                 8    89.19%
Storages/DeltaMerge/Index/MinMaxIndex.cpp                   494                88    82.19%          16                 2    87.50%         417                60    85.61%         250                92    63.20%
Storages/DeltaMerge/Index/MinMaxIndex.h                       6                 0   100.00%           6                 0   100.00%          13                 0   100.00%           0                 0         -
Storages/DeltaMerge/tests/gtest_dm_minmax_index.cpp        3247               558    82.81%          17                 0   100.00%         277                 0   100.00%         916               463    49.45%
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                      3921               679    82.68%         103                24    76.70%        1229               115    90.64%        1258               572    54.53%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18331      9653             47.34%    206011  96670        53.08%

full coverage report (for internal network access only)

@hehechen hehechen requested a review from JaySon-Huang June 20, 2022 07:25
Copy link
Contributor

@JaySon-Huang JaySon-Huang 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 the status/LGT1 Indicates that a PR has LGTM 1. label Jun 20, 2022
@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 Jun 20, 2022
Copy link
Contributor

@lidezhu lidezhu left a comment

Choose a reason for hiding this comment

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

LGTM

@hehechen
Copy link
Contributor Author

/merge

@ti-chi-bot
Copy link
Member

@hehechen: 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: e149f0d

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

@hehechen: 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 Jun 20, 2022

Coverage for changed files

Filename                                                Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
DataTypes/IDataType.h                                        63                26    58.73%          49                22    55.10%          79                38    51.90%          18                 7    61.11%
Storages/DeltaMerge/File/DMFileWriter.cpp                   111                 7    93.69%          15                 0   100.00%         443                17    96.16%          74                 8    89.19%
Storages/DeltaMerge/Index/MinMaxIndex.cpp                   494                88    82.19%          16                 2    87.50%         417                60    85.61%         250                91    63.60%
Storages/DeltaMerge/Index/MinMaxIndex.h                       6                 0   100.00%           6                 0   100.00%          13                 0   100.00%           0                 0         -
Storages/DeltaMerge/tests/gtest_dm_minmax_index.cpp        3247               558    82.81%          17                 0   100.00%         277                 0   100.00%         916               463    49.45%
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                      3921               679    82.68%         103                24    76.70%        1229               115    90.64%        1258               569    54.77%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18331      9653             47.34%    206011  96683        53.07%

full coverage report (for internal network access only)

@sre-bot
Copy link
Collaborator

sre-bot commented Jun 20, 2022

Coverage for changed files

Filename                                                Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
DataTypes/IDataType.h                                        63                26    58.73%          49                22    55.10%          79                38    51.90%          18                 8    55.56%
Storages/DeltaMerge/File/DMFileWriter.cpp                   111                 7    93.69%          15                 0   100.00%         443                17    96.16%          74                 8    89.19%
Storages/DeltaMerge/Index/MinMaxIndex.cpp                   494                88    82.19%          16                 2    87.50%         417                60    85.61%         250                91    63.60%
Storages/DeltaMerge/Index/MinMaxIndex.h                       6                 0   100.00%           6                 0   100.00%          13                 0   100.00%           0                 0         -
Storages/DeltaMerge/tests/gtest_dm_minmax_index.cpp        3247               558    82.81%          17                 0   100.00%         277                 0   100.00%         916               463    49.45%
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                                      3921               679    82.68%         103                24    76.70%        1229               115    90.64%        1258               570    54.69%

Coverage summary

Functions  MissedFunctions  Executed  Lines   MissedLines  Cover
18339      9653             47.36%    206279  96639        53.15%

full coverage report (for internal network access only)

@ti-chi-bot ti-chi-bot merged commit 604b0de into pingcap:master Jun 20, 2022
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/XL Denotes a PR that changes 500-999 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.

MinMax Index Supports Nullable DataType.
6 participants