Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Improvement](sort) Free sort blocks if this block is exhausted #39306

Merged
merged 9 commits into from
Aug 20, 2024

Conversation

Gabriel39
Copy link
Contributor

Proposed changes

Issue Number: close #xxx

@doris-robot
Copy link

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

@github-actions github-actions bot added the doing label Aug 13, 2024
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

} else {
RETURN_IF_ERROR(partition_sort_read(block, eos, state->batch_size()));
}
RETURN_IF_ERROR(partition_sort_read(block, eos, state->batch_size()));
}
return Status::OK();
}

Status PartitionSorter::partition_sort_read(Block* output_block, bool* eos, int batch_size) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: function 'partition_sort_read' has cognitive complexity of 55 (threshold 50) [readability-function-cognitive-complexity]

Status PartitionSorter::partition_sort_read(Block* output_block, bool* eos, int batch_size) {
                        ^
Additional context

be/src/vec/common/sort/partition_sorter.cpp:102: +1, including nesting penalty of 0, nesting level increased to 1

    if (priority_queue.empty()) {
    ^

be/src/vec/common/sort/partition_sorter.cpp:114: +1, including nesting penalty of 0, nesting level increased to 1

    while (!priority_queue.empty()) {
    ^

be/src/vec/common/sort/partition_sorter.cpp:117: +2, including nesting penalty of 1, nesting level increased to 2

        if (UNLIKELY(_previous_row->impl == nullptr)) {
        ^

be/src/vec/common/sort/partition_sorter.cpp:121: +2, including nesting penalty of 1, nesting level increased to 2

        switch (_top_n_algorithm) {
        ^

be/src/vec/common/sort/partition_sorter.cpp:124: +3, including nesting penalty of 2, nesting level increased to 3

            if ((current_output_rows + _output_total_rows) < _partition_inner_limit) {
            ^

be/src/vec/common/sort/partition_sorter.cpp:125: +4, including nesting penalty of 3, nesting level increased to 4

                for (size_t i = 0; i < num_columns; ++i) {
                ^

be/src/vec/common/sort/partition_sorter.cpp:128: +1, nesting level increased to 3

            } else {
              ^

be/src/vec/common/sort/partition_sorter.cpp:140: +3, including nesting penalty of 2, nesting level increased to 3

            if (_has_global_limit &&
            ^

be/src/vec/common/sort/partition_sorter.cpp:140: +1

            if (_has_global_limit &&
                                  ^

be/src/vec/common/sort/partition_sorter.cpp:145: +3, including nesting penalty of 2, nesting level increased to 3

            if (_has_global_limit) {
            ^

be/src/vec/common/sort/partition_sorter.cpp:147: +1, nesting level increased to 3

            } else {
              ^

be/src/vec/common/sort/partition_sorter.cpp:150: +4, including nesting penalty of 3, nesting level increased to 4

                if (cmp_res == false) {
                ^

be/src/vec/common/sort/partition_sorter.cpp:152: +5, including nesting penalty of 4, nesting level increased to 5

                    if (_output_distinct_rows >= _partition_inner_limit) {
                    ^

be/src/vec/common/sort/partition_sorter.cpp:159: +3, including nesting penalty of 2, nesting level increased to 3

            for (size_t i = 0; i < num_columns; ++i) {
            ^

be/src/vec/common/sort/partition_sorter.cpp:169: +3, including nesting penalty of 2, nesting level increased to 3

            if (_has_global_limit &&
            ^

be/src/vec/common/sort/partition_sorter.cpp:169: +1

            if (_has_global_limit &&
                                  ^

be/src/vec/common/sort/partition_sorter.cpp:176: +3, including nesting penalty of 2, nesting level increased to 3

            if (cmp_res == false) {
            ^

be/src/vec/common/sort/partition_sorter.cpp:178: +4, including nesting penalty of 3, nesting level increased to 4

                if ((current_output_rows + _output_total_rows) >= _partition_inner_limit) {
                ^

be/src/vec/common/sort/partition_sorter.cpp:184: +3, including nesting penalty of 2, nesting level increased to 3

            for (size_t i = 0; i < num_columns; ++i) {
            ^

be/src/vec/common/sort/partition_sorter.cpp:194: +2, including nesting penalty of 1, nesting level increased to 2

        if (!current->is_last()) {
        ^

be/src/vec/common/sort/partition_sorter.cpp:199: +2, including nesting penalty of 1, nesting level increased to 2

        if (current_output_rows == batch_size || get_enough_data == true) {
        ^

be/src/vec/common/sort/partition_sorter.cpp:199: +1

        if (current_output_rows == batch_size || get_enough_data == true) {
                                              ^

be/src/vec/common/sort/partition_sorter.cpp:205: +1, including nesting penalty of 0, nesting level increased to 1

    if (current_output_rows == 0 || get_enough_data == true) {
    ^

be/src/vec/common/sort/partition_sorter.cpp:205: +1

    if (current_output_rows == 0 || get_enough_data == true) {
                                 ^

@Gabriel39
Copy link
Contributor Author

run buildall

@Gabriel39
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

TPC-H: Total hot run time: 40202 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 0d45355a53c8873206c08aa8bd6ec2d57912ea4b, data reload: false

------ Round 1 ----------------------------------
q1	17629	4348	4324	4324
q2	2019	178	190	178
q3	10487	1207	1140	1140
q4	10874	732	795	732
q5	8126	2899	2838	2838
q6	229	143	138	138
q7	980	606	594	594
q8	9447	2105	2037	2037
q9	9212	6560	6604	6560
q10	7068	2182	2194	2182
q11	480	247	250	247
q12	396	221	222	221
q13	17794	3013	2965	2965
q14	276	239	238	238
q15	525	487	497	487
q16	501	383	385	383
q17	987	671	675	671
q18	8151	7618	7436	7436
q19	4536	1121	1109	1109
q20	672	309	328	309
q21	5413	4410	4684	4410
q22	1101	1014	1003	1003
Total cold run time: 116903 ms
Total hot run time: 40202 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4495	4242	4251	4242
q2	370	268	272	268
q3	2849	2662	2662	2662
q4	1922	1656	1643	1643
q5	5424	5367	5391	5367
q6	226	129	133	129
q7	2062	1663	1710	1663
q8	3137	3340	3343	3340
q9	8459	8351	8366	8351
q10	3378	3129	3130	3129
q11	619	511	513	511
q12	752	589	594	589
q13	17417	3003	3001	3001
q14	303	274	272	272
q15	514	486	486	486
q16	470	422	430	422
q17	1773	1489	1478	1478
q18	7721	7465	7475	7465
q19	1689	1640	1440	1440
q20	2026	1816	1779	1779
q21	5194	5182	5007	5007
q22	1108	985	990	985
Total cold run time: 71908 ms
Total hot run time: 54229 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 185209 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
TPC-DS sf100 test result on commit 0d45355a53c8873206c08aa8bd6ec2d57912ea4b, data reload: false

query1	907	381	368	368
query2	6441	1879	1842	1842
query3	6652	209	218	209
query4	26431	23313	23020	23020
query5	4182	500	480	480
query6	291	169	173	169
query7	4581	300	300	300
query8	245	200	188	188
query9	8464	2436	2403	2403
query10	420	268	258	258
query11	17755	14923	15070	14923
query12	145	103	98	98
query13	1642	360	379	360
query14	10007	7517	7593	7517
query15	243	169	169	169
query16	7302	471	461	461
query17	1553	559	545	545
query18	1870	286	283	283
query19	186	139	143	139
query20	113	101	107	101
query21	208	100	100	100
query22	4350	4024	3981	3981
query23	34001	33565	33276	33276
query24	12338	2877	2809	2809
query25	657	388	372	372
query26	1762	153	154	153
query27	2885	266	271	266
query28	7525	2052	2036	2036
query29	1025	398	394	394
query30	312	150	159	150
query31	969	766	752	752
query32	95	55	57	55
query33	760	285	309	285
query34	967	458	480	458
query35	837	702	691	691
query36	1089	951	911	911
query37	248	78	80	78
query38	3985	3768	3762	3762
query39	1431	1386	1368	1368
query40	269	118	114	114
query41	45	45	45	45
query42	115	102	98	98
query43	499	460	474	460
query44	1186	728	723	723
query45	198	167	164	164
query46	1120	736	741	736
query47	1871	1747	1783	1747
query48	360	291	293	291
query49	1200	414	410	410
query50	798	399	406	399
query51	7031	6901	6953	6901
query52	96	89	89	89
query53	260	189	181	181
query54	1087	438	439	438
query55	75	73	81	73
query56	266	277	249	249
query57	1124	1058	1061	1058
query58	242	228	229	228
query59	2918	2721	2632	2632
query60	286	267	271	267
query61	99	95	98	95
query62	861	652	646	646
query63	218	178	181	178
query64	10653	2291	1739	1739
query65	3210	3173	3151	3151
query66	1362	345	335	335
query67	15288	14857	14967	14857
query68	4486	538	552	538
query69	411	272	263	263
query70	1119	1036	1137	1036
query71	423	276	274	274
query72	7124	2288	2006	2006
query73	738	323	322	322
query74	9068	8779	8712	8712
query75	3683	2729	2694	2694
query76	2905	965	910	910
query77	463	313	308	308
query78	9590	9108	9019	9019
query79	2731	524	541	524
query80	2019	485	481	481
query81	568	224	220	220
query82	800	136	130	130
query83	313	150	144	144
query84	265	84	76	76
query85	1660	280	271	271
query86	459	296	301	296
query87	4478	4110	4260	4110
query88	3594	2393	2396	2393
query89	390	295	286	286
query90	1837	190	188	188
query91	117	146	100	100
query92	61	49	50	49
query93	2497	544	528	528
query94	918	288	302	288
query95	349	263	258	258
query96	599	274	271	271
query97	3250	3013	3048	3013
query98	224	206	203	203
query99	1716	1275	1264	1264
Total cold run time: 296466 ms
Total hot run time: 185209 ms

@doris-robot
Copy link

ClickBench: Total hot run time: 31.1 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit 0d45355a53c8873206c08aa8bd6ec2d57912ea4b, data reload: false

query1	0.05	0.04	0.04
query2	0.08	0.04	0.04
query3	0.22	0.05	0.05
query4	1.68	0.09	0.08
query5	0.52	0.49	0.50
query6	1.14	0.74	0.73
query7	0.01	0.01	0.01
query8	0.06	0.05	0.05
query9	0.55	0.49	0.49
query10	0.55	0.52	0.54
query11	0.16	0.12	0.11
query12	0.16	0.13	0.12
query13	0.62	0.59	0.59
query14	0.75	0.80	0.77
query15	0.85	0.80	0.81
query16	0.36	0.37	0.37
query17	1.01	1.05	1.04
query18	0.23	0.22	0.23
query19	1.84	1.85	1.74
query20	0.02	0.01	0.01
query21	15.40	0.75	0.66
query22	4.45	7.07	2.24
query23	18.29	1.44	1.25
query24	2.06	0.22	0.24
query25	0.16	0.08	0.09
query26	0.30	0.21	0.22
query27	0.45	0.23	0.23
query28	13.30	1.03	1.00
query29	12.63	3.33	3.30
query30	0.24	0.05	0.05
query31	2.87	0.42	0.40
query32	3.27	0.48	0.48
query33	2.98	2.94	3.00
query34	16.97	4.39	4.34
query35	4.40	4.39	4.40
query36	0.65	0.46	0.49
query37	0.19	0.16	0.16
query38	0.16	0.15	0.14
query39	0.05	0.03	0.04
query40	0.16	0.14	0.13
query41	0.09	0.04	0.05
query42	0.06	0.06	0.04
query43	0.05	0.04	0.05
Total cold run time: 110.04 s
Total hot run time: 31.1 s

@Gabriel39
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

TPC-H: Total hot run time: 37515 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 4ecf0596dd89f35b98cef1c13eb8568337d1fbc2, data reload: false

------ Round 1 ----------------------------------
q1	17635	4389	4371	4371
q2	2023	179	183	179
q3	11770	1002	1093	1002
q4	10499	756	677	677
q5	7766	2821	2819	2819
q6	223	138	138	138
q7	970	590	604	590
q8	9558	2065	2031	2031
q9	8777	6554	6559	6554
q10	7007	2190	2212	2190
q11	465	239	240	239
q12	396	225	221	221
q13	18872	2964	2982	2964
q14	277	243	227	227
q15	540	481	471	471
q16	498	404	373	373
q17	977	690	636	636
q18	7386	6798	6754	6754
q19	6532	1059	865	865
q20	679	338	321	321
q21	4026	2974	2901	2901
q22	1129	992	998	992
Total cold run time: 118005 ms
Total hot run time: 37515 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4495	4272	4275	4272
q2	379	270	277	270
q3	2905	2625	2595	2595
q4	1996	1686	1750	1686
q5	5667	5720	5635	5635
q6	218	131	129	129
q7	2123	1773	1720	1720
q8	3327	3486	3438	3438
q9	8776	8705	8850	8705
q10	3582	3269	3339	3269
q11	606	505	519	505
q12	787	622	622	622
q13	17047	3209	3138	3138
q14	311	282	293	282
q15	524	495	488	488
q16	493	456	462	456
q17	1849	1553	1527	1527
q18	8036	7783	7916	7783
q19	1744	1511	1484	1484
q20	2236	1913	1898	1898
q21	5631	5248	5378	5248
q22	1143	1048	1004	1004
Total cold run time: 73875 ms
Total hot run time: 56154 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 189880 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
TPC-DS sf100 test result on commit 4ecf0596dd89f35b98cef1c13eb8568337d1fbc2, data reload: false

query1	1250	889	867	867
query2	6445	1989	1876	1876
query3	10680	3923	3801	3801
query4	59899	24413	23079	23079
query5	6122	477	475	475
query6	528	154	176	154
query7	6502	295	295	295
query8	304	202	212	202
query9	9174	2438	2411	2411
query10	499	260	267	260
query11	17448	15045	15191	15045
query12	162	105	104	104
query13	1571	398	385	385
query14	11536	7254	7229	7229
query15	273	175	190	175
query16	7691	546	508	508
query17	1137	622	591	591
query18	2112	318	320	318
query19	281	154	154	154
query20	124	112	110	110
query21	213	102	103	102
query22	4436	4201	4386	4201
query23	34282	33583	33191	33191
query24	5539	2837	2888	2837
query25	539	397	398	397
query26	689	156	158	156
query27	1813	274	277	274
query28	3730	2047	2075	2047
query29	738	427	414	414
query30	236	156	151	151
query31	922	743	741	741
query32	84	56	55	55
query33	480	292	295	292
query34	861	455	463	455
query35	817	721	690	690
query36	1055	915	948	915
query37	137	82	78	78
query38	4014	3838	3823	3823
query39	1469	1383	1418	1383
query40	195	115	119	115
query41	48	46	51	46
query42	125	98	95	95
query43	505	467	448	448
query44	1051	740	728	728
query45	193	169	170	169
query46	1095	762	741	741
query47	1889	1748	1763	1748
query48	374	295	285	285
query49	777	425	450	425
query50	813	400	402	400
query51	7307	7036	7037	7036
query52	104	91	94	91
query53	255	183	178	178
query54	570	470	544	470
query55	73	72	72	72
query56	254	239	247	239
query57	1150	1059	1091	1059
query58	210	214	238	214
query59	3011	2753	2670	2670
query60	293	255	266	255
query61	93	93	91	91
query62	729	645	647	645
query63	205	178	179	178
query64	3385	1720	1717	1717
query65	3231	3135	3134	3134
query66	716	328	332	328
query67	15425	14852	14869	14852
query68	6893	538	543	538
query69	678	364	293	293
query70	1210	1097	1117	1097
query71	551	274	271	271
query72	7478	2277	1913	1913
query73	799	311	315	311
query74	9231	8884	8762	8762
query75	4430	2708	2692	2692
query76	4255	1075	1004	1004
query77	774	318	334	318
query78	10188	8981	8887	8887
query79	9457	533	525	525
query80	1127	489	483	483
query81	597	222	222	222
query82	973	132	133	132
query83	341	143	142	142
query84	279	71	74	71
query85	1393	270	269	269
query86	393	299	286	286
query87	4397	4310	4361	4310
query88	5100	2279	2283	2279
query89	526	290	294	290
query90	2197	191	185	185
query91	123	91	92	91
query92	64	49	48	48
query93	6463	548	534	534
query94	828	276	279	276
query95	352	261	259	259
query96	613	267	270	267
query97	3197	3001	3003	3001
query98	230	207	201	201
query99	1573	1294	1253	1253
Total cold run time: 336578 ms
Total hot run time: 189880 ms

@doris-robot
Copy link

ClickBench: Total hot run time: 30.85 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit 4ecf0596dd89f35b98cef1c13eb8568337d1fbc2, data reload: false

query1	0.05	0.05	0.04
query2	0.09	0.04	0.04
query3	0.23	0.05	0.05
query4	1.66	0.07	0.07
query5	0.49	0.49	0.49
query6	1.13	0.73	0.73
query7	0.02	0.02	0.01
query8	0.06	0.04	0.04
query9	0.54	0.49	0.49
query10	0.55	0.53	0.55
query11	0.16	0.12	0.11
query12	0.14	0.12	0.12
query13	0.60	0.60	0.58
query14	0.74	0.76	0.76
query15	0.85	0.82	0.81
query16	0.38	0.37	0.37
query17	0.95	1.03	1.00
query18	0.23	0.22	0.21
query19	1.78	1.76	1.68
query20	0.01	0.01	0.00
query21	15.39	0.73	0.64
query22	4.39	6.90	2.12
query23	18.23	1.33	1.21
query24	2.23	0.22	0.21
query25	0.15	0.08	0.08
query26	0.32	0.21	0.21
query27	0.46	0.23	0.23
query28	13.25	1.01	1.01
query29	12.59	3.33	3.30
query30	0.24	0.05	0.04
query31	2.88	0.38	0.39
query32	3.28	0.47	0.47
query33	2.93	2.97	2.97
query34	17.12	4.39	4.38
query35	4.42	4.43	4.50
query36	0.66	0.47	0.47
query37	0.19	0.15	0.15
query38	0.15	0.14	0.15
query39	0.04	0.04	0.03
query40	0.16	0.12	0.13
query41	0.09	0.04	0.05
query42	0.06	0.05	0.05
query43	0.05	0.04	0.04
Total cold run time: 109.94 s
Total hot run time: 30.85 s

@Gabriel39
Copy link
Contributor Author

run buildall

@Gabriel39
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

TPC-H: Total hot run time: 37459 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 4839df8e2bb9e4da5fef9b579f7e6fc0b58d9c43, data reload: false

------ Round 1 ----------------------------------
q1	17616	4300	4257	4257
q2	2026	179	176	176
q3	11834	1005	1093	1005
q4	10498	693	803	693
q5	7741	2775	2778	2775
q6	223	133	135	133
q7	958	586	587	586
q8	9530	2026	2026	2026
q9	8706	6483	6494	6483
q10	7002	2227	2246	2227
q11	437	235	241	235
q12	387	215	212	212
q13	17762	2975	2981	2975
q14	277	238	226	226
q15	520	478	490	478
q16	500	393	380	380
q17	950	704	620	620
q18	7361	6797	6748	6748
q19	7439	1055	1046	1046
q20	778	348	323	323
q21	3867	2852	2899	2852
q22	1110	1003	1034	1003
Total cold run time: 117522 ms
Total hot run time: 37459 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4456	4250	4240	4240
q2	375	268	270	268
q3	2838	2639	2642	2639
q4	2022	1698	1770	1698
q5	5670	5691	5589	5589
q6	230	134	132	132
q7	2128	1742	1744	1742
q8	3278	3488	3449	3449
q9	8735	8760	8828	8760
q10	3587	3213	3244	3213
q11	607	505	497	497
q12	861	618	587	587
q13	16281	3104	3194	3104
q14	324	288	306	288
q15	537	483	487	483
q16	503	438	452	438
q17	1833	1573	1541	1541
q18	8264	8000	7825	7825
q19	1722	1640	1537	1537
q20	2203	1890	1883	1883
q21	8691	5529	5562	5529
q22	1196	1049	1050	1049
Total cold run time: 76341 ms
Total hot run time: 56491 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 189039 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
TPC-DS sf100 test result on commit 4839df8e2bb9e4da5fef9b579f7e6fc0b58d9c43, data reload: false

query1	1269	885	856	856
query2	6437	1859	1850	1850
query3	10704	3915	3653	3653
query4	58248	27105	23158	23158
query5	5750	499	466	466
query6	467	173	164	164
query7	6215	289	291	289
query8	312	203	214	203
query9	8917	2450	2406	2406
query10	482	267	255	255
query11	17880	15143	15356	15143
query12	157	97	96	96
query13	1513	387	365	365
query14	10491	7081	6750	6750
query15	226	175	167	167
query16	7552	496	469	469
query17	1147	551	546	546
query18	1429	290	294	290
query19	282	153	149	149
query20	120	111	107	107
query21	218	100	111	100
query22	4553	4244	4201	4201
query23	34275	33379	33323	33323
query24	5761	2811	2781	2781
query25	522	373	394	373
query26	683	158	153	153
query27	1796	268	275	268
query28	3600	2057	2022	2022
query29	648	397	391	391
query30	232	150	145	145
query31	929	768	738	738
query32	84	49	51	49
query33	429	282	272	272
query34	850	449	466	449
query35	828	740	708	708
query36	1051	931	929	929
query37	135	77	79	77
query38	3962	3782	3801	3782
query39	1422	1377	1399	1377
query40	197	113	115	113
query41	45	43	44	43
query42	124	97	100	97
query43	495	459	468	459
query44	1074	717	732	717
query45	197	166	162	162
query46	1091	727	723	723
query47	1816	1796	1793	1793
query48	353	292	295	292
query49	792	421	421	421
query50	793	397	396	396
query51	7130	7083	7001	7001
query52	104	89	91	89
query53	259	177	175	175
query54	546	440	442	440
query55	75	74	75	74
query56	259	242	240	240
query57	1133	1077	1050	1050
query58	223	244	213	213
query59	2811	2783	2683	2683
query60	297	259	265	259
query61	97	96	95	95
query62	742	686	647	647
query63	209	176	181	176
query64	4238	2268	1742	1742
query65	3213	3152	3122	3122
query66	608	328	327	327
query67	15241	14841	14757	14757
query68	4584	538	532	532
query69	441	254	266	254
query70	1134	1142	1125	1125
query71	427	267	271	267
query72	6469	2240	2057	2057
query73	755	314	313	313
query74	9072	8827	8818	8818
query75	3399	2666	2684	2666
query76	2159	958	898	898
query77	583	319	299	299
query78	9682	9066	8892	8892
query79	2287	516	542	516
query80	1278	473	483	473
query81	567	228	224	224
query82	725	136	133	133
query83	255	146	144	144
query84	271	74	74	74
query85	1034	285	281	281
query86	441	284	301	284
query87	4467	4255	4235	4235
query88	3977	2313	2318	2313
query89	394	283	284	283
query90	1931	239	206	206
query91	199	94	94	94
query92	58	49	48	48
query93	2633	524	520	520
query94	817	299	289	289
query95	347	259	257	257
query96	597	273	272	272
query97	3249	3008	3027	3008
query98	209	206	202	202
query99	1548	1253	1236	1236
Total cold run time: 311727 ms
Total hot run time: 189039 ms

@doris-robot
Copy link

ClickBench: Total hot run time: 31.1 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit 4839df8e2bb9e4da5fef9b579f7e6fc0b58d9c43, data reload: false

query1	0.04	0.04	0.03
query2	0.08	0.04	0.04
query3	0.23	0.04	0.06
query4	1.66	0.09	0.09
query5	0.50	0.49	0.49
query6	1.13	0.73	0.74
query7	0.02	0.01	0.02
query8	0.05	0.04	0.05
query9	0.56	0.49	0.48
query10	0.54	0.53	0.53
query11	0.15	0.12	0.12
query12	0.14	0.12	0.13
query13	0.60	0.59	0.59
query14	0.76	0.76	0.77
query15	0.86	0.81	0.82
query16	0.35	0.38	0.38
query17	1.00	0.99	1.01
query18	0.22	0.21	0.21
query19	1.86	1.71	1.73
query20	0.00	0.01	0.01
query21	15.41	0.73	0.65
query22	4.61	6.66	2.22
query23	18.29	1.40	1.33
query24	1.74	0.33	0.22
query25	0.16	0.08	0.08
query26	0.30	0.22	0.21
query27	0.46	0.23	0.23
query28	13.26	1.01	1.01
query29	12.66	3.31	3.31
query30	0.24	0.05	0.05
query31	2.88	0.40	0.38
query32	3.26	0.49	0.47
query33	2.93	3.03	2.97
query34	16.92	4.39	4.36
query35	4.49	4.45	4.40
query36	0.66	0.46	0.47
query37	0.18	0.15	0.16
query38	0.15	0.15	0.15
query39	0.04	0.03	0.04
query40	0.15	0.12	0.12
query41	0.09	0.04	0.04
query42	0.06	0.04	0.06
query43	0.05	0.04	0.04
Total cold run time: 109.74 s
Total hot run time: 31.1 s

@Gabriel39
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

TPC-H: Total hot run time: 37797 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 42018665a56a7e45e7b19e109a99fd051cabb249, data reload: false

------ Round 1 ----------------------------------
q1	17659	4374	4308	4308
q2	2016	179	181	179
q3	11958	1037	1083	1037
q4	10522	755	693	693
q5	7769	2853	2796	2796
q6	224	141	143	141
q7	974	601	596	596
q8	9522	2067	2087	2067
q9	8722	6499	6553	6499
q10	7034	2159	2224	2159
q11	453	247	252	247
q12	391	230	224	224
q13	18877	2985	3020	2985
q14	272	239	245	239
q15	523	480	499	480
q16	501	413	385	385
q17	986	723	780	723
q18	7555	6817	6757	6757
q19	7631	1090	1037	1037
q20	678	351	344	344
q21	4201	3084	2904	2904
q22	1104	997	999	997
Total cold run time: 119572 ms
Total hot run time: 37797 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4508	4306	4267	4267
q2	383	273	265	265
q3	2838	2594	2799	2594
q4	2029	1805	1731	1731
q5	5749	5610	5619	5610
q6	220	136	133	133
q7	2152	1869	1774	1774
q8	3296	3446	3463	3446
q9	8799	8825	8858	8825
q10	3565	3241	3217	3217
q11	590	515	526	515
q12	828	665	660	660
q13	16089	3228	3197	3197
q14	324	293	301	293
q15	543	494	509	494
q16	492	448	432	432
q17	1828	1576	1511	1511
q18	8227	8068	7882	7882
q19	1842	1613	1603	1603
q20	2232	1886	1910	1886
q21	5481	5369	5214	5214
q22	1193	1073	1067	1067
Total cold run time: 73208 ms
Total hot run time: 56616 ms

@Gabriel39
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

TPC-H: Total hot run time: 37718 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 42018665a56a7e45e7b19e109a99fd051cabb249, data reload: false

------ Round 1 ----------------------------------
q1	17633	4315	4287	4287
q2	2012	181	173	173
q3	11969	1008	1030	1008
q4	10485	734	748	734
q5	7750	2804	2758	2758
q6	219	138	135	135
q7	957	584	593	584
q8	9513	2024	2205	2024
q9	8478	6538	6542	6538
q10	6994	2141	2186	2141
q11	444	241	241	241
q12	408	232	220	220
q13	17768	2975	3002	2975
q14	295	231	239	231
q15	514	481	498	481
q16	491	401	394	394
q17	977	674	704	674
q18	7397	6825	6794	6794
q19	7394	984	1047	984
q20	700	357	351	351
q21	3871	3001	3119	3001
q22	1090	1004	990	990
Total cold run time: 117359 ms
Total hot run time: 37718 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4583	4242	4230	4230
q2	385	260	270	260
q3	2881	2641	2651	2641
q4	2071	1736	1769	1736
q5	5626	5737	5598	5598
q6	225	136	139	136
q7	2125	1695	1717	1695
q8	3261	3441	3432	3432
q9	8899	8695	8839	8695
q10	3579	3308	3243	3243
q11	628	505	520	505
q12	847	613	633	613
q13	16003	3053	3206	3053
q14	335	293	293	293
q15	531	490	485	485
q16	483	443	467	443
q17	1860	1551	1509	1509
q18	8115	7805	7751	7751
q19	1772	1690	1564	1564
q20	2182	1915	1915	1915
q21	7955	5287	5252	5252
q22	1210	1032	995	995
Total cold run time: 75556 ms
Total hot run time: 56044 ms

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

} else {
RETURN_IF_ERROR(partition_sort_read(block, eos, state->batch_size()));
}
RETURN_IF_ERROR(partition_sort_read(block, eos, state->batch_size()));
}
return Status::OK();
}

Status PartitionSorter::partition_sort_read(Block* output_block, bool* eos, int batch_size) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warning: function 'partition_sort_read' has cognitive complexity of 55 (threshold 50) [readability-function-cognitive-complexity]

Status PartitionSorter::partition_sort_read(Block* output_block, bool* eos, int batch_size) {
                        ^
Additional context

be/src/vec/common/sort/partition_sorter.cpp:97: +1, including nesting penalty of 0, nesting level increased to 1

    if (priority_queue.empty()) {
    ^

be/src/vec/common/sort/partition_sorter.cpp:109: +1, including nesting penalty of 0, nesting level increased to 1

    while (!priority_queue.empty()) {
    ^

be/src/vec/common/sort/partition_sorter.cpp:112: +2, including nesting penalty of 1, nesting level increased to 2

        if (UNLIKELY(_previous_row->impl == nullptr)) {
        ^

be/src/vec/common/sort/partition_sorter.cpp:116: +2, including nesting penalty of 1, nesting level increased to 2

        switch (_top_n_algorithm) {
        ^

be/src/vec/common/sort/partition_sorter.cpp:119: +3, including nesting penalty of 2, nesting level increased to 3

            if ((current_output_rows + _output_total_rows) < _partition_inner_limit) {
            ^

be/src/vec/common/sort/partition_sorter.cpp:120: +4, including nesting penalty of 3, nesting level increased to 4

                for (size_t i = 0; i < num_columns; ++i) {
                ^

be/src/vec/common/sort/partition_sorter.cpp:123: +1, nesting level increased to 3

            } else {
              ^

be/src/vec/common/sort/partition_sorter.cpp:135: +3, including nesting penalty of 2, nesting level increased to 3

            if (_has_global_limit &&
            ^

be/src/vec/common/sort/partition_sorter.cpp:135: +1

            if (_has_global_limit &&
                                  ^

be/src/vec/common/sort/partition_sorter.cpp:140: +3, including nesting penalty of 2, nesting level increased to 3

            if (_has_global_limit) {
            ^

be/src/vec/common/sort/partition_sorter.cpp:142: +1, nesting level increased to 3

            } else {
              ^

be/src/vec/common/sort/partition_sorter.cpp:145: +4, including nesting penalty of 3, nesting level increased to 4

                if (cmp_res == false) {
                ^

be/src/vec/common/sort/partition_sorter.cpp:147: +5, including nesting penalty of 4, nesting level increased to 5

                    if (_output_distinct_rows >= _partition_inner_limit) {
                    ^

be/src/vec/common/sort/partition_sorter.cpp:154: +3, including nesting penalty of 2, nesting level increased to 3

            for (size_t i = 0; i < num_columns; ++i) {
            ^

be/src/vec/common/sort/partition_sorter.cpp:164: +3, including nesting penalty of 2, nesting level increased to 3

            if (_has_global_limit &&
            ^

be/src/vec/common/sort/partition_sorter.cpp:164: +1

            if (_has_global_limit &&
                                  ^

be/src/vec/common/sort/partition_sorter.cpp:171: +3, including nesting penalty of 2, nesting level increased to 3

            if (cmp_res == false) {
            ^

be/src/vec/common/sort/partition_sorter.cpp:173: +4, including nesting penalty of 3, nesting level increased to 4

                if ((current_output_rows + _output_total_rows) >= _partition_inner_limit) {
                ^

be/src/vec/common/sort/partition_sorter.cpp:179: +3, including nesting penalty of 2, nesting level increased to 3

            for (size_t i = 0; i < num_columns; ++i) {
            ^

be/src/vec/common/sort/partition_sorter.cpp:189: +2, including nesting penalty of 1, nesting level increased to 2

        if (!current->is_last()) {
        ^

be/src/vec/common/sort/partition_sorter.cpp:194: +2, including nesting penalty of 1, nesting level increased to 2

        if (current_output_rows == batch_size || get_enough_data == true) {
        ^

be/src/vec/common/sort/partition_sorter.cpp:194: +1

        if (current_output_rows == batch_size || get_enough_data == true) {
                                              ^

be/src/vec/common/sort/partition_sorter.cpp:200: +1, including nesting penalty of 0, nesting level increased to 1

    if (current_output_rows == 0 || get_enough_data == true) {
    ^

be/src/vec/common/sort/partition_sorter.cpp:200: +1

    if (current_output_rows == 0 || get_enough_data == true) {
                                 ^

@doris-robot
Copy link

TPC-H: Total hot run time: 38323 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 59c4494474e45ad6349c0f45cc4f3f988cb67ce8, data reload: false

------ Round 1 ----------------------------------
q1	17872	5105	4314	4314
q2	2046	221	226	221
q3	11930	1283	1139	1139
q4	10690	806	868	806
q5	7788	2835	2835	2835
q6	279	160	160	160
q7	1043	660	663	660
q8	9610	2098	2122	2098
q9	8831	6528	6592	6528
q10	7078	2229	2209	2209
q11	502	271	270	270
q12	436	261	265	261
q13	18455	2977	2997	2977
q14	313	271	264	264
q15	581	531	542	531
q16	537	428	417	417
q17	1011	708	723	708
q18	7424	6774	6853	6774
q19	6238	1037	1074	1037
q20	988	363	365	363
q21	3865	2939	2717	2717
q22	1133	1039	1034	1034
Total cold run time: 118650 ms
Total hot run time: 38323 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4582	4357	4268	4268
q2	426	320	315	315
q3	2922	2729	2741	2729
q4	1986	1717	1771	1717
q5	5590	5793	5613	5613
q6	233	147	148	147
q7	2183	1740	1753	1740
q8	3368	3533	3468	3468
q9	8778	8782	8828	8782
q10	3642	3291	3288	3288
q11	628	520	531	520
q12	853	660	648	648
q13	16418	3087	3090	3087
q14	341	305	298	298
q15	550	544	528	528
q16	551	487	468	468
q17	1852	1508	1508	1508
q18	8201	8062	7863	7863
q19	5343	1581	1628	1581
q20	2153	1917	1873	1873
q21	14427	5209	5235	5209
q22	1186	1089	1041	1041
Total cold run time: 86213 ms
Total hot run time: 56691 ms

@doris-robot
Copy link

TPC-H: Total hot run time: 38347 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 59c4494474e45ad6349c0f45cc4f3f988cb67ce8, data reload: false

------ Round 1 ----------------------------------
q1	17847	4434	4343	4343
q2	2049	212	206	206
q3	11813	1033	1152	1033
q4	10516	722	724	722
q5	7782	2855	2786	2786
q6	268	158	158	158
q7	1025	654	652	652
q8	9582	2118	2140	2118
q9	7745	6532	6604	6532
q10	7043	2231	2212	2212
q11	490	255	261	255
q12	422	244	249	244
q13	17789	3029	2987	2987
q14	300	266	254	254
q15	553	534	519	519
q16	508	407	405	405
q17	981	765	739	739
q18	7476	7077	6890	6890
q19	7036	1147	1075	1075
q20	718	361	354	354
q21	4335	2842	3065	2842
q22	1092	1021	1047	1021
Total cold run time: 117370 ms
Total hot run time: 38347 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4535	4366	4342	4342
q2	395	298	305	298
q3	2852	2687	2700	2687
q4	2043	1762	1713	1713
q5	5658	5724	5703	5703
q6	245	155	161	155
q7	2181	1823	1785	1785
q8	3266	3566	3505	3505
q9	8804	8760	8731	8731
q10	3617	3370	3311	3311
q11	620	539	526	526
q12	832	687	662	662
q13	17298	3191	3138	3138
q14	316	310	293	293
q15	543	527	513	513
q16	510	464	451	451
q17	1869	1541	1534	1534
q18	9463	8303	7846	7846
q19	9380	1503	1589	1503
q20	2204	1893	1859	1859
q21	13637	5436	5449	5436
q22	1117	1081	1087	1081
Total cold run time: 91385 ms
Total hot run time: 57072 ms

@Gabriel39
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

TPC-H: Total hot run time: 37790 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 59c4494474e45ad6349c0f45cc4f3f988cb67ce8, data reload: false

------ Round 1 ----------------------------------
q1	17848	4781	4305	4305
q2	2050	225	206	206
q3	11847	1004	1081	1004
q4	10532	758	812	758
q5	7789	2825	2840	2825
q6	266	155	156	155
q7	1001	654	642	642
q8	9586	2095	2071	2071
q9	8717	6488	6540	6488
q10	7076	2230	2179	2179
q11	481	265	273	265
q12	429	255	257	255
q13	17800	3018	3022	3018
q14	297	254	259	254
q15	557	533	541	533
q16	532	423	414	414
q17	996	719	675	675
q18	7256	6805	6589	6589
q19	6876	1131	1209	1131
q20	720	349	360	349
q21	3893	2642	3011	2642
q22	1155	1041	1032	1032
Total cold run time: 117704 ms
Total hot run time: 37790 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4589	4312	4236	4236
q2	408	306	313	306
q3	2884	2646	2701	2646
q4	1992	1730	1703	1703
q5	5671	5744	5642	5642
q6	248	150	150	150
q7	2159	1776	1708	1708
q8	3281	3456	3469	3456
q9	8728	8761	8634	8634
q10	3572	3374	3333	3333
q11	613	539	513	513
q12	843	679	672	672
q13	16316	3147	3222	3147
q14	319	308	299	299
q15	555	502	507	502
q16	505	453	448	448
q17	1843	1557	1532	1532
q18	8379	8076	7737	7737
q19	2909	1487	1408	1408
q20	2113	1898	1909	1898
q21	14369	5302	5399	5302
q22	1188	1109	1083	1083
Total cold run time: 83484 ms
Total hot run time: 56355 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 195787 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
TPC-DS sf100 test result on commit 59c4494474e45ad6349c0f45cc4f3f988cb67ce8, data reload: false

query1	1309	922	898	898
query2	6557	1973	1988	1973
query3	10819	4068	3864	3864
query4	57892	27374	23362	23362
query5	5747	725	699	699
query6	538	212	208	208
query7	6379	333	334	333
query8	545	453	445	445
query9	8811	2579	2553	2553
query10	574	345	335	335
query11	17568	15029	15543	15029
query12	210	134	128	128
query13	1625	435	436	435
query14	11459	7149	6795	6795
query15	262	194	196	194
query16	7491	494	533	494
query17	1148	610	617	610
query18	2073	369	335	335
query19	284	173	172	172
query20	145	136	138	136
query21	246	140	137	137
query22	4487	4267	4441	4267
query23	34348	33935	34032	33935
query24	5870	3053	2992	2992
query25	562	461	452	452
query26	729	197	182	182
query27	1810	292	302	292
query28	3761	2180	2171	2171
query29	721	482	447	447
query30	237	194	191	191
query31	1028	866	824	824
query32	97	80	80	80
query33	520	355	351	351
query34	916	507	517	507
query35	889	801	768	768
query36	1137	966	945	945
query37	158	98	105	98
query38	3943	3850	3794	3794
query39	1540	1495	1443	1443
query40	234	161	149	149
query41	138	135	136	135
query42	142	113	112	112
query43	544	508	505	505
query44	1105	779	771	771
query45	227	201	198	198
query46	1143	788	786	786
query47	1945	1823	1823	1823
query48	399	330	340	330
query49	919	575	573	573
query50	854	453	463	453
query51	7211	7058	7078	7058
query52	118	106	105	105
query53	298	226	221	221
query54	603	505	483	483
query55	88	88	110	88
query56	326	305	309	305
query57	1210	1118	1118	1118
query58	291	326	315	315
query59	2976	2978	2827	2827
query60	348	320	322	320
query61	168	149	148	148
query62	810	668	702	668
query63	252	227	224	224
query64	3283	1906	1856	1856
query65	3225	3190	3209	3190
query66	1016	711	678	678
query67	15270	15042	14828	14828
query68	4940	564	568	564
query69	620	308	309	308
query70	1183	1175	1136	1136
query71	537	321	311	311
query72	7472	2291	2071	2071
query73	794	351	352	351
query74	9286	8738	8824	8738
query75	4611	2778	2774	2774
query76	3166	1048	994	994
query77	881	425	442	425
query78	9909	9017	9004	9004
query79	3209	557	553	553
query80	1692	600	601	600
query81	617	266	254	254
query82	762	163	163	163
query83	415	215	215	215
query84	295	95	99	95
query85	1241	353	353	353
query86	455	321	341	321
query87	4491	4220	4218	4218
query88	4667	2443	2455	2443
query89	438	322	320	320
query90	2025	227	225	225
query91	153	144	126	126
query92	91	99	77	77
query93	5161	552	546	546
query94	985	335	317	317
query95	385	284	304	284
query96	630	285	293	285
query97	3258	3062	3039	3039
query98	250	226	222	222
query99	1619	1314	1315	1314
Total cold run time: 325816 ms
Total hot run time: 195787 ms

@doris-robot
Copy link

ClickBench: Total hot run time: 31.64 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit 59c4494474e45ad6349c0f45cc4f3f988cb67ce8, data reload: false

query1	0.05	0.04	0.04
query2	0.09	0.04	0.05
query3	0.23	0.06	0.06
query4	1.66	0.09	0.09
query5	0.50	0.49	0.50
query6	1.12	0.73	0.73
query7	0.02	0.02	0.01
query8	0.06	0.05	0.04
query9	0.55	0.49	0.48
query10	0.54	0.53	0.55
query11	0.16	0.11	0.12
query12	0.16	0.13	0.12
query13	0.63	0.59	0.60
query14	0.76	0.77	0.79
query15	0.87	0.84	0.83
query16	0.38	0.35	0.37
query17	1.01	1.00	1.03
query18	0.23	0.22	0.22
query19	1.78	1.71	1.75
query20	0.02	0.01	0.01
query21	15.39	0.67	0.67
query22	4.74	6.86	2.10
query23	18.25	1.45	1.36
query24	2.45	0.23	0.23
query25	0.16	0.08	0.08
query26	0.30	0.23	0.23
query27	0.45	0.23	0.23
query28	13.21	1.02	1.01
query29	12.62	3.39	3.37
query30	0.38	0.23	0.24
query31	2.85	0.41	0.41
query32	3.70	0.50	0.49
query33	3.04	3.00	3.10
query34	17.19	4.39	4.43
query35	4.42	4.42	4.50
query36	0.67	0.50	0.51
query37	0.21	0.18	0.17
query38	0.18	0.17	0.17
query39	0.07	0.05	0.05
query40	0.17	0.14	0.14
query41	0.11	0.06	0.07
query42	0.08	0.06	0.06
query43	0.06	0.05	0.05
Total cold run time: 111.52 s
Total hot run time: 31.64 s

@Gabriel39
Copy link
Contributor Author

run buildall

Copy link
Contributor

@HappenLee HappenLee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

PR approved by at least one committer and no changes requested.

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Aug 19, 2024
Copy link
Contributor

PR approved by anyone and no changes requested.

@doris-robot
Copy link

TPC-H: Total hot run time: 38100 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 68508a60079a7aa5df17b3b3ea88b87956180ef8, data reload: false

------ Round 1 ----------------------------------
q1	17841	4458	4340	4340
q2	2054	214	215	214
q3	11619	972	1129	972
q4	10530	716	830	716
q5	7780	2881	2827	2827
q6	281	158	156	156
q7	1029	651	650	650
q8	9602	2089	2098	2089
q9	8736	6558	6585	6558
q10	7075	2346	2175	2175
q11	486	267	268	267
q12	430	258	255	255
q13	17790	3013	3002	3002
q14	310	251	261	251
q15	562	544	537	537
q16	548	429	423	423
q17	996	695	718	695
q18	7470	6786	6734	6734
q19	5990	1080	1022	1022
q20	701	357	357	357
q21	3847	2845	2922	2845
q22	1130	1015	1079	1015
Total cold run time: 116807 ms
Total hot run time: 38100 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4621	4323	4349	4323
q2	428	309	320	309
q3	2838	2600	2712	2600
q4	1983	1732	1697	1697
q5	5656	5655	5734	5655
q6	239	144	146	144
q7	2206	1740	1730	1730
q8	3315	3483	3485	3483
q9	8793	8677	8705	8677
q10	3559	3368	3351	3351
q11	636	554	541	541
q12	809	664	660	660
q13	17183	3191	3166	3166
q14	320	296	288	288
q15	555	509	516	509
q16	486	458	462	458
q17	1856	1564	1511	1511
q18	8654	7898	7745	7745
q19	10069	1585	1663	1585
q20	2639	1927	1902	1902
q21	13950	5371	5409	5371
q22	1170	1109	1068	1068
Total cold run time: 91965 ms
Total hot run time: 56773 ms

@doris-robot
Copy link

TPC-H: Total hot run time: 38081 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 68508a60079a7aa5df17b3b3ea88b87956180ef8, data reload: false

------ Round 1 ----------------------------------
q1	18219	4391	4290	4290
q2	2053	205	197	197
q3	10488	1148	1118	1118
q4	10164	748	726	726
q5	7760	2826	2779	2779
q6	271	159	162	159
q7	1027	679	650	650
q8	9418	2085	2068	2068
q9	7240	6528	6539	6528
q10	7083	2219	2239	2219
q11	488	285	288	285
q12	430	259	264	259
q13	18812	3008	2955	2955
q14	311	252	267	252
q15	550	540	556	540
q16	546	416	421	416
q17	994	761	712	712
q18	7483	6969	6760	6760
q19	5819	1015	1100	1015
q20	674	350	333	333
q21	4007	2798	2935	2798
q22	1131	1022	1026	1022
Total cold run time: 114968 ms
Total hot run time: 38081 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4546	4330	4324	4324
q2	407	315	306	306
q3	2870	2639	2624	2624
q4	1960	1709	1735	1709
q5	5634	5688	5618	5618
q6	244	154	155	154
q7	2186	1798	1801	1798
q8	3319	3417	3417	3417
q9	8674	8505	8653	8505
q10	3468	3331	3309	3309
q11	637	522	546	522
q12	832	647	662	647
q13	17557	3157	3117	3117
q14	330	313	301	301
q15	568	517	547	517
q16	510	470	470	470
q17	1837	1569	1525	1525
q18	8107	7901	7628	7628
q19	3987	1650	1631	1631
q20	3247	1877	1810	1810
q21	13704	5246	5352	5246
q22	1172	1086	1088	1086
Total cold run time: 85796 ms
Total hot run time: 56264 ms

@doris-robot
Copy link

TPC-H: Total hot run time: 37782 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 68508a60079a7aa5df17b3b3ea88b87956180ef8, data reload: false

------ Round 1 ----------------------------------
q1	17855	4374	4266	4266
q2	2054	208	219	208
q3	11832	1009	1168	1009
q4	10537	704	782	704
q5	7781	2794	2838	2794
q6	263	157	156	156
q7	1024	667	660	660
q8	9578	2085	2076	2076
q9	8763	6517	6560	6517
q10	7070	2238	2251	2238
q11	483	276	274	274
q12	428	261	260	260
q13	18822	2999	3016	2999
q14	302	252	253	252
q15	566	531	524	524
q16	518	430	411	411
q17	995	655	691	655
q18	7413	6917	6669	6669
q19	6821	1125	1111	1111
q20	705	357	356	356
q21	3900	3091	2615	2615
q22	1130	1034	1028	1028
Total cold run time: 118840 ms
Total hot run time: 37782 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4568	4303	4274	4274
q2	417	324	325	324
q3	2803	2667	2736	2667
q4	1957	1704	1709	1704
q5	5626	5746	5625	5625
q6	243	151	147	147
q7	2129	1819	1726	1726
q8	3257	3511	3451	3451
q9	8788	8774	8703	8703
q10	3564	3325	3306	3306
q11	619	533	528	528
q12	813	683	673	673
q13	16201	3160	3166	3160
q14	320	299	289	289
q15	558	511	507	507
q16	509	449	471	449
q17	1847	1558	1520	1520
q18	8271	7861	7697	7697
q19	5368	1664	1460	1460
q20	2171	1934	1902	1902
q21	13972	5354	5466	5354
q22	1144	1110	1077	1077
Total cold run time: 85145 ms
Total hot run time: 56543 ms

@doris-robot
Copy link

TPC-H: Total hot run time: 38229 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 68508a60079a7aa5df17b3b3ea88b87956180ef8, data reload: false

------ Round 1 ----------------------------------
q1	17848	4456	4266	4266
q2	2054	218	213	213
q3	11632	1056	1056	1056
q4	10549	743	743	743
q5	7768	2815	2851	2815
q6	265	158	155	155
q7	1024	657	651	651
q8	9599	2081	2106	2081
q9	8734	6502	6572	6502
q10	7057	2270	2240	2240
q11	489	278	278	278
q12	431	256	258	256
q13	17802	2983	2988	2983
q14	299	255	260	255
q15	570	527	533	527
q16	531	425	406	406
q17	977	729	716	716
q18	7404	6874	6702	6702
q19	7861	1015	1083	1015
q20	717	362	369	362
q21	3819	3082	2948	2948
q22	1138	1059	1072	1059
Total cold run time: 118568 ms
Total hot run time: 38229 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4452	4278	4284	4278
q2	416	307	325	307
q3	2939	2641	2771	2641
q4	1993	1723	1715	1715
q5	5603	5688	5633	5633
q6	247	151	151	151
q7	2133	1775	1721	1721
q8	3314	3523	3470	3470
q9	8799	8753	8737	8737
q10	3618	3335	3275	3275
q11	604	512	519	512
q12	839	687	654	654
q13	17177	3212	3175	3175
q14	317	295	309	295
q15	558	528	515	515
q16	527	462	465	462
q17	1879	1542	1593	1542
q18	8267	7971	7784	7784
q19	7104	1604	1547	1547
q20	2196	1877	1883	1877
q21	14012	5107	5372	5107
q22	1180	1079	1044	1044
Total cold run time: 88174 ms
Total hot run time: 56442 ms

@Gabriel39 Gabriel39 merged commit 44aa314 into apache:master Aug 20, 2024
40 of 45 checks passed
Gabriel39 added a commit to Gabriel39/incubator-doris that referenced this pull request Aug 27, 2024
yiguolei pushed a commit that referenced this pull request Aug 30, 2024
…) (#39956)

## Proposed changes

pick #39306

<!--Describe your changes.-->
Gabriel39 added a commit to Gabriel39/incubator-doris that referenced this pull request Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by one committer. dev/2.1.6-merged dev/3.0.3-merged doing reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants