Skip to content

[improvement](fe) Bootstrap table stats after insert into select#64332

Open
wenzhenghu wants to merge 13 commits into
apache:masterfrom
HYDCP:feature-ctas-table-stats-meta
Open

[improvement](fe) Bootstrap table stats after insert into select#64332
wenzhenghu wants to merge 13 commits into
apache:masterfrom
HYDCP:feature-ctas-table-stats-meta

Conversation

@wenzhenghu

Copy link
Copy Markdown
Contributor

What problem does this PR solve?

In ETL scenarios, after creating a large table (e.g. 262K rows) via CTAS or INSERT INTO SELECT, it is immediately joined with a known small table (e.g. 10 rows). Because auto-analyze has not yet completed, the FE optimizer cannot obtain the row count of the new table and falls back to 1, causing the large table to be incorrectly chosen as the broadcast (replicated) side. This leads to excessive memory usage and query cancellation.

The root cause chain: after CTAS/INSERT INTO SELECT becomes VISIBLE, the new table has no TableStatsMeta. StatsCalculator.getOlapTableRowCount() receives -1 and is clamped by Math.max(1, -1) to 1. If the small table has been analyzed and has a known row count (e.g. 10), the broadcast cost model considers 1 < 10 and broadcasts the large table.

Solution

After CTAS/INSERT INTO SELECT transaction becomes VISIBLE, bootstrap a minimal TableStatsMeta that contains only table-level and base-index row count, without any column statistics. This allows the optimizer to consume the row count for correct broadcast-side selection.

Core changes:

  • TableStatsMeta.newBootstrapStats(): creates a TableStatsMeta with only rowCount, updatedRows, and base index indexesRowCount. Does not set userInjected and does not interfere with subsequent auto-analyze scheduling.
  • AnalysisManager.bootstrapTableStatsIfAbsent(): double-checked locking, only writes when no TableStatsMeta exists and loadedRows > 0.
  • OlapInsertExecutor: invokes bootstrap after the transaction reaches VISIBLE status.
  • ShowTableStatsCommand: adds null guard for jobType, as bootstrap stats have no associated analyze job.

New Session Variable

enable_insert_select_table_stats_bootstrap (default false, EXPERIMENTAL)

Usage:

SET enable_insert_select_table_stats_bootstrap = true;

CREATE TABLE target_table AS SELECT ... FROM large_source;
-- or
INSERT INTO target_table SELECT ... FROM large_source;

-- After the statement returns, SHOW TABLE STATS shows the row count,
-- and the optimizer can use it for correct broadcast-side selection.

Check List

  • Test:
    • FE Unit Test:
      • TableStatsMetaTest.testNewBootstrapStatsSeedsBaseIndexRowCount — verifies bootstrap metadata field correctness
      • OlapInsertExecutorTest.testExecuteSingleInsertVisibleBootstrapsTableStatsWhenAbsent — verifies bootstrap takes effect when enabled
      • OlapInsertExecutorTest.testExecuteSingleInsertVisibleDoesNotBootstrapTableStatsWhenDisabled — verifies no bootstrap when disabled (default)
      • ShowTableStatsCommandTest.testConstructTableResultSetForBootstrapStats — verifies SHOW TABLE STATS renders bootstrap metadata without NPE
    • Regression Test: insert_select_table_stats_bootstrap.groovy — two-phase assertions: when disabled, stats=1 and large table is broadcast; when enabled, stats=262,144 and small table is broadcast. Ran 10 consecutive times on a remote Doris instance, all passed.
    • Manual Test: verified on a deployed remote Doris instance with the latest code.
  • Behavior changed: No (disabled by default, no impact on existing behavior)
  • Does this need documentation: Yes (new session variable)

@hello-stephen

Copy link
Copy Markdown
Contributor

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?

@wenzhenghu

Copy link
Copy Markdown
Contributor Author

run buildall

@hello-stephen

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

------ Round 1 ----------------------------------
orders	Doris	NULL	NULL	0	0	0	NULL	0	NULL	NULL	2023-12-26 18:27:23	2023-12-26 18:42:55	NULL	utf-8	NULL	NULL	
============================================
q1	17622	4086	4032	4032
q2	q3	10783	1387	792	792
q4	4683	473	343	343
q5	7553	862	597	597
q6	182	208	141	141
q7	796	843	648	648
q8	9340	1568	1623	1568
q9	5767	4521	4513	4513
q10	6773	1811	1539	1539
q11	428	271	266	266
q12	630	432	290	290
q13	18113	3467	2805	2805
q14	263	262	245	245
q15	q16	823	776	709	709
q17	1003	914	1026	914
q18	6826	5881	5558	5558
q19	1301	1284	1087	1087
q20	513	403	268	268
q21	5843	2639	2384	2384
q22	450	358	299	299
Total cold run time: 99692 ms
Total hot run time: 28998 ms

----- Round 2, with runtime_filter_mode=off -----
orders	Doris	NULL	NULL	150000000	42	6422171781	NULL	22778155	NULL	NULL	2023-12-26 18:27:23	2023-12-26 18:42:55	NULL	utf-8	NULL	NULL	
============================================
q1	4378	4287	4274	4274
q2	q3	4515	4964	4332	4332
q4	2079	2187	1362	1362
q5	4445	4335	4294	4294
q6	222	175	133	133
q7	1729	1656	1753	1656
q8	2853	2253	2236	2236
q9	8226	8393	7889	7889
q10	4815	4749	4344	4344
q11	583	419	408	408
q12	746	777	540	540
q13	3336	3717	3018	3018
q14	310	305	302	302
q15	q16	707	742	633	633
q17	1402	1349	1331	1331
q18	8144	7375	7393	7375
q19	1226	1145	1130	1130
q20	2223	2221	1944	1944
q21	5283	4633	4452	4452
q22	520	466	408	408
Total cold run time: 57742 ms
Total hot run time: 52061 ms

@hello-stephen

Copy link
Copy Markdown
Contributor
TPC-DS: Total hot run time: 169188 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 e00ce8c08b2cae651388ba20aae66ece865d9615, data reload: false

query5	4311	648	491	491
query6	440	203	178	178
query7	4846	552	300	300
query8	373	222	204	204
query9	8773	4035	4075	4035
query10	442	310	248	248
query11	5944	2352	2210	2210
query12	158	105	103	103
query13	1256	587	434	434
query14	6443	5429	5083	5083
query14_1	4405	4431	4401	4401
query15	206	198	177	177
query16	1028	459	444	444
query17	1144	723	599	599
query18	2717	487	362	362
query19	209	188	151	151
query20	116	110	108	108
query21	221	143	128	128
query22	13732	13602	13373	13373
query23	17319	16524	16201	16201
query23_1	16366	16256	16335	16256
query24	7545	1767	1301	1301
query24_1	1287	1295	1336	1295
query25	564	439	381	381
query26	1302	300	170	170
query27	2652	538	323	323
query28	4427	2004	2009	2004
query29	1061	610	474	474
query30	317	236	198	198
query31	1117	1081	972	972
query32	110	64	58	58
query33	517	317	252	252
query34	1201	1130	637	637
query35	760	784	683	683
query36	1418	1397	1253	1253
query37	153	103	94	94
query38	3220	3187	3046	3046
query39	939	921	912	912
query39_1	883	893	875	875
query40	229	128	104	104
query41	68	64	66	64
query42	95	93	96	93
query43	322	330	284	284
query44	
query45	199	187	181	181
query46	1086	1183	735	735
query47	2379	2357	2264	2264
query48	376	401	295	295
query49	639	469	349	349
query50	964	343	256	256
query51	4286	4290	4220	4220
query52	90	93	77	77
query53	243	281	196	196
query54	305	217	204	204
query55	78	80	73	73
query56	242	229	228	228
query57	1413	1417	1338	1338
query58	251	226	218	218
query59	1571	1676	1502	1502
query60	318	251	244	244
query61	165	158	160	158
query62	692	649	592	592
query63	232	179	184	179
query64	2505	777	607	607
query65	
query66	1732	465	343	343
query67	29699	29726	29565	29565
query68	
query69	422	307	266	266
query70	938	949	919	919
query71	304	217	217	217
query72	3057	2641	2404	2404
query73	845	766	423	423
query74	5107	4952	4758	4758
query75	2640	2585	2242	2242
query76	2362	1148	769	769
query77	373	376	291	291
query78	12299	12232	11842	11842
query79	1290	1016	762	762
query80	526	467	398	398
query81	447	281	244	244
query82	237	159	123	123
query83	273	282	245	245
query84	
query85	842	531	429	429
query86	335	289	295	289
query87	3378	3351	3219	3219
query88	3567	2716	2698	2698
query89	402	384	333	333
query90	2202	179	187	179
query91	178	164	139	139
query92	61	63	59	59
query93	1445	1467	852	852
query94	550	340	321	321
query95	684	466	357	357
query96	1123	817	365	365
query97	2713	2701	2560	2560
query98	211	205	215	205
query99	1153	1191	1033	1033
Total cold run time: 250483 ms
Total hot run time: 169188 ms

@wenzhenghu

Copy link
Copy Markdown
Contributor Author

run buildall

@wenzhenghu

Copy link
Copy Markdown
Contributor Author

run buildall

@hello-stephen

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

------ Round 1 ----------------------------------
orders	Doris	NULL	NULL	0	0	0	NULL	0	NULL	NULL	2023-12-26 18:27:23	2023-12-26 18:42:55	NULL	utf-8	NULL	NULL	
============================================
q1	17689	4003	4158	4003
q2	q3	10809	1384	798	798
q4	4682	476	342	342
q5	7534	855	569	569
q6	189	179	147	147
q7	796	847	647	647
q8	9772	1592	1577	1577
q9	6940	4462	4477	4462
q10	6783	1802	1515	1515
q11	439	286	251	251
q12	638	431	285	285
q13	18153	3389	2783	2783
q14	273	268	246	246
q15	q16	817	767	709	709
q17	1084	971	939	939
q18	6709	5678	5479	5479
q19	1214	1341	1146	1146
q20	510	398	266	266
q21	5432	2524	2441	2441
q22	439	349	308	308
Total cold run time: 100902 ms
Total hot run time: 28913 ms

----- Round 2, with runtime_filter_mode=off -----
orders	Doris	NULL	NULL	150000000	42	6422171781	NULL	22778155	NULL	NULL	2023-12-26 18:27:23	2023-12-26 18:42:55	NULL	utf-8	NULL	NULL	
============================================
q1	4417	4325	4347	4325
q2	q3	4474	4975	4316	4316
q4	2089	2194	1384	1384
q5	4441	4305	4350	4305
q6	229	175	130	130
q7	1741	1603	2036	1603
q8	2566	2203	2111	2111
q9	7915	7896	8059	7896
q10	4799	4749	4310	4310
q11	607	462	444	444
q12	747	785	557	557
q13	3422	3572	2947	2947
q14	321	309	283	283
q15	q16	742	746	703	703
q17	1360	1315	1325	1315
q18	7918	7416	6967	6967
q19	1093	1084	1095	1084
q20	2221	2224	1956	1956
q21	5225	4560	4465	4465
q22	502	446	406	406
Total cold run time: 56829 ms
Total hot run time: 51507 ms

@hello-stephen

Copy link
Copy Markdown
Contributor
TPC-DS: Total hot run time: 168991 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 3c009e61152a8ea27e54d7685ec14a31c0a1bacf, data reload: false

query5	4324	653	468	468
query6	437	198	172	172
query7	4815	573	310	310
query8	375	233	226	226
query9	8764	4077	4073	4073
query10	455	318	267	267
query11	5940	2355	2126	2126
query12	156	105	102	102
query13	1344	625	439	439
query14	6423	5432	5065	5065
query14_1	4459	4460	4440	4440
query15	206	205	178	178
query16	1009	460	444	444
query17	1140	724	614	614
query18	2492	460	355	355
query19	206	190	148	148
query20	111	107	106	106
query21	217	142	118	118
query22	13749	13651	13376	13376
query23	17247	16608	16184	16184
query23_1	16317	16424	16399	16399
query24	7573	1771	1310	1310
query24_1	1328	1318	1321	1318
query25	565	488	422	422
query26	1306	336	178	178
query27	2643	574	342	342
query28	4427	2008	2031	2008
query29	1083	656	515	515
query30	311	240	202	202
query31	1119	1088	958	958
query32	115	64	63	63
query33	557	343	268	268
query34	1261	1108	640	640
query35	743	840	688	688
query36	1442	1437	1285	1285
query37	153	106	93	93
query38	3243	3237	3067	3067
query39	982	969	951	951
query39_1	924	903	937	903
query40	225	124	103	103
query41	66	63	62	62
query42	97	96	92	92
query43	340	348	302	302
query44	
query45	197	186	184	184
query46	1085	1262	731	731
query47	2442	2417	2327	2327
query48	418	433	297	297
query49	637	463	346	346
query50	964	363	258	258
query51	4339	4323	4240	4240
query52	88	90	77	77
query53	249	271	185	185
query54	272	225	198	198
query55	80	76	73	73
query56	254	226	216	216
query57	1420	1383	1307	1307
query58	255	237	214	214
query59	1550	1677	1449	1449
query60	280	252	251	251
query61	165	158	161	158
query62	716	652	581	581
query63	223	190	187	187
query64	2562	786	618	618
query65	
query66	1796	469	348	348
query67	29953	28992	29561	28992
query68	
query69	421	339	264	264
query70	989	1001	986	986
query71	303	223	207	207
query72	3001	2747	2402	2402
query73	836	788	457	457
query74	5139	4944	4756	4756
query75	2649	2578	2239	2239
query76	2296	1194	811	811
query77	360	377	307	307
query78	12306	12392	11867	11867
query79	1423	1075	768	768
query80	1294	493	391	391
query81	522	281	245	245
query82	609	166	119	119
query83	327	279	256	256
query84	
query85	922	540	439	439
query86	425	306	269	269
query87	3405	3391	3200	3200
query88	3685	2762	2737	2737
query89	427	385	336	336
query90	1957	189	190	189
query91	177	159	139	139
query92	67	64	65	64
query93	1501	1484	939	939
query94	721	357	331	331
query95	685	385	341	341
query96	1022	870	354	354
query97	2695	2676	2544	2544
query98	217	210	199	199
query99	1158	1183	1054	1054
Total cold run time: 252376 ms
Total hot run time: 168991 ms

@hello-stephen

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

------ Round 1 ----------------------------------
orders	Doris	NULL	NULL	0	0	0	NULL	0	NULL	NULL	2023-12-26 18:27:23	2023-12-26 18:42:55	NULL	utf-8	NULL	NULL	
============================================
q1	17850	4029	3994	3994
q2	q3	10778	1448	820	820
q4	4687	478	347	347
q5	7547	865	581	581
q6	186	176	137	137
q7	762	847	619	619
q8	9941	1680	1598	1598
q9	6744	4522	4519	4519
q10	6830	1807	1499	1499
q11	442	265	248	248
q12	667	431	297	297
q13	18105	3389	2823	2823
q14	270	272	249	249
q15	q16	820	776	707	707
q17	953	939	920	920
q18	6841	5677	5522	5522
q19	1315	1242	1143	1143
q20	523	420	276	276
q21	6418	2812	2649	2649
q22	456	367	309	309
Total cold run time: 102135 ms
Total hot run time: 29257 ms

----- Round 2, with runtime_filter_mode=off -----
orders	Doris	NULL	NULL	150000000	42	6422171781	NULL	22778155	NULL	NULL	2023-12-26 18:27:23	2023-12-26 18:42:55	NULL	utf-8	NULL	NULL	
============================================
q1	4844	4811	4778	4778
q2	q3	5034	5185	4648	4648
q4	2402	2192	1407	1407
q5	4909	4673	4799	4673
q6	248	194	136	136
q7	1881	1730	1556	1556
q8	2370	2282	2133	2133
q9	7655	7437	7378	7378
q10	4741	4688	4235	4235
q11	530	388	354	354
q12	737	749	524	524
q13	3094	3298	2804	2804
q14	267	286	245	245
q15	q16	679	703	621	621
q17	1287	1278	1259	1259
q18	7438	6862	6799	6799
q19	1156	1103	1123	1103
q20	2207	2236	1955	1955
q21	5267	4624	4513	4513
q22	550	438	396	396
Total cold run time: 57296 ms
Total hot run time: 51517 ms

@hello-stephen

Copy link
Copy Markdown
Contributor

FE UT Coverage Report

Increment line coverage 73.17% (30/41) 🎉
Increment coverage report
Complete coverage report

@hello-stephen

Copy link
Copy Markdown
Contributor
TPC-DS: Total hot run time: 169853 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 421203aa55bc40dfd2dcc1ace5fa0714b1e271a9, data reload: false

query5	4355	649	492	492
query6	447	223	190	190
query7	4849	515	307	307
query8	368	206	204	204
query9	8765	4041	4026	4026
query10	440	337	255	255
query11	5839	2357	2190	2190
query12	161	102	98	98
query13	1242	584	433	433
query14	6365	5381	5114	5114
query14_1	4440	4416	4328	4328
query15	214	197	172	172
query16	990	457	411	411
query17	1090	715	581	581
query18	2662	463	341	341
query19	193	182	141	141
query20	113	104	103	103
query21	221	139	122	122
query22	13742	13681	13455	13455
query23	17355	16413	16172	16172
query23_1	16101	16252	16370	16252
query24	7870	1777	1322	1322
query24_1	1332	1350	1330	1330
query25	552	462	385	385
query26	1335	306	159	159
query27	2717	572	339	339
query28	4454	2057	2021	2021
query29	1088	602	517	517
query30	321	245	198	198
query31	1125	1072	951	951
query32	108	60	61	60
query33	536	313	253	253
query34	1179	1131	648	648
query35	758	776	690	690
query36	1374	1410	1234	1234
query37	152	106	92	92
query38	3227	3141	3070	3070
query39	959	925	894	894
query39_1	889	857	879	857
query40	223	120	98	98
query41	65	64	62	62
query42	95	92	90	90
query43	314	318	280	280
query44	
query45	198	189	179	179
query46	1070	1198	748	748
query47	2335	2381	2270	2270
query48	392	422	308	308
query49	626	495	361	361
query50	1006	334	254	254
query51	4327	4228	4275	4228
query52	88	86	76	76
query53	246	272	188	188
query54	265	219	198	198
query55	77	77	70	70
query56	230	217	210	210
query57	1421	1392	1300	1300
query58	239	218	210	210
query59	1577	1634	1456	1456
query60	279	251	245	245
query61	162	160	160	160
query62	724	648	585	585
query63	233	187	187	187
query64	2564	823	667	667
query65	
query66	1722	464	342	342
query67	29668	29586	29549	29549
query68	
query69	418	296	270	270
query70	984	961	965	961
query71	291	219	211	211
query72	2919	2677	2348	2348
query73	854	767	448	448
query74	5125	4925	4750	4750
query75	2649	2586	2234	2234
query76	2312	1154	768	768
query77	378	387	305	305
query78	12445	12208	11844	11844
query79	1286	1037	753	753
query80	634	501	414	414
query81	461	281	258	258
query82	601	159	129	129
query83	388	283	263	263
query84	
query85	998	628	515	515
query86	362	295	295	295
query87	3411	3409	3171	3171
query88	3665	2783	2782	2782
query89	423	393	334	334
query90	1903	177	184	177
query91	202	178	159	159
query92	69	65	58	58
query93	1458	1438	978	978
query94	569	387	322	322
query95	705	473	356	356
query96	1022	826	333	333
query97	2728	2697	2556	2556
query98	216	212	206	206
query99	1156	1183	1030	1030
Total cold run time: 251196 ms
Total hot run time: 169853 ms

@hello-stephen

Copy link
Copy Markdown
Contributor

FE UT Coverage Report

Increment line coverage 71.74% (33/46) 🎉
Increment coverage report
Complete coverage report

@hello-stephen

Copy link
Copy Markdown
Contributor

FE Regression Coverage Report

Increment line coverage 69.57% (32/46) 🎉
Increment coverage report
Complete coverage report

1 similar comment
@hello-stephen

Copy link
Copy Markdown
Contributor

FE Regression Coverage Report

Increment line coverage 69.57% (32/46) 🎉
Increment coverage report
Complete coverage report

@wenzhenghu

Copy link
Copy Markdown
Contributor Author

The pipeline failed the nocurrent test case due to a memory leak in other unrelated C++ code; all other test cases passed successfully.

@wenzhenghu

Copy link
Copy Markdown
Contributor Author

run buildall

@hello-stephen

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

------ Round 1 ----------------------------------
orders	Doris	NULL	NULL	0	0	0	NULL	0	NULL	NULL	2023-12-26 18:27:23	2023-12-26 18:42:55	NULL	utf-8	NULL	NULL	
============================================
q1	17684	4006	4004	4004
q2	q3	10756	1400	807	807
q4	4721	475	341	341
q5	7667	865	588	588
q6	180	169	133	133
q7	812	849	651	651
q8	10250	1591	1608	1591
q9	6742	4513	4460	4460
q10	6739	1811	1518	1518
q11	445	274	246	246
q12	634	424	293	293
q13	18153	3444	2754	2754
q14	262	256	244	244
q15	q16	822	778	708	708
q17	999	1003	918	918
q18	7013	5742	5631	5631
q19	1303	1324	1117	1117
q20	516	392	260	260
q21	6064	2867	2533	2533
q22	444	382	308	308
Total cold run time: 102206 ms
Total hot run time: 29105 ms

----- Round 2, with runtime_filter_mode=off -----
orders	Doris	NULL	NULL	150000000	42	6422171781	NULL	22778155	NULL	NULL	2023-12-26 18:27:23	2023-12-26 18:42:55	NULL	utf-8	NULL	NULL	
============================================
q1	4869	4779	4739	4739
q2	q3	5063	5208	4688	4688
q4	2158	2227	1391	1391
q5	4915	4792	4781	4781
q6	237	173	128	128
q7	1877	1728	1565	1565
q8	2499	2018	1933	1933
q9	7413	7405	7446	7405
q10	4747	4706	4291	4291
q11	533	388	354	354
q12	744	736	526	526
q13	3058	3398	2869	2869
q14	281	275	253	253
q15	q16	677	700	602	602
q17	1279	1243	1244	1243
q18	7404	6849	6756	6756
q19	1148	1102	1105	1102
q20	2221	2223	1941	1941
q21	5256	4590	4437	4437
q22	531	466	402	402
Total cold run time: 56910 ms
Total hot run time: 51406 ms

@hello-stephen

Copy link
Copy Markdown
Contributor
TPC-DS: Total hot run time: 170763 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 421203aa55bc40dfd2dcc1ace5fa0714b1e271a9, data reload: false

query5	4320	643	483	483
query6	448	206	177	177
query7	4883	549	302	302
query8	363	220	208	208
query9	8796	4004	3964	3964
query10	441	301	265	265
query11	5935	2375	2206	2206
query12	151	108	101	101
query13	1273	617	441	441
query14	6761	5466	5086	5086
query14_1	4412	4452	4398	4398
query15	204	200	180	180
query16	1013	462	453	453
query17	1150	730	601	601
query18	2720	492	348	348
query19	215	189	152	152
query20	115	119	109	109
query21	222	137	152	137
query22	13738	13570	13501	13501
query23	17444	16640	16300	16300
query23_1	16416	16301	16358	16301
query24	7515	1773	1305	1305
query24_1	1311	1313	1288	1288
query25	536	461	388	388
query26	1282	353	168	168
query27	2604	580	350	350
query28	4434	1988	1982	1982
query29	1054	601	484	484
query30	314	244	207	207
query31	1143	1076	969	969
query32	111	59	57	57
query33	525	313	240	240
query34	1181	1134	635	635
query35	759	794	693	693
query36	1377	1409	1263	1263
query37	151	104	93	93
query38	3214	3168	3083	3083
query39	937	915	929	915
query39_1	891	884	884	884
query40	223	124	100	100
query41	66	62	63	62
query42	95	93	93	93
query43	319	320	276	276
query44	
query45	202	189	182	182
query46	1090	1225	743	743
query47	2344	2411	2368	2368
query48	401	434	304	304
query49	626	476	374	374
query50	990	350	259	259
query51	4328	4357	4269	4269
query52	87	90	77	77
query53	246	266	189	189
query54	265	219	199	199
query55	78	75	72	72
query56	230	240	213	213
query57	1435	1402	1334	1334
query58	242	207	210	207
query59	1642	1663	1451	1451
query60	283	242	229	229
query61	162	158	156	156
query62	700	652	577	577
query63	235	184	187	184
query64	2503	804	632	632
query65	
query66	1749	456	334	334
query67	29792	29678	29650	29650
query68	
query69	431	304	263	263
query70	979	925	948	925
query71	294	214	212	212
query72	3023	2698	2366	2366
query73	883	772	452	452
query74	5146	4944	4791	4791
query75	2673	2584	2231	2231
query76	2324	1155	760	760
query77	355	351	287	287
query78	12450	12454	11866	11866
query79	1300	1055	763	763
query80	565	487	396	396
query81	450	281	241	241
query82	243	165	126	126
query83	371	274	253	253
query84	
query85	898	534	431	431
query86	353	304	299	299
query87	3439	3353	3154	3154
query88	3646	2740	2736	2736
query89	405	376	348	348
query90	2073	184	177	177
query91	174	166	135	135
query92	68	57	57	57
query93	1433	1540	833	833
query94	560	368	269	269
query95	708	474	354	354
query96	1059	787	324	324
query97	2699	2701	2594	2594
query98	217	209	206	206
query99	1154	1219	1084	1084
Total cold run time: 251537 ms
Total hot run time: 170763 ms

@hello-stephen

Copy link
Copy Markdown
Contributor

FE Regression Coverage Report

Increment line coverage 56.14% (32/57) 🎉
Increment coverage report
Complete coverage report

@wenzhenghu

Copy link
Copy Markdown
Contributor Author

The pipeline failed cloud_p0 case caused by unrelated node liveliness problems; all other cases succeeded.

@wenzhenghu

Copy link
Copy Markdown
Contributor Author

run buildall

@hello-stephen

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

------ Round 1 ----------------------------------
orders	Doris	NULL	NULL	0	0	0	NULL	0	NULL	NULL	2023-12-26 18:27:23	2023-12-26 18:42:55	NULL	utf-8	NULL	NULL	
============================================
q1	17936	4081	4039	4039
q2	q3	10846	1374	815	815
q4	4690	478	347	347
q5	7532	881	584	584
q6	184	178	136	136
q7	795	846	652	652
q8	9415	1523	1583	1523
q9	6180	4498	4503	4498
q10	6798	1824	1510	1510
q11	439	268	256	256
q12	663	424	291	291
q13	18188	3416	2786	2786
q14	279	256	248	248
q15	q16	824	779	716	716
q17	989	938	1080	938
q18	6867	5618	5508	5508
q19	1550	1211	1082	1082
q20	519	412	263	263
q21	5890	2525	2353	2353
q22	431	356	301	301
Total cold run time: 101015 ms
Total hot run time: 28846 ms

----- Round 2, with runtime_filter_mode=off -----
orders	Doris	NULL	NULL	150000000	42	6422171781	NULL	22778155	NULL	NULL	2023-12-26 18:27:23	2023-12-26 18:42:55	NULL	utf-8	NULL	NULL	
============================================
q1	4365	4318	4351	4318
q2	q3	4555	4925	4363	4363
q4	2176	2191	1374	1374
q5	4454	4351	4335	4335
q6	228	173	128	128
q7	1726	1643	1926	1643
q8	2633	2156	2126	2126
q9	7833	7926	7930	7926
q10	4857	4743	4298	4298
q11	597	431	406	406
q12	749	750	556	556
q13	3436	3591	3005	3005
q14	324	303	279	279
q15	q16	728	749	668	668
q17	1372	1347	1367	1347
q18	7926	7365	7041	7041
q19	1103	1126	1062	1062
q20	2227	2229	1950	1950
q21	5237	4546	4534	4534
q22	520	467	390	390
Total cold run time: 57046 ms
Total hot run time: 51749 ms

@hello-stephen

Copy link
Copy Markdown
Contributor
TPC-DS: Total hot run time: 170350 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 195caae7c82747b5bca22f9e2414c796795ee916, data reload: false

query5	4322	651	482	482
query6	443	192	180	180
query7	4850	577	309	309
query8	384	230	202	202
query9	8756	4067	4070	4067
query10	470	314	264	264
query11	5925	2292	2203	2203
query12	156	100	100	100
query13	1273	612	450	450
query14	6418	5425	5091	5091
query14_1	4381	4401	4391	4391
query15	207	195	176	176
query16	987	462	432	432
query17	1067	699	563	563
query18	2444	486	340	340
query19	197	183	145	145
query20	115	109	105	105
query21	221	135	119	119
query22	13637	13607	13401	13401
query23	17501	16424	16233	16233
query23_1	16279	16553	16688	16553
query24	7682	1776	1330	1330
query24_1	1325	1328	1326	1326
query25	543	467	409	409
query26	1301	306	168	168
query27	2723	584	348	348
query28	4482	2060	2024	2024
query29	1118	654	513	513
query30	315	241	211	211
query31	1124	1091	956	956
query32	110	64	60	60
query33	532	339	274	274
query34	1203	1228	672	672
query35	764	787	696	696
query36	1404	1386	1239	1239
query37	156	113	93	93
query38	3239	3186	3054	3054
query39	934	941	917	917
query39_1	902	890	889	889
query40	222	131	108	108
query41	71	69	71	69
query42	97	99	99	99
query43	325	324	280	280
query44	
query45	207	191	187	187
query46	1118	1207	733	733
query47	2367	2343	2263	2263
query48	421	463	288	288
query49	637	480	355	355
query50	996	361	250	250
query51	4361	4333	4206	4206
query52	89	89	78	78
query53	244	276	196	196
query54	295	221	202	202
query55	82	77	73	73
query56	232	234	217	217
query57	1438	1436	1359	1359
query58	254	214	216	214
query59	1671	1673	1480	1480
query60	287	260	242	242
query61	155	156	160	156
query62	712	659	593	593
query63	237	191	191	191
query64	2565	794	640	640
query65	
query66	1802	471	344	344
query67	29827	29781	29623	29623
query68	
query69	431	308	273	273
query70	955	970	893	893
query71	307	225	217	217
query72	2977	2719	2413	2413
query73	902	777	439	439
query74	5172	4963	4781	4781
query75	2675	2579	2223	2223
query76	2322	1171	768	768
query77	355	385	289	289
query78	12314	12289	11884	11884
query79	1275	1042	781	781
query80	540	486	410	410
query81	450	290	246	246
query82	234	159	125	125
query83	272	273	287	273
query84	
query85	848	530	446	446
query86	329	298	297	297
query87	3452	3378	3148	3148
query88	3570	2719	2717	2717
query89	408	382	326	326
query90	2163	179	179	179
query91	176	159	141	141
query92	61	63	57	57
query93	1397	1445	866	866
query94	542	363	318	318
query95	671	376	438	376
query96	1077	903	357	357
query97	2687	2702	2555	2555
query98	217	216	221	216
query99	1139	1183	1056	1056
Total cold run time: 250983 ms
Total hot run time: 170350 ms

@wenzhenghu

wenzhenghu commented Jun 10, 2026

Copy link
Copy Markdown
Contributor Author

all test cases passed successfully.

@hello-stephen

Copy link
Copy Markdown
Contributor

FE Regression Coverage Report

Increment line coverage 60.38% (32/53) 🎉
Increment coverage report
Complete coverage report

@wenzhenghu

Copy link
Copy Markdown
Contributor Author

run buildall

@hello-stephen

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

------ Round 1 ----------------------------------
orders	Doris	NULL	NULL	0	0	0	NULL	0	NULL	NULL	2023-12-26 18:27:23	2023-12-26 18:42:55	NULL	utf-8	NULL	NULL	
============================================
q1	17633	3970	3996	3970
q2	q3	10755	1358	797	797
q4	4687	476	342	342
q5	7533	870	594	594
q6	183	168	133	133
q7	763	860	629	629
q8	9850	1655	1642	1642
q9	7244	4526	4516	4516
q10	6776	1857	1525	1525
q11	431	263	259	259
q12	670	442	296	296
q13	18164	3361	2774	2774
q14	268	262	233	233
q15	q16	830	785	704	704
q17	1500	1162	762	762
q18	6763	5830	5504	5504
q19	2161	1286	1102	1102
q20	505	404	357	357
q21	6344	2783	2613	2613
q22	455	376	318	318
Total cold run time: 103515 ms
Total hot run time: 29070 ms

----- Round 2, with runtime_filter_mode=off -----
orders	Doris	NULL	NULL	150000000	42	6422171781	NULL	22778155	NULL	NULL	2023-12-26 18:27:23	2023-12-26 18:42:55	NULL	utf-8	NULL	NULL	
============================================
q1	4934	4731	4708	4708
q2	q3	4876	5205	4699	4699
q4	2155	2191	1413	1413
q5	4786	4867	4696	4696
q6	232	176	130	130
q7	1872	1775	1617	1617
q8	2415	1983	1920	1920
q9	7373	7383	7391	7383
q10	4765	4644	4195	4195
q11	535	380	405	380
q12	727	737	531	531
q13	2974	3434	2809	2809
q14	269	276	254	254
q15	q16	687	710	615	615
q17	1283	1250	1240	1240
q18	7246	6854	6861	6854
q19	1136	1121	1108	1108
q20	2235	2236	1936	1936
q21	5284	4631	4494	4494
q22	536	475	417	417
Total cold run time: 56320 ms
Total hot run time: 51399 ms

@hello-stephen

Copy link
Copy Markdown
Contributor
TPC-DS: Total hot run time: 170391 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 c18d71897320c79c0be1de7a54c23c80c9161308, data reload: false

query5	4333	659	473	473
query6	465	204	186	186
query7	4887	553	292	292
query8	368	226	215	215
query9	8754	4144	4143	4143
query10	447	318	271	271
query11	5976	2338	2136	2136
query12	167	109	102	102
query13	1286	622	420	420
query14	6675	5497	5123	5123
query14_1	4439	4445	4395	4395
query15	210	202	184	184
query16	1032	486	447	447
query17	1136	717	602	602
query18	2791	485	355	355
query19	213	191	150	150
query20	119	118	115	115
query21	215	143	121	121
query22	13622	13587	13558	13558
query23	17446	16532	16155	16155
query23_1	16252	16328	16291	16291
query24	7521	1799	1285	1285
query24_1	1347	1338	1343	1338
query25	585	505	421	421
query26	1315	325	171	171
query27	2613	580	358	358
query28	4416	1992	2034	1992
query29	1110	626	510	510
query30	308	240	206	206
query31	1149	1078	954	954
query32	114	64	66	64
query33	549	328	265	265
query34	1189	1142	665	665
query35	817	777	693	693
query36	1443	1387	1231	1231
query37	150	105	90	90
query38	3192	3114	3058	3058
query39	938	930	915	915
query39_1	892	882	880	880
query40	217	123	103	103
query41	65	65	63	63
query42	99	94	94	94
query43	329	327	280	280
query44	
query45	199	189	178	178
query46	1100	1213	738	738
query47	2341	2409	2214	2214
query48	404	428	305	305
query49	636	490	350	350
query50	992	352	255	255
query51	4288	4305	4293	4293
query52	91	89	74	74
query53	246	268	198	198
query54	265	217	198	198
query55	80	79	71	71
query56	240	227	241	227
query57	1423	1403	1327	1327
query58	243	216	222	216
query59	1565	1665	1451	1451
query60	279	254	242	242
query61	163	161	180	161
query62	722	649	589	589
query63	234	193	186	186
query64	2538	795	625	625
query65	
query66	1743	466	335	335
query67	29691	29705	29546	29546
query68	
query69	416	295	314	295
query70	992	920	886	886
query71	296	209	201	201
query72	2955	2702	2465	2465
query73	904	745	439	439
query74	5125	4950	4765	4765
query75	2670	2580	2250	2250
query76	2316	1151	824	824
query77	382	395	294	294
query78	12436	12414	11938	11938
query79	1542	1056	754	754
query80	1306	470	413	413
query81	524	279	241	241
query82	596	162	124	124
query83	319	272	251	251
query84	
query85	905	527	434	434
query86	429	294	283	283
query87	3511	3351	3225	3225
query88	3637	2759	2728	2728
query89	427	388	333	333
query90	1927	187	188	187
query91	181	164	142	142
query92	66	67	58	58
query93	1600	1454	860	860
query94	722	357	309	309
query95	687	403	343	343
query96	1080	809	320	320
query97	2690	2688	2561	2561
query98	209	211	203	203
query99	1170	1212	1009	1009
Total cold run time: 253065 ms
Total hot run time: 170391 ms

@hello-stephen

Copy link
Copy Markdown
Contributor

FE UT Coverage Report

Increment line coverage 80.43% (37/46) 🎉
Increment coverage report
Complete coverage report

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.

2 participants