Conversation
Signed-off-by: Zhigao Tong <tongzhigao@pingcap.com>
|
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. DetailsReviewer can indicate their review by submitting an approval review. |
|
/run-all-tests |
|
/run-unit-test |
Coverage for changed filesCoverage summaryfull coverage report (for internal network access only) |
|
/run-all-tests |
1 similar comment
|
/run-all-tests |
Coverage for changed filesCoverage summaryfull coverage report (for internal network access only) |
fc0be79 to
d6683c1
Compare
|
/run-all-tests |
Coverage for changed filesCoverage summaryfull coverage report (for internal network access only) |
It may also be an optional way if the overhead about materialization is small. |
LittleFall
left a comment
There was a problem hiding this comment.
consider add a FastPathPermutationSort<1>, which is commoner than 2 columns
|
|
||
| // only for uint64, int64, string | ||
| template <typename ColumnCmpA, typename ColumnCmpB> | ||
| struct MultiColumnSortFastPath |
There was a problem hiding this comment.
MultiColumn is is actullay two column?
There was a problem hiding this comment.
Yes, if use 3 columns, there will be too many template instantiations. We may need to optimize later if necessary.
dbms/src/Interpreters/sortBlock.cpp
Outdated
| } | ||
| }; | ||
|
|
||
| struct CollatorDesc : boost::noncopyable |
There was a problem hiding this comment.
Why use CollatorDesc as the name, maybe use FastSortDesc instead?
dbms/src/Interpreters/sortBlock.cpp
Outdated
| struct PartialSortingLessWithCollation | ||
| { | ||
| const ColumnsWithSortDescriptions & columns; | ||
| const CollatorDesc & collator_desc; |
There was a problem hiding this comment.
Using CollatorDesc instead of ColumnsWithSortDescriptions seems does not make too much difference?
There was a problem hiding this comment.
PartialSortingLessWithCollation uses member variables has_collation and need_collations of CollatorDesc
We already have such optimization : tiflash/dbms/src/Interpreters/sortBlock.cpp Lines 123 to 141 in 3674439 |
dbms/src/Interpreters/sortBlock.cpp
Outdated
| struct PartialSortingLessWithCollation | ||
| { | ||
| const ColumnsWithSortDescriptions & columns; | ||
| const FastSortDesc & collator_desc; |
There was a problem hiding this comment.
The variable name should also be modified.
|
/hold |
|
/merge |
|
@solotzg: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests You only need to trigger If you have any questions about the PR merge process, please refer to pr process. DetailsInstructions 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. |
|
This pull request has been accepted and is ready to merge. DetailsCommit hash: f117304 |
|
/rebuild |
|
/run-all-tests |
|
/rebuild |
|
/merge |
|
@solotzg: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests You only need to trigger If you have any questions about the PR merge process, please refer to pr process. DetailsInstructions 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. |
|
/run-integration-test |
Coverage for changed filesCoverage summaryfull coverage report (for internal network access only) |
|
/unhold |
Coverage for changed filesCoverage summaryfull coverage report (for internal network access only) |
This reverts commit 4f66bc3.
What problem does this PR solve?
Issue Number: ref #5294
What is changed and how it works?
Benchmark
ENV
SQL
STR(utf8 collator),UINT64SQL
STR(utf8 collator),STR(utf8 collator)SQL
INT64,STR(utf8 collator)Check List
Tests
Side effects
Documentation
Release note