Uh oh!
There was an error while loading. Please reload this page.
Add bitmap agg type and udaf - #1610
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
kangkaisen
commented
Aug 18, 2019
This update contains the following change: 1 Rebase the code |
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.
kangkaisen
commented
Aug 20, 2019
This update contains the following change: 1 Release row_cursor arena memory immediately |
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.
kangkaisen
commented
Aug 22, 2019
After tested with real data, I found the bitmap load is very slower than sum. For about one million rows, stream load with sum only need 3 seconds, but stream load with bitmap need 60 seconds. So I did a special improve for empty bitmap and single int bitmap, After the improvement, stream load with bitmap only need 4 seconds. |
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.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
kangkaisen
commented
Aug 23, 2019
Update for @imay comment. |
kangkaisen
commented
Aug 23, 2019
Rebase the code and Fix UT. |
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.
JackyYangPassion
commented
Jan 6, 2020
when use the case, there is some error, version 0.11 |
kangkaisen
commented
Jan 6, 2020
please refer to the bitmap doc: |
I use mysql client with the bitmap doc, but there is error if there need some set in client? Server version: 5.1.0 Doris version DORIS-0.11.14-release |
JackyYangPassion
commented
Jan 6, 2020
fe log Caused by: org.apache.doris.common.AnalysisException: Syntax error |
imay
commented
Jan 6, 2020
you can try |
JackyYangPassion
commented
Jan 6, 2020
when i create table with sql it works but when insert value there is some error insert into bitmap_test values (10,bitmap_hash('a100'));
|
imay
commented
Jan 6, 2020
@JackyYangPassion |
|
for #1486 and #1485
The change for this PR:
1 Add a bitmap_union agg type
2 Add a bitmap udaf
3 Add a bitmap_inin function, convert a int value to bitmap
4 Remove aligned_free method in port.h, because which is conflict with RoaringBitmap portability.h.
5 Remove merge method from aggregate_func, becuase all agg input is aggregated intermediate data. So the merge method and update method we only need one.
6 Remove unused Field constructor method
7 Use the Field polymorphism eliminate if-else.
8 why change the AggregateInfo::init api?
because key column and none agg value column no update semantic,so we need fill the dst with src by init method
How to use:
1 creata table with bitmap_union:
2 load the data by stream load:
3 query:
Todo:
add document for bitmap_union
add test for bitmap_union
rewrite count distinct to bitmap_union for bitmap_union agg type column
bitmap_union support insert into select
bitmap_union support broker load
avoid serialize and deserialize from Scannode to Aggnode
add a new type for hll_union and bitmap_union