-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Improvement](set) change set_operator's hash map to phmap (#43273)
### What problem does this PR solve? 1. change set_operator's hash map to phmap. 2. optimize the logic of refresh hash table ```sql +-------+--------------+------+-------+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-------+--------------+------+-------+---------+-------+ | k1 | int | Yes | true | NULL | | | k2 | int | No | false | NULL | NONE | | k3 | bigint | Yes | false | NULL | NONE | | k4 | varchar(100) | Yes | false | NULL | NONE | +-------+--------------+------+-------+---------+-------+ ``` ```sql select count(*) from (select * from a_table intersect select * from b_table)t; before:Time(ms)=37768|CpuTimeMS=61754|PeakMemoryBytes=129921088 after: Time(ms)=25218|CpuTimeMS=44571|PeakMemoryBytes=129902624 ``` ```sql select count(*) from (select k1 from a_table intersect select k1 from b_table)t; before: Time(ms)=7964|CpuTimeMS=13431|PeakMemoryBytes=130062400 after: Time(ms)=7459|CpuTimeMS=11976|PeakMemoryBytes=130091048 ```
- Loading branch information
1 parent
8e5a657
commit dae8f60
Showing
9 changed files
with
96 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters