select 'catalog channel' as channel
, cs_call_center_sk as id
, sum(cs_ext_sales_price)
from catalog_sales
where cs_sold_date_sk = 2451780
group by rollup (channel, id)
order by channel,id
You can reproduce the bug using TPCDS(v2.13) qualification test.
This document is for qualification test.
It's different with performance test, the data should be of 1GB size.
1. Generate query for qualification.
The query_templates for qualification should be
modified by Appendix B.
I have modified it already, you can replace it.
dsqgen -DIRECTORY ../query_templates
-INPUT ../query_templates/templates.lst
-VERBOSE Y -QUALIFY Y
-SCALE 1GB
-DIALECT ansi
-OUTPUT_DIR /home/disk1/chaoyli/tpcds
2. Generate data with 10 parallelism degree
for((i=1;i<=10;i++))
do
./dsdgen -SCALE 1G -PARALLEL 10 -CHILD $i -TERMINATE N
done
3. Customer table ISO/IEC 8859-1 encoding, doris not support this encoding,
should convert it to UTF-8
iconv -f ascii -t utf-8 "$file" -o "${file%.txt}.utf8.txt"
4. Create table using DDL in create_table.sql
5. Load data into database using load.sh
6. Qualify the results with answer_sets.
This is because the completion of the constant column in our implementation is in aggNode. The calculation of rollup repetition is done between scanNode and agg, so the constant cannot be repeated correctly. This problem is difficult to solve under our current framework. I think refactor the implementation of grouping set is needed to solve this problem
6条答案
按热度按时间lc8prwob1#
doris wrong answer
gp answer
bttbmeg02#
query14, query27, query77 are of wrong answer
smdnsysy3#
You can reproduce the bug using TPCDS(v2.13) qualification test.
ukdjmx9f4#
create table
e5njpo685#
load data
lzfw57am6#
This is because the completion of the constant column in our implementation is in aggNode. The calculation of rollup repetition is done between scanNode and agg, so the constant cannot be repeated correctly. This problem is difficult to solve under our current framework. I think refactor the implementation of grouping set is needed to solve this problem