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

[refactor](exec) refactor analytic operator to improve performance #46181

Open
wants to merge 17 commits into
base: master
Choose a base branch
from

Conversation

zhangstar333
Copy link
Contributor

What problem does this PR solve?

Issue Number: close #xxx

Related PR: #xxx

Problem Summary:

Release note

None

Check List (For Author)

  • Test

    • Regression test
    • Unit Test
    • Manual test (add detailed scripts or steps below)
    • No need to test or manual test. Explain why:
      • This is a refactor/code format and no logic has been changed.
      • Previous test can cover this change.
      • No code files have been changed.
      • Other reason
  • Behavior changed:

    • No.
    • Yes.
  • Does this need documentation?

    • No.
    • Yes.

Check List (For Reviewer who merge this PR)

  • Confirm the release note
  • Confirm test cases
  • Confirm document
  • Add branch pick label

@Thearas
Copy link
Contributor

Thearas commented Dec 30, 2024

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

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

@zhangstar333
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17608	6233	6181	6181
q2	2043	323	174	174
q3	10394	1291	717	717
q4	10296	881	438	438
q5	7483	2227	1961	1961
q6	201	179	148	148
q7	902	746	636	636
q8	9233	1355	1136	1136
q9	5275	4940	4964	4940
q10	6786	2299	1850	1850
q11	483	286	278	278
q12	350	356	225	225
q13	17774	3602	2977	2977
q14	243	235	219	219
q15	573	500	501	500
q16	621	629	596	596
q17	572	853	325	325
q18	7043	6454	6378	6378
q19	1478	981	551	551
q20	313	330	198	198
q21	2864	2182	2030	2030
q22	366	337	315	315
Total cold run time: 102901 ms
Total hot run time: 32773 ms

----- Round 2, with runtime_filter_mode=off -----
q1	6266	6222	6240	6222
q2	240	329	237	237
q3	2219	2635	2297	2297
q4	1398	1805	1360	1360
q5	4341	4814	4780	4780
q6	188	179	145	145
q7	2121	1988	1786	1786
q8	2598	2807	2626	2626
q9	7322	7228	7092	7092
q10	3056	3286	2837	2837
q11	596	522	511	511
q12	680	774	614	614
q13	3427	3699	3028	3028
q14	299	313	287	287
q15	569	496	516	496
q16	650	693	644	644
q17	1193	1724	1239	1239
q18	7784	7440	7180	7180
q19	788	966	1065	966
q20	1868	1934	1822	1822
q21	5376	5128	4800	4800
q22	598	617	574	574
Total cold run time: 53577 ms
Total hot run time: 51543 ms

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 38.90% (10122/26021)
Line Coverage: 29.90% (85536/286078)
Region Coverage: 29.02% (43714/150637)
Branch Coverage: 25.55% (22296/87278)
Coverage Report: http://coverage.selectdb-in.cc/coverage/d02dbcc6573ce35820e7eacd4356288393f3e2c1_d02dbcc6573ce35820e7eacd4356288393f3e2c1/report/index.html

@zhangstar333
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17567	6130	6035	6035
q2	2051	332	173	173
q3	10403	1232	745	745
q4	10205	858	427	427
q5	7653	2213	2027	2027
q6	206	181	148	148
q7	895	762	613	613
q8	9234	1362	1123	1123
q9	5157	4914	4912	4912
q10	6879	2386	1925	1925
q11	490	283	258	258
q12	355	382	226	226
q13	17755	3613	3024	3024
q14	227	223	217	217
q15	561	504	506	504
q16	638	616	603	603
q17	579	851	329	329
q18	6915	6414	6289	6289
q19	2817	985	558	558
q20	295	314	182	182
q21	2907	2201	1959	1959
q22	358	331	294	294
Total cold run time: 104147 ms
Total hot run time: 32571 ms

----- Round 2, with runtime_filter_mode=off -----
q1	6322	6201	6292	6201
q2	226	323	226	226
q3	2285	2675	2375	2375
q4	1468	1871	1369	1369
q5	4348	4766	4906	4766
q6	199	182	147	147
q7	2104	1951	1854	1854
q8	2685	2840	2702	2702
q9	7266	7327	7281	7281
q10	3101	3366	2746	2746
q11	564	516	506	506
q12	681	794	607	607
q13	3349	3767	3177	3177
q14	282	296	299	296
q15	576	513	515	513
q16	644	680	659	659
q17	1279	1751	1255	1255
q18	7745	7569	7363	7363
q19	889	1166	1114	1114
q20	2030	2055	1976	1976
q21	5677	5277	4921	4921
q22	642	607	592	592
Total cold run time: 54362 ms
Total hot run time: 52646 ms

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 38.90% (10122/26020)
Line Coverage: 29.90% (85538/286078)
Region Coverage: 29.03% (43721/150628)
Branch Coverage: 25.55% (22299/87278)
Coverage Report: http://coverage.selectdb-in.cc/coverage/c2155d614df3dc1047c9feabbcfc8dfbb013ea9b_c2155d614df3dc1047c9feabbcfc8dfbb013ea9b/report/index.html

@zhangstar333 zhangstar333 force-pushed the support_range_between branch from c2155d6 to 3cd5904 Compare January 2, 2025 07:19
@zhangstar333
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17584	6382	6110	6110
q2	2057	316	176	176
q3	10552	1253	743	743
q4	10180	861	433	433
q5	7496	2229	1999	1999
q6	214	183	146	146
q7	903	753	590	590
q8	9214	1395	1218	1218
q9	5128	4949	4969	4949
q10	6791	2325	1875	1875
q11	505	284	261	261
q12	346	360	220	220
q13	17791	3553	2944	2944
q14	237	237	229	229
q15	572	503	495	495
q16	649	616	589	589
q17	589	867	334	334
q18	7164	6463	6418	6418
q19	1786	989	549	549
q20	314	309	184	184
q21	2914	2196	1985	1985
q22	375	332	310	310
Total cold run time: 103361 ms
Total hot run time: 32757 ms

----- Round 2, with runtime_filter_mode=off -----
q1	6346	6307	6298	6298
q2	240	319	239	239
q3	2264	2669	2348	2348
q4	1386	1877	1338	1338
q5	4351	4792	4841	4792
q6	180	179	144	144
q7	2110	1997	1812	1812
q8	2632	2836	2702	2702
q9	7270	7309	7263	7263
q10	3078	3390	2815	2815
q11	573	517	492	492
q12	652	718	594	594
q13	3372	3783	3164	3164
q14	303	292	290	290
q15	571	508	516	508
q16	641	695	636	636
q17	1237	1746	1295	1295
q18	7728	7459	7307	7307
q19	857	894	1193	894
q20	1994	2068	2013	2013
q21	5726	5227	5032	5032
q22	624	621	597	597
Total cold run time: 54135 ms
Total hot run time: 52573 ms

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 38.91% (10129/26033)
Line Coverage: 29.94% (85703/286288)
Region Coverage: 29.04% (43740/150613)
Branch Coverage: 25.57% (22321/87298)
Coverage Report: http://coverage.selectdb-in.cc/coverage/3cd59049dbfd5ca4d4b8699261d8f68c25c23092_3cd59049dbfd5ca4d4b8699261d8f68c25c23092/report/index.html

@zhangstar333
Copy link
Contributor Author

run buildall

2 similar comments
@zhangstar333
Copy link
Contributor Author

run buildall

@zhangstar333
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17653	6184	6068	6068
q2	2803	1074	935	935
q3	9961	1259	739	739
q4	10218	869	447	447
q5	7506	2196	2000	2000
q6	215	180	151	151
q7	910	755	618	618
q8	9241	1398	1187	1187
q9	5305	4883	4947	4883
q10	6761	2307	1879	1879
q11	475	287	265	265
q12	348	365	222	222
q13	17765	3676	3188	3188
q14	241	237	208	208
q15	558	502	507	502
q16	637	623	595	595
q17	939	1207	689	689
q18	7162	6500	6359	6359
q19	1245	992	573	573
q20	322	335	189	189
q21	3007	2161	1975	1975
q22	358	332	309	309
Total cold run time: 103630 ms
Total hot run time: 33981 ms

----- Round 2, with runtime_filter_mode=off -----
q1	6303	6280	6348	6280
q2	1019	1115	1026	1026
q3	2266	2602	2302	2302
q4	1471	1824	1400	1400
q5	4389	4997	5047	4997
q6	195	184	144	144
q7	2149	1914	1810	1810
q8	2594	2763	2721	2721
q9	7314	7299	7328	7299
q10	3026	3327	2852	2852
q11	576	529	516	516
q12	686	755	632	632
q13	3522	3881	3177	3177
q14	280	313	273	273
q15	565	517	521	517
q16	655	704	647	647
q17	1592	2113	1665	1665
q18	7901	7480	6988	6988
q19	823	1161	1043	1043
q20	1907	2009	1794	1794
q21	5621	4965	4812	4812
q22	656	582	567	567
Total cold run time: 55510 ms
Total hot run time: 53462 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 194699 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 b867c8ba15398a1adf96285e32374b5b0e9ffd98, data reload: false

query1	966	384	372	372
query2	6525	2261	2378	2261
query3	6709	218	214	214
query4	34079	24111	23395	23395
query5	4337	644	454	454
query6	291	195	194	194
query7	4629	511	308	308
query8	311	241	225	225
query9	9716	2636	2627	2627
query10	478	318	243	243
query11	18198	15414	15225	15225
query12	158	104	105	104
query13	1658	543	392	392
query14	9955	6893	7854	6893
query15	270	200	198	198
query16	8153	615	396	396
query17	1564	743	558	558
query18	2014	401	293	293
query19	218	176	148	148
query20	117	116	112	112
query21	203	128	105	105
query22	4222	4576	4155	4155
query23	34304	33812	34759	33812
query24	6509	2356	2253	2253
query25	480	468	412	412
query26	756	268	155	155
query27	1989	478	337	337
query28	5130	2425	2388	2388
query29	552	555	437	437
query30	233	188	154	154
query31	1051	924	783	783
query32	102	63	63	63
query33	505	346	296	296
query34	735	832	511	511
query35	835	816	753	753
query36	1024	1038	972	972
query37	127	94	84	84
query38	4299	4204	4216	4204
query39	1469	1433	1456	1433
query40	207	121	103	103
query41	46	47	48	47
query42	131	103	101	101
query43	515	511	487	487
query44	1371	800	797	797
query45	181	170	170	170
query46	868	1048	640	640
query47	3704	3684	3650	3650
query48	371	413	320	320
query49	769	486	398	398
query50	595	658	396	396
query51	7232	7196	7004	7004
query52	101	102	90	90
query53	250	269	198	198
query54	472	485	403	403
query55	80	81	87	81
query56	268	248	242	242
query57	3906	3860	3792	3792
query58	243	224	228	224
query59	2920	3252	3030	3030
query60	292	268	243	243
query61	113	108	109	108
query62	888	802	740	740
query63	234	203	199	199
query64	3820	1007	642	642
query65	3304	3224	3210	3210
query66	889	424	315	315
query67	16052	15856	15563	15563
query68	8006	736	520	520
query69	488	296	259	259
query70	1199	1212	1140	1140
query71	439	285	262	262
query72	6165	3840	3828	3828
query73	671	774	351	351
query74	10134	9404	8809	8809
query75	4060	3263	2678	2678
query76	3691	1206	783	783
query77	768	439	282	282
query78	10250	10101	9415	9415
query79	3723	840	578	578
query80	710	547	449	449
query81	479	277	231	231
query82	671	154	131	131
query83	202	172	145	145
query84	286	93	70	70
query85	780	356	314	314
query86	353	318	292	292
query87	4412	4408	4360	4360
query88	4449	2165	2145	2145
query89	426	349	304	304
query90	1905	192	185	185
query91	136	141	109	109
query92	70	61	64	61
query93	1628	890	541	541
query94	654	413	285	285
query95	343	264	263	263
query96	498	628	276	276
query97	2942	3050	2860	2860
query98	240	204	206	204
query99	1702	1586	1457	1457
Total cold run time: 297173 ms
Total hot run time: 194699 ms

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 38.89% (10129/26043)
Line Coverage: 29.93% (85699/286297)
Region Coverage: 29.04% (43738/150607)
Branch Coverage: 25.58% (22326/87264)
Coverage Report: http://coverage.selectdb-in.cc/coverage/b867c8ba15398a1adf96285e32374b5b0e9ffd98_b867c8ba15398a1adf96285e32374b5b0e9ffd98/report/index.html

@doris-robot
Copy link

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

query1	0.04	0.03	0.04
query2	0.08	0.03	0.03
query3	0.24	0.07	0.08
query4	1.61	0.11	0.11
query5	0.41	0.41	0.40
query6	1.16	0.66	0.64
query7	0.02	0.01	0.01
query8	0.04	0.04	0.04
query9	0.59	0.49	0.50
query10	0.57	0.58	0.55
query11	0.14	0.10	0.10
query12	0.14	0.10	0.11
query13	0.61	0.62	0.60
query14	2.74	2.84	2.72
query15	0.91	0.82	0.84
query16	0.39	0.37	0.38
query17	1.08	1.06	1.05
query18	0.22	0.21	0.21
query19	1.88	1.79	2.02
query20	0.02	0.01	0.01
query21	15.36	0.91	0.57
query22	0.76	0.74	0.59
query23	15.39	1.45	0.59
query24	2.85	1.38	1.77
query25	0.19	0.08	0.18
query26	0.27	0.15	0.13
query27	0.05	0.05	0.06
query28	13.91	1.49	1.05
query29	12.61	3.96	3.27
query30	0.26	0.09	0.06
query31	2.82	0.60	0.38
query32	3.24	0.54	0.46
query33	3.07	3.10	3.16
query34	16.70	5.11	4.48
query35	4.51	4.45	4.46
query36	0.64	0.48	0.49
query37	0.09	0.07	0.06
query38	0.05	0.04	0.04
query39	0.03	0.03	0.02
query40	0.17	0.13	0.12
query41	0.07	0.03	0.02
query42	0.04	0.02	0.02
query43	0.04	0.04	0.03
Total cold run time: 106.01 s
Total hot run time: 31.57 s

@zhangstar333
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17597	6092	5991	5991
q2	2794	1057	920	920
q3	9980	1241	717	717
q4	10243	858	440	440
q5	8184	2171	2000	2000
q6	208	179	148	148
q7	881	770	597	597
q8	9234	1373	1149	1149
q9	5240	4841	4902	4841
q10	6755	2327	1871	1871
q11	481	289	249	249
q12	343	364	227	227
q13	17764	3687	3063	3063
q14	226	244	221	221
q15	572	511	487	487
q16	632	625	591	591
q17	904	1222	709	709
q18	7191	6766	6540	6540
q19	1569	976	558	558
q20	303	314	200	200
q21	2778	2175	1985	1985
q22	364	326	306	306
Total cold run time: 104243 ms
Total hot run time: 33810 ms

----- Round 2, with runtime_filter_mode=off -----
q1	6222	6269	6242	6242
q2	1003	1076	1004	1004
q3	2221	2631	2294	2294
q4	1390	1818	1321	1321
q5	4346	4936	4973	4936
q6	179	177	139	139
q7	2083	1959	1881	1881
q8	2728	2830	2650	2650
q9	7336	7329	7340	7329
q10	3104	3276	2850	2850
q11	573	528	513	513
q12	661	798	612	612
q13	3534	3889	3255	3255
q14	290	298	269	269
q15	557	517	516	516
q16	657	686	657	657
q17	1575	2127	1626	1626
q18	7800	7606	7476	7476
q19	814	1146	1068	1068
q20	1999	2057	1937	1937
q21	5543	5167	4989	4989
q22	649	620	609	609
Total cold run time: 55264 ms
Total hot run time: 54173 ms

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 38.89% (10128/26044)
Line Coverage: 29.92% (85685/286367)
Region Coverage: 29.02% (43723/150646)
Branch Coverage: 25.56% (22315/87288)
Coverage Report: http://coverage.selectdb-in.cc/coverage/5a2a5171b633d54ab198e8302c5e2099bae3b214_5a2a5171b633d54ab198e8302c5e2099bae3b214/report/index.html

@zhangstar333
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17569	6177	6015	6015
q2	2826	1064	916	916
q3	9957	1241	736	736
q4	10227	878	450	450
q5	7533	2183	1978	1978
q6	205	181	150	150
q7	916	756	611	611
q8	9233	1385	1148	1148
q9	5215	5004	4919	4919
q10	6747	2324	1892	1892
q11	488	288	261	261
q12	347	357	222	222
q13	17776	3617	3072	3072
q14	237	234	217	217
q15	564	510	512	510
q16	627	631	608	608
q17	913	1192	676	676
q18	7053	6468	6411	6411
q19	1314	965	557	557
q20	308	329	193	193
q21	2801	2196	1976	1976
q22	361	330	307	307
Total cold run time: 103217 ms
Total hot run time: 33825 ms

----- Round 2, with runtime_filter_mode=off -----
q1	6249	6250	6240	6240
q2	988	1066	998	998
q3	2219	2603	2306	2306
q4	1483	1848	1390	1390
q5	4361	4903	5038	4903
q6	182	176	148	148
q7	2157	2001	1754	1754
q8	2625	2732	2645	2645
q9	7259	7244	7242	7242
q10	3051	3317	2851	2851
q11	603	509	496	496
q12	643	798	645	645
q13	3496	3874	3293	3293
q14	294	306	291	291
q15	575	509	503	503
q16	667	692	644	644
q17	1582	2088	1618	1618
q18	7872	7238	7019	7019
q19	789	1023	1099	1023
q20	1965	1971	1901	1901
q21	5398	5047	4785	4785
q22	613	617	557	557
Total cold run time: 55071 ms
Total hot run time: 53252 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 195996 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 dfd248e20f381d08d6e686d634cf39b386bf60a9, data reload: false

query1	960	386	361	361
query2	6522	2444	2383	2383
query3	6709	214	211	211
query4	33704	24161	23620	23620
query5	4408	642	470	470
query6	295	225	200	200
query7	4641	498	310	310
query8	311	248	237	237
query9	9252	2635	2634	2634
query10	471	315	255	255
query11	18098	15747	15185	15185
query12	178	115	107	107
query13	1666	553	425	425
query14	10855	7458	7483	7458
query15	271	202	194	194
query16	7939	613	466	466
query17	1573	768	576	576
query18	1987	387	292	292
query19	219	175	155	155
query20	118	114	111	111
query21	214	156	106	106
query22	4349	4466	4450	4450
query23	34581	33273	33949	33273
query24	6267	2301	2242	2242
query25	501	448	377	377
query26	1190	275	156	156
query27	2019	453	347	347
query28	5385	2398	2391	2391
query29	730	540	422	422
query30	233	181	145	145
query31	1005	899	820	820
query32	94	67	64	64
query33	502	342	306	306
query34	756	828	525	525
query35	787	839	734	734
query36	1032	1057	941	941
query37	122	103	77	77
query38	4157	4279	4262	4262
query39	1492	1452	1436	1436
query40	203	115	104	104
query41	48	46	44	44
query42	127	104	111	104
query43	524	533	502	502
query44	1282	831	817	817
query45	178	166	168	166
query46	856	1037	650	650
query47	3626	3669	3572	3572
query48	399	401	318	318
query49	798	487	398	398
query50	598	667	385	385
query51	7435	7321	7066	7066
query52	104	101	95	95
query53	242	269	203	203
query54	476	497	401	401
query55	86	78	78	78
query56	259	257	220	220
query57	3815	3765	3744	3744
query58	229	223	229	223
query59	3045	3144	3008	3008
query60	283	262	252	252
query61	114	112	112	112
query62	899	786	738	738
query63	230	209	201	201
query64	4638	1002	666	666
query65	3275	3187	3220	3187
query66	1066	420	362	362
query67	16000	15942	15734	15734
query68	8256	712	529	529
query69	463	305	253	253
query70	1213	1144	1117	1117
query71	465	282	270	270
query72	6235	3903	3886	3886
query73	644	733	361	361
query74	9745	9052	8950	8950
query75	4023	3143	2660	2660
query76	3703	1192	791	791
query77	771	372	268	268
query78	10293	10203	9631	9631
query79	3845	802	598	598
query80	718	521	449	449
query81	484	271	228	228
query82	593	148	126	126
query83	202	175	142	142
query84	281	90	70	70
query85	816	362	306	306
query86	357	314	288	288
query87	4689	4679	4325	4325
query88	4309	2177	2136	2136
query89	413	355	314	314
query90	1948	187	191	187
query91	139	139	112	112
query92	69	61	58	58
query93	1368	861	543	543
query94	669	399	298	298
query95	349	270	270	270
query96	476	606	280	280
query97	2855	2986	2840	2840
query98	231	197	200	197
query99	1710	1518	1439	1439
Total cold run time: 298760 ms
Total hot run time: 195996 ms

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 38.89% (10129/26044)
Line Coverage: 29.92% (85689/286368)
Region Coverage: 29.03% (43728/150648)
Branch Coverage: 25.57% (22321/87290)
Coverage Report: http://coverage.selectdb-in.cc/coverage/dfd248e20f381d08d6e686d634cf39b386bf60a9_dfd248e20f381d08d6e686d634cf39b386bf60a9/report/index.html

@doris-robot
Copy link

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

query1	0.03	0.03	0.03
query2	0.06	0.04	0.03
query3	0.24	0.08	0.07
query4	1.59	0.11	0.11
query5	0.43	0.42	0.42
query6	1.14	0.66	0.66
query7	0.02	0.02	0.02
query8	0.04	0.03	0.03
query9	0.58	0.50	0.51
query10	0.56	0.58	0.54
query11	0.14	0.10	0.10
query12	0.13	0.11	0.11
query13	0.60	0.60	0.59
query14	2.83	2.82	2.75
query15	0.89	0.83	0.82
query16	0.38	0.38	0.39
query17	1.01	1.04	1.05
query18	0.22	0.22	0.21
query19	1.87	1.90	2.01
query20	0.02	0.01	0.01
query21	15.40	0.88	0.59
query22	0.77	0.71	0.70
query23	15.34	1.43	0.53
query24	3.26	1.91	1.05
query25	0.21	0.17	0.07
query26	0.24	0.15	0.13
query27	0.05	0.05	0.07
query28	13.76	1.49	1.04
query29	12.57	3.94	3.25
query30	0.24	0.08	0.06
query31	2.84	0.58	0.38
query32	3.22	0.54	0.45
query33	3.11	3.00	3.03
query34	16.82	5.12	4.48
query35	4.53	4.48	4.50
query36	0.83	0.47	0.48
query37	0.09	0.06	0.06
query38	0.04	0.03	0.03
query39	0.03	0.02	0.03
query40	0.17	0.13	0.13
query41	0.08	0.03	0.02
query42	0.04	0.02	0.02
query43	0.03	0.04	0.03
Total cold run time: 106.45 s
Total hot run time: 31.36 s

@zhangstar333
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17605	6208	6082	6082
q2	2791	1014	915	915
q3	9975	1212	790	790
q4	10215	871	431	431
q5	7648	2251	2005	2005
q6	203	180	151	151
q7	881	761	603	603
q8	9247	1379	1219	1219
q9	5310	4877	4916	4877
q10	6775	2272	1856	1856
q11	485	306	275	275
q12	356	359	222	222
q13	17779	3610	3053	3053
q14	237	252	206	206
q15	566	522	505	505
q16	623	610	580	580
q17	886	1194	666	666
q18	7012	6412	6460	6412
q19	2387	969	550	550
q20	292	316	188	188
q21	2797	2208	2006	2006
q22	367	338	307	307
Total cold run time: 104437 ms
Total hot run time: 33899 ms

----- Round 2, with runtime_filter_mode=off -----
q1	6297	6207	6204	6204
q2	996	1092	1017	1017
q3	2272	2639	2307	2307
q4	1389	1801	1372	1372
q5	4333	4954	4875	4875
q6	181	182	142	142
q7	2095	1961	1834	1834
q8	2649	2791	2753	2753
q9	7296	7293	7310	7293
q10	3097	3269	2859	2859
q11	612	515	497	497
q12	714	752	623	623
q13	3494	3907	3313	3313
q14	301	304	278	278
q15	564	528	497	497
q16	651	689	670	670
q17	1586	2117	1608	1608
q18	7640	7584	7351	7351
q19	836	1180	1060	1060
q20	1978	2023	1899	1899
q21	5684	5259	5167	5167
q22	634	638	575	575
Total cold run time: 55299 ms
Total hot run time: 54194 ms

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 38.88% (10127/26049)
Line Coverage: 29.92% (85695/286422)
Region Coverage: 29.01% (43714/150676)
Branch Coverage: 25.56% (22317/87310)
Coverage Report: http://coverage.selectdb-in.cc/coverage/cfd8dfb0126bb722a11de28058c3fad7ec0cdd45_cfd8dfb0126bb722a11de28058c3fad7ec0cdd45/report/index.html

@zhangstar333
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

TPC-DS: Total hot run time: 185728 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 3dd956c7998f991d185a17bf9f6b03d2b655bfda, data reload: false

query1	981	385	372	372
query2	6541	2456	2419	2419
query3	6711	217	216	216
query4	33881	23393	23467	23393
query5	4307	655	475	475
query6	288	206	191	191
query7	4617	487	304	304
query8	298	274	231	231
query9	9418	2714	2688	2688
query10	491	307	249	249
query11	18228	15683	14967	14967
query12	161	113	107	107
query13	1640	515	398	398
query14	11280	7361	7103	7103
query15	235	189	183	183
query16	8586	584	442	442
query17	1615	753	581	581
query18	2078	412	336	336
query19	200	173	146	146
query20	115	107	111	107
query21	209	120	99	99
query22	4462	4596	4291	4291
query23	34028	33058	32954	32954
query24	6324	2235	2250	2235
query25	510	449	382	382
query26	1208	269	149	149
query27	2044	456	343	343
query28	4978	2440	2434	2434
query29	734	540	410	410
query30	228	182	150	150
query31	976	844	773	773
query32	88	59	59	59
query33	514	380	283	283
query34	767	833	504	504
query35	780	809	718	718
query36	1002	1014	935	935
query37	124	96	75	75
query38	3938	3974	4012	3974
query39	1500	1377	1409	1377
query40	205	115	97	97
query41	52	52	49	49
query42	115	102	100	100
query43	523	532	508	508
query44	1302	814	807	807
query45	180	173	167	167
query46	851	1015	634	634
query47	1846	1839	1819	1819
query48	373	392	330	330
query49	758	485	385	385
query50	629	659	373	373
query51	4321	4232	4217	4217
query52	108	99	90	90
query53	225	279	183	183
query54	480	490	399	399
query55	83	80	79	79
query56	257	253	239	239
query57	1191	1126	1109	1109
query58	237	229	230	229
query59	3058	3234	2971	2971
query60	278	260	271	260
query61	111	108	108	108
query62	838	785	709	709
query63	231	196	189	189
query64	4197	1005	642	642
query65	3238	3137	3180	3137
query66	1034	414	307	307
query67	15813	15667	15398	15398
query68	8037	705	519	519
query69	449	289	253	253
query70	1179	1132	1074	1074
query71	430	330	254	254
query72	6127	3853	3856	3853
query73	675	747	350	350
query74	10284	8941	8649	8649
query75	4016	3156	2669	2669
query76	3648	1149	747	747
query77	790	378	267	267
query78	10014	9941	9465	9465
query79	3515	818	581	581
query80	663	528	434	434
query81	487	279	220	220
query82	667	158	124	124
query83	202	163	145	145
query84	288	97	75	75
query85	756	417	292	292
query86	392	310	275	275
query87	4387	4364	4416	4364
query88	4753	2192	2157	2157
query89	398	330	350	330
query90	1859	187	182	182
query91	133	136	106	106
query92	68	56	54	54
query93	1952	878	539	539
query94	665	389	282	282
query95	329	255	261	255
query96	493	610	277	277
query97	2867	2955	2802	2802
query98	234	209	198	198
query99	1616	1495	1348	1348
Total cold run time: 290992 ms
Total hot run time: 185728 ms

@doris-robot
Copy link

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

query1	0.04	0.03	0.05
query2	0.06	0.04	0.02
query3	0.24	0.07	0.07
query4	1.63	0.10	0.11
query5	0.42	0.41	0.41
query6	1.17	0.64	0.65
query7	0.02	0.02	0.02
query8	0.03	0.03	0.04
query9	0.58	0.51	0.50
query10	0.55	0.56	0.55
query11	0.14	0.10	0.11
query12	0.14	0.10	0.11
query13	0.60	0.61	0.59
query14	2.72	2.89	2.69
query15	0.88	0.82	0.81
query16	0.39	0.38	0.36
query17	1.04	0.98	1.04
query18	0.24	0.20	0.21
query19	1.89	1.84	1.91
query20	0.02	0.01	0.01
query21	15.37	0.97	0.57
query22	0.76	0.78	0.60
query23	15.43	1.39	0.52
query24	3.27	0.44	0.43
query25	0.27	0.15	0.14
query26	0.32	0.14	0.14
query27	0.08	0.04	0.05
query28	12.65	1.56	1.04
query29	12.58	3.88	3.22
query30	0.26	0.09	0.07
query31	2.81	0.59	0.38
query32	3.25	0.55	0.45
query33	3.12	3.13	3.11
query34	16.89	5.08	4.49
query35	4.53	4.47	4.48
query36	0.62	0.49	0.47
query37	0.09	0.06	0.05
query38	0.05	0.03	0.03
query39	0.03	0.03	0.02
query40	0.16	0.13	0.11
query41	0.08	0.03	0.02
query42	0.03	0.02	0.03
query43	0.04	0.03	0.02
Total cold run time: 105.49 s
Total hot run time: 30.46 s

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 39.34% (10251/26059)
Line Coverage: 30.49% (87302/286296)
Region Coverage: 29.55% (44511/150620)
Branch Coverage: 26.11% (22790/87274)
Coverage Report: http://coverage.selectdb-in.cc/coverage/3dd956c7998f991d185a17bf9f6b03d2b655bfda_3dd956c7998f991d185a17bf9f6b03d2b655bfda/report/index.html

@zhangstar333 zhangstar333 changed the title refactor all [refactor](exec) refactor analytic operator to improve performance Jan 9, 2025
@zhangstar333
Copy link
Contributor Author

run p1

@zhangstar333
Copy link
Contributor Author

run buildall

@zhangstar333
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17580	6197	6072	6072
q2	2039	310	174	174
q3	10527	1224	740	740
q4	10286	878	446	446
q5	9120	2194	1984	1984
q6	212	176	144	144
q7	905	755	593	593
q8	9241	1368	1183	1183
q9	5196	4853	4948	4853
q10	6738	2278	1843	1843
q11	486	280	269	269
q12	338	357	215	215
q13	17766	3684	3091	3091
q14	231	232	210	210
q15	561	514	498	498
q16	638	599	601	599
q17	588	856	347	347
q18	6933	6425	6316	6316
q19	1976	961	556	556
q20	317	316	188	188
q21	2869	2239	1987	1987
q22	368	347	298	298
Total cold run time: 104915 ms
Total hot run time: 32606 ms

----- Round 2, with runtime_filter_mode=off -----
q1	6389	6294	6256	6256
q2	233	325	236	236
q3	2229	2666	2312	2312
q4	1406	1799	1348	1348
q5	4357	4712	4883	4712
q6	187	185	143	143
q7	2077	1904	1824	1824
q8	2632	2794	2740	2740
q9	7314	7381	7364	7364
q10	3102	3277	2711	2711
q11	594	508	510	508
q12	686	787	613	613
q13	3434	3849	3251	3251
q14	290	306	282	282
q15	568	532	506	506
q16	641	680	658	658
q17	1238	1735	1235	1235
q18	7826	7489	7268	7268
q19	855	1073	1139	1073
q20	1928	2004	1925	1925
q21	5847	5147	5093	5093
q22	606	646	583	583
Total cold run time: 54439 ms
Total hot run time: 52641 ms

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 39.36% (10257/26062)
Line Coverage: 30.52% (87407/286400)
Region Coverage: 29.57% (44552/150667)
Branch Coverage: 26.12% (22801/87302)
Coverage Report: http://coverage.selectdb-in.cc/coverage/0897908db2be5dc567912fb960dfa962dfa2a8bc_0897908db2be5dc567912fb960dfa962dfa2a8bc/report/index.html

@doris-robot
Copy link

TPC-DS: Total hot run time: 192622 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 0897908db2be5dc567912fb960dfa962dfa2a8bc, data reload: false

query1	1310	959	938	938
query2	6296	2247	2272	2247
query3	11088	4881	4790	4790
query4	32987	23521	23149	23149
query5	3472	597	455	455
query6	296	240	187	187
query7	3978	488	311	311
query8	297	238	217	217
query9	9476	2766	2749	2749
query10	458	304	247	247
query11	17832	15206	15012	15012
query12	149	107	104	104
query13	1562	516	404	404
query14	8980	6895	7580	6895
query15	270	213	197	197
query16	8079	673	524	524
query17	1584	768	603	603
query18	2185	415	312	312
query19	197	182	166	166
query20	119	114	112	112
query21	205	129	104	104
query22	4703	4514	4378	4378
query23	33947	34340	33478	33478
query24	6348	2362	2315	2315
query25	497	472	430	430
query26	795	286	152	152
query27	2105	483	342	342
query28	5353	2537	2487	2487
query29	630	560	404	404
query30	216	188	158	158
query31	946	866	795	795
query32	78	58	61	58
query33	491	354	311	311
query34	758	878	512	512
query35	788	834	773	773
query36	1025	1069	970	970
query37	125	101	78	78
query38	4143	4272	4229	4229
query39	1567	1451	1440	1440
query40	202	119	104	104
query41	56	53	50	50
query42	123	114	115	114
query43	525	512	483	483
query44	1362	847	845	845
query45	198	173	165	165
query46	882	1065	643	643
query47	1900	1894	1871	1871
query48	415	396	334	334
query49	693	483	412	412
query50	660	672	389	389
query51	4367	4359	4325	4325
query52	102	103	91	91
query53	237	257	190	190
query54	496	492	414	414
query55	88	77	83	77
query56	272	269	246	246
query57	1239	1226	1126	1126
query58	248	235	244	235
query59	3327	3281	3233	3233
query60	279	264	278	264
query61	115	113	117	113
query62	823	804	736	736
query63	219	185	186	185
query64	3437	1012	656	656
query65	3346	3257	3195	3195
query66	770	410	304	304
query67	16461	15689	15392	15392
query68	8312	710	524	524
query69	459	302	271	271
query70	1187	1149	1086	1086
query71	373	313	253	253
query72	6431	3818	3786	3786
query73	654	749	355	355
query74	9818	9144	8891	8891
query75	3183	3124	2635	2635
query76	3092	1172	779	779
query77	462	366	274	274
query78	9953	9927	9404	9404
query79	3284	803	592	592
query80	647	525	551	525
query81	485	276	238	238
query82	665	147	118	118
query83	172	166	168	166
query84	243	90	76	76
query85	760	345	296	296
query86	343	300	310	300
query87	4365	4387	4330	4330
query88	4571	2192	2170	2170
query89	415	324	287	287
query90	1818	187	188	187
query91	137	135	109	109
query92	64	55	53	53
query93	1847	877	528	528
query94	673	388	278	278
query95	320	263	246	246
query96	494	608	295	295
query97	2872	2905	2790	2790
query98	217	192	208	192
query99	1613	1480	1363	1363
Total cold run time: 288106 ms
Total hot run time: 192622 ms

@doris-robot
Copy link

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

query1	0.04	0.05	0.03
query2	0.07	0.03	0.03
query3	0.25	0.07	0.07
query4	1.62	0.10	0.10
query5	0.41	0.42	0.40
query6	1.16	0.65	0.65
query7	0.02	0.01	0.01
query8	0.04	0.03	0.03
query9	0.60	0.50	0.50
query10	0.56	0.56	0.56
query11	0.14	0.10	0.11
query12	0.14	0.11	0.10
query13	0.61	0.62	0.58
query14	2.74	2.85	2.75
query15	0.90	0.80	0.81
query16	0.39	0.38	0.39
query17	1.07	1.00	1.08
query18	0.22	0.21	0.21
query19	1.97	1.86	1.95
query20	0.01	0.01	0.01
query21	15.37	0.99	0.59
query22	0.75	0.78	0.81
query23	15.14	1.36	0.57
query24	3.66	0.87	0.62
query25	0.16	0.08	0.13
query26	0.43	0.15	0.14
query27	0.04	0.07	0.05
query28	13.24	1.56	1.04
query29	12.54	3.89	3.21
query30	0.25	0.08	0.06
query31	2.85	0.56	0.37
query32	3.23	0.53	0.46
query33	3.12	3.00	3.14
query34	16.67	5.10	4.51
query35	4.54	4.49	4.52
query36	0.63	0.48	0.48
query37	0.10	0.06	0.06
query38	0.05	0.04	0.03
query39	0.03	0.03	0.02
query40	0.16	0.13	0.12
query41	0.08	0.03	0.03
query42	0.04	0.02	0.02
query43	0.03	0.03	0.03
Total cold run time: 106.07 s
Total hot run time: 30.93 s

@zhangstar333
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 39.17% (10209/26062)
Line Coverage: 30.34% (86891/286401)
Region Coverage: 29.42% (44323/150669)
Branch Coverage: 26.02% (22720/87304)
Coverage Report: http://coverage.selectdb-in.cc/coverage/0897908db2be5dc567912fb960dfa962dfa2a8bc_0897908db2be5dc567912fb960dfa962dfa2a8bc/report/index.html

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17629	6148	6093	6093
q2	2421	334	181	181
q3	10450	1262	730	730
q4	10264	854	424	424
q5	8738	2189	1931	1931
q6	210	174	144	144
q7	889	745	592	592
q8	9240	1338	1223	1223
q9	5335	4894	4903	4894
q10	6750	2310	1855	1855
q11	472	278	265	265
q12	336	351	214	214
q13	17776	3677	3055	3055
q14	227	235	219	219
q15	564	515	520	515
q16	631	617	591	591
q17	549	840	326	326
q18	6841	6326	6462	6326
q19	2385	957	532	532
q20	309	312	187	187
q21	2880	2180	1974	1974
q22	363	337	312	312
Total cold run time: 105259 ms
Total hot run time: 32583 ms

----- Round 2, with runtime_filter_mode=off -----
q1	6389	6260	6291	6260
q2	231	324	229	229
q3	2199	2675	2346	2346
q4	1388	1856	1390	1390
q5	4311	4751	4870	4751
q6	187	177	141	141
q7	1998	1961	1799	1799
q8	2586	2795	2708	2708
q9	7276	7314	7342	7314
q10	3089	3282	2743	2743
q11	598	545	515	515
q12	662	764	603	603
q13	3488	3805	3173	3173
q14	295	309	292	292
q15	554	510	504	504
q16	656	679	655	655
q17	1180	1730	1252	1252
q18	7818	7467	7321	7321
q19	751	1092	1100	1092
q20	2014	2020	1974	1974
q21	5717	5127	4928	4928
q22	621	649	610	610
Total cold run time: 54008 ms
Total hot run time: 52600 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 192536 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 0897908db2be5dc567912fb960dfa962dfa2a8bc, data reload: false

query1	1310	955	976	955
query2	6287	2265	2319	2265
query3	11109	4972	4892	4892
query4	32826	23583	23375	23375
query5	3627	590	446	446
query6	282	199	203	199
query7	3982	485	302	302
query8	300	234	220	220
query9	9407	2741	2736	2736
query10	444	310	250	250
query11	18199	15469	15043	15043
query12	168	108	104	104
query13	1578	539	399	399
query14	11380	7723	6561	6561
query15	257	210	192	192
query16	7949	612	450	450
query17	1553	774	599	599
query18	2118	423	324	324
query19	225	200	166	166
query20	118	112	115	112
query21	207	173	106	106
query22	4677	4446	4365	4365
query23	34070	33921	33446	33446
query24	6183	2290	2319	2290
query25	485	475	394	394
query26	792	277	158	158
query27	2013	472	331	331
query28	5415	2518	2469	2469
query29	529	581	428	428
query30	211	186	168	168
query31	959	896	808	808
query32	72	64	57	57
query33	494	347	317	317
query34	751	866	509	509
query35	792	840	741	741
query36	1023	1063	971	971
query37	128	102	72	72
query38	4176	4164	4398	4164
query39	1527	1465	1450	1450
query40	206	116	101	101
query41	50	48	51	48
query42	115	103	99	99
query43	541	537	499	499
query44	1429	836	829	829
query45	181	181	165	165
query46	887	1060	664	664
query47	1892	1923	1859	1859
query48	380	422	324	324
query49	719	501	437	437
query50	672	664	394	394
query51	4416	4417	4341	4341
query52	111	99	95	95
query53	227	258	183	183
query54	485	512	403	403
query55	90	81	78	78
query56	264	274	243	243
query57	1200	1201	1160	1160
query58	248	243	231	231
query59	3262	3320	2998	2998
query60	307	275	258	258
query61	112	114	110	110
query62	867	813	713	713
query63	224	187	186	186
query64	3621	1018	701	701
query65	3308	3214	3244	3214
query66	752	412	305	305
query67	16756	16134	15440	15440
query68	8489	702	510	510
query69	482	281	259	259
query70	1203	1156	1108	1108
query71	436	283	258	258
query72	6427	3886	3833	3833
query73	665	757	363	363
query74	10546	8910	8589	8589
query75	4509	3140	2723	2723
query76	3783	1194	775	775
query77	783	368	285	285
query78	10043	10115	9683	9683
query79	3925	810	585	585
query80	738	529	541	529
query81	520	275	240	240
query82	639	151	120	120
query83	193	183	147	147
query84	279	93	66	66
query85	752	354	299	299
query86	403	293	290	290
query87	4411	4467	4430	4430
query88	4650	2180	2174	2174
query89	412	336	289	289
query90	1853	191	187	187
query91	133	135	162	135
query92	64	59	49	49
query93	2469	866	519	519
query94	635	420	299	299
query95	330	266	259	259
query96	493	620	289	289
query97	2920	2911	2763	2763
query98	220	201	191	191
query99	1640	1489	1378	1378
Total cold run time: 295990 ms
Total hot run time: 192536 ms

@doris-robot
Copy link

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

query1	0.03	0.03	0.03
query2	0.06	0.04	0.03
query3	0.24	0.07	0.06
query4	1.60	0.11	0.10
query5	0.42	0.42	0.43
query6	1.16	0.66	0.64
query7	0.02	0.02	0.01
query8	0.03	0.04	0.03
query9	0.59	0.49	0.48
query10	0.55	0.56	0.55
query11	0.15	0.11	0.11
query12	0.14	0.10	0.10
query13	0.61	0.60	0.61
query14	2.72	2.72	2.75
query15	0.89	0.83	0.82
query16	0.38	0.38	0.38
query17	1.06	1.02	1.05
query18	0.23	0.21	0.21
query19	1.97	1.85	1.94
query20	0.02	0.01	0.01
query21	15.36	0.92	0.62
query22	0.77	0.93	0.70
query23	15.12	1.46	0.59
query24	2.95	0.97	1.17
query25	0.25	0.17	0.07
query26	0.27	0.15	0.13
query27	0.06	0.05	0.05
query28	14.24	1.54	1.04
query29	12.56	3.94	3.29
query30	0.25	0.10	0.07
query31	2.81	0.60	0.38
query32	3.22	0.54	0.46
query33	3.10	3.00	3.11
query34	16.79	5.21	4.52
query35	4.55	4.54	4.50
query36	0.64	0.50	0.48
query37	0.10	0.06	0.06
query38	0.04	0.04	0.03
query39	0.04	0.02	0.02
query40	0.17	0.13	0.13
query41	0.08	0.03	0.02
query42	0.04	0.02	0.02
query43	0.03	0.02	0.03
Total cold run time: 106.31 s
Total hot run time: 31.34 s

// For window frame `ROWS|RANGE BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING`
_executor.get_next_impl = &AnalyticSinkLocalState::_get_next_for_partition;
} else if (p._has_range_window) {
if (!p._has_window_start && !p._has_window_end) {
Copy link
Contributor

@HappenLee HappenLee Jan 10, 2025

Choose a reason for hiding this comment

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

why try to do the work in FE?better add the check in FE set !has_window? consider update

@zhangstar333
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17584	6146	6083	6083
q2	2048	305	174	174
q3	10409	1266	731	731
q4	10208	900	450	450
q5	7516	2244	2017	2017
q6	212	189	152	152
q7	909	743	613	613
q8	9229	1386	1212	1212
q9	5190	4968	4989	4968
q10	6771	2326	1861	1861
q11	470	284	265	265
q12	338	356	223	223
q13	17746	3682	3084	3084
q14	244	228	219	219
q15	560	505	509	505
q16	633	620	589	589
q17	581	862	321	321
q18	7210	6487	6434	6434
q19	1214	969	551	551
q20	318	329	192	192
q21	2939	2316	2019	2019
q22	372	330	315	315
Total cold run time: 102701 ms
Total hot run time: 32978 ms

----- Round 2, with runtime_filter_mode=off -----
q1	6231	6257	6269	6257
q2	239	330	238	238
q3	2262	2638	2325	2325
q4	1455	1837	1415	1415
q5	4343	4762	4784	4762
q6	195	179	145	145
q7	2028	2031	1880	1880
q8	2654	2806	2689	2689
q9	7269	7330	7311	7311
q10	3056	3314	2841	2841
q11	590	523	512	512
q12	707	738	597	597
q13	3482	3937	3287	3287
q14	292	303	269	269
q15	555	507	493	493
q16	656	705	640	640
q17	1242	1737	1258	1258
q18	7745	7555	7062	7062
q19	805	1163	1060	1060
q20	1911	1939	1851	1851
q21	5576	5086	4812	4812
q22	616	600	573	573
Total cold run time: 53909 ms
Total hot run time: 52277 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 185972 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 0d6fffffef938a8b11160cfdbb5b7f371748c01e, data reload: false

query1	977	377	372	372
query2	6525	2408	2365	2365
query3	6709	220	219	219
query4	33815	23440	23059	23059
query5	4403	628	472	472
query6	297	195	199	195
query7	4632	502	329	329
query8	296	261	235	235
query9	9554	2678	2677	2677
query10	481	313	252	252
query11	18276	15305	15131	15131
query12	162	109	109	109
query13	1647	514	391	391
query14	10403	6588	7612	6588
query15	279	198	186	186
query16	7929	626	455	455
query17	1631	759	595	595
query18	1280	354	292	292
query19	224	188	150	150
query20	113	122	117	117
query21	213	127	99	99
query22	4429	4639	4555	4555
query23	33898	32860	32844	32844
query24	6359	2229	2276	2229
query25	506	468	383	383
query26	779	274	155	155
query27	2182	451	333	333
query28	5114	2408	2411	2408
query29	558	530	427	427
query30	232	190	153	153
query31	933	890	751	751
query32	93	64	61	61
query33	500	360	299	299
query34	780	849	517	517
query35	809	823	715	715
query36	1018	1048	945	945
query37	128	102	85	85
query38	3989	3994	3911	3911
query39	1473	1416	1397	1397
query40	201	110	99	99
query41	53	49	53	49
query42	125	110	104	104
query43	538	520	498	498
query44	1299	811	796	796
query45	173	166	164	164
query46	851	1048	649	649
query47	1847	1842	1785	1785
query48	364	399	316	316
query49	733	483	392	392
query50	613	647	388	388
query51	4313	4229	4227	4227
query52	114	110	102	102
query53	224	260	189	189
query54	486	501	406	406
query55	80	86	79	79
query56	262	284	249	249
query57	1165	1132	1087	1087
query58	241	242	232	232
query59	3250	3065	2947	2947
query60	274	268	261	261
query61	158	110	112	110
query62	857	759	721	721
query63	229	199	188	188
query64	3490	1005	653	653
query65	3251	3229	3156	3156
query66	782	414	338	338
query67	15933	15726	15455	15455
query68	8174	704	533	533
query69	474	290	269	269
query70	1153	1065	1114	1065
query71	434	282	267	267
query72	6153	3921	3883	3883
query73	667	754	361	361
query74	10132	9228	9016	9016
query75	3872	3187	2655	2655
query76	3566	1134	761	761
query77	776	365	273	273
query78	10007	10023	9912	9912
query79	3317	773	585	585
query80	734	520	434	434
query81	489	274	231	231
query82	513	151	116	116
query83	207	183	162	162
query84	291	99	74	74
query85	805	337	302	302
query86	363	311	306	306
query87	4450	4332	4199	4199
query88	4209	2183	2146	2146
query89	390	326	291	291
query90	1880	189	190	189
query91	133	138	109	109
query92	64	56	56	56
query93	950	870	531	531
query94	652	399	297	297
query95	336	263	253	253
query96	487	611	280	280
query97	2959	2980	2763	2763
query98	232	198	200	198
query99	1604	1523	1359	1359
Total cold run time: 286005 ms
Total hot run time: 185972 ms

@doris-robot
Copy link

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

query1	0.04	0.06	0.03
query2	0.07	0.03	0.04
query3	0.24	0.07	0.07
query4	1.60	0.10	0.11
query5	0.43	0.41	0.41
query6	1.14	0.65	0.65
query7	0.03	0.02	0.01
query8	0.05	0.04	0.03
query9	0.57	0.52	0.50
query10	0.54	0.58	0.56
query11	0.14	0.11	0.10
query12	0.14	0.11	0.11
query13	0.60	0.61	0.60
query14	2.85	2.74	2.72
query15	0.90	0.83	0.82
query16	0.38	0.39	0.38
query17	0.95	1.00	1.07
query18	0.23	0.21	0.20
query19	1.93	1.90	2.03
query20	0.02	0.01	0.01
query21	15.40	0.91	0.59
query22	0.76	0.83	0.64
query23	15.26	1.40	0.56
query24	3.00	1.39	1.55
query25	0.13	0.26	0.17
query26	0.25	0.13	0.14
query27	0.07	0.05	0.05
query28	14.27	1.47	1.05
query29	12.58	3.96	3.29
query30	0.25	0.09	0.06
query31	2.82	0.59	0.38
query32	3.24	0.55	0.47
query33	3.07	3.10	3.06
query34	16.90	5.10	4.52
query35	4.51	4.51	4.53
query36	0.68	0.49	0.50
query37	0.10	0.06	0.06
query38	0.05	0.04	0.04
query39	0.03	0.02	0.02
query40	0.16	0.14	0.13
query41	0.08	0.03	0.02
query42	0.04	0.02	0.03
query43	0.04	0.03	0.03
Total cold run time: 106.54 s
Total hot run time: 31.91 s

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 40.35% (10514/26057)
Line Coverage: 31.11% (89119/286426)
Region Coverage: 30.22% (45555/150736)
Branch Coverage: 26.52% (23155/87322)
Coverage Report: http://coverage.selectdb-in.cc/coverage/0d6fffffef938a8b11160cfdbb5b7f371748c01e_0d6fffffef938a8b11160cfdbb5b7f371748c01e/report/index.html

_destroy_agg_status();
_agg_arena_pool = nullptr;

std::vector<vectorized::MutableColumnPtr> tmp_result_window_columns;
Copy link
Contributor

Choose a reason for hiding this comment

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

why not just clear?


private:
friend class AnalyticSinkOperatorX;
Status _execute_impl();
bool _get_next_for_partition(int64_t batch_rows, int64_t current_block_base_pos);
Copy link
Contributor

Choose a reason for hiding this comment

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

add comment for all get_next function !

} else {
current_row_start = _current_row_position + _rows_start_offset;
}
// Make sure range_start <= range_end
Copy link
Contributor

Choose a reason for hiding this comment

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

what case happen? Fox exmaple in comment

_fn_place_ptr + _offsets_of_aggregate_states[i],
&dst->get_nested_column());
}
continue;
Copy link
Contributor

Choose a reason for hiding this comment

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

why not use if else ? what are you doing ?

return shared_state.all_block_end;
// If the end is not greater than the start, the current window should be empty.
// _current_window_empty = false;
_current_window_empty =
Copy link
Contributor

Choose a reason for hiding this comment

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

if empty window? should we do add_range_single_place agg exec? maybe unelss?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants