Uh oh!
There was an error while loading. Please reload this page.
[opt](nereids) use binary search to prune partitions - #44586
Conversation
doris-robot
commented
Nov 26, 2024
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
98f7178 to
5db0287Compare924060929
commented
Nov 26, 2024
run buildall |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
5db0287 to
3674062Compare924060929
commented
Dec 17, 2024
run buildall |
3674062 to
5bd7802Compare924060929
commented
Dec 18, 2024
run buildall |
|
924060929
commented
Dec 18, 2024
run buildall |
|
924060929
commented
Dec 18, 2024
run buildall |
|
924060929
commented
Dec 18, 2024
run buildall |
|
bafd5fb to
3b878fcCompare924060929
commented
Dec 20, 2024
run buildall |
3b878fc to
264f436Compare924060929
commented
Dec 20, 2024
run buildall |
doris-robot
commented
Dec 20, 2024
TPC-H: Total hot run time: 39878 ms |
doris-robot
commented
Dec 20, 2024
TPC-DS: Total hot run time: 196789 ms |
doris-robot
commented
Dec 20, 2024
ClickBench: Total hot run time: 33.33 s |
264f436 to
197aa64Compare924060929
commented
Dec 20, 2024
run buildall |
doris-robot
commented
Dec 20, 2024
TPC-H: Total hot run time: 40019 ms |
doris-robot
commented
Dec 23, 2024
TPC-H: Total hot run time: 40120 ms |
doris-robot
commented
Dec 23, 2024
TPC-DS: Total hot run time: 190521 ms |
doris-robot
commented
Dec 23, 2024
ClickBench: Total hot run time: 32.06 s |
PR approved by at least one committer and no changes requested. |
924060929
commented
Dec 24, 2024
run buildall |
doris-robot
commented
Dec 24, 2024
TPC-H: Total hot run time: 39820 ms |
doris-robot
commented
Dec 24, 2024
TPC-DS: Total hot run time: 190328 ms |
doris-robot
commented
Dec 24, 2024
ClickBench: Total hot run time: 32.55 s |
use binary search to speed up prune partitions. test: datetime partition column which range from 2020-07-02 to 2024-11-13, one date for one partition, query one partition for example `dt = '2024-01-02'`, this pr can speed up from QPS 160 to QPS 610
Followup #44586 Enable binary search partition pruning optimization for Hive external tables. This PR adds binary search partition pruning support for Hive tables by: - Adding `getSortedPartitionRanges()` method to `ExternalTable` base class - Maintaining sorted partition ranges directly in `HivePartitionValues` for cache lifecycle consistency - Overriding `getSortedPartitionRanges()` in `HMSExternalTable` to provide sorted ranges **Performance improvement (20000 partitions, 1000 queries):** - Binary search enabled: **4.548 seconds** - Binary search disabled: **12.849 seconds** - **~2.8x faster**
Followup #44586 Enable binary search partition pruning optimization for Hive external tables. This PR adds binary search partition pruning support for Hive tables by: - Adding `getSortedPartitionRanges()` method to `ExternalTable` base class - Maintaining sorted partition ranges directly in `HivePartitionValues` for cache lifecycle consistency - Overriding `getSortedPartitionRanges()` in `HMSExternalTable` to provide sorted ranges **Performance improvement (20000 partitions, 1000 queries):** - Binary search enabled: **4.548 seconds** - Binary search disabled: **12.849 seconds** - **~2.8x faster**
Followup apache#44586 Enable binary search partition pruning optimization for Hive external tables. This PR adds binary search partition pruning support for Hive tables by: - Adding `getSortedPartitionRanges()` method to `ExternalTable` base class - Maintaining sorted partition ranges directly in `HivePartitionValues` for cache lifecycle consistency - Overriding `getSortedPartitionRanges()` in `HMSExternalTable` to provide sorted ranges **Performance improvement (20000 partitions, 1000 queries):** - Binary search enabled: **4.548 seconds** - Binary search disabled: **12.849 seconds** - **~2.8x faster**
Followup #44586 Enable binary search partition pruning optimization for Hive external tables. This PR adds binary search partition pruning support for Hive tables by: - Adding `getSortedPartitionRanges()` method to `ExternalTable` base class - Maintaining sorted partition ranges directly in `HivePartitionValues` for cache lifecycle consistency - Overriding `getSortedPartitionRanges()` in `HMSExternalTable` to provide sorted ranges **Performance improvement (20000 partitions, 1000 queries):** - Binary search enabled: **4.548 seconds** - Binary search disabled: **12.849 seconds** - **~2.8x faster**
Followup apache#44586 Enable binary search partition pruning optimization for Hive external tables. This PR adds binary search partition pruning support for Hive tables by: - Adding `getSortedPartitionRanges()` method to `ExternalTable` base class - Maintaining sorted partition ranges directly in `HivePartitionValues` for cache lifecycle consistency - Overriding `getSortedPartitionRanges()` in `HMSExternalTable` to provide sorted ranges **Performance improvement (20000 partitions, 1000 queries):** - Binary search enabled: **4.548 seconds** - Binary search disabled: **12.849 seconds** - **~2.8x faster**
use binary search to speed up prune partitions. test: datetime partition column which range from 2020-07-02 to 2024-11-13, one date for one partition, query one partition for example `dt = '2024-01-02'`, this pr can speed up from QPS 160 to QPS 610
What problem does this PR solve?
use binary search to speed up prune partitions.
test: datetime partition column which range from 2020-07-02 to 2024-11-13, one date for one partition, query one partition for example
dt = '2024-01-02', this pr can speed up from QPS 160 to QPS 610TODO:
date_add(dt, 1) = '2024-01-02;Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)