Skip to content

[improvement](fe) Add configurable return mode for insert publish timeout in ETL scenarios#63919

Open
wenzhenghu wants to merge 12 commits into
apache:masterfrom
HYDCP:return-fail-if-publish-timeout
Open

[improvement](fe) Add configurable return mode for insert publish timeout in ETL scenarios#63919
wenzhenghu wants to merge 12 commits into
apache:masterfrom
HYDCP:return-fail-if-publish-timeout

Conversation

@wenzhenghu
Copy link
Copy Markdown
Contributor

What problem does this PR solve?

Issue Number: close #xxx

Related PR: #xxx

Problem Summary:
Normal internal-table inserts currently treat publish timeout as a committed insert and return success with COMMITTED status. This behavior is acceptable when clients only care that the transaction has been committed and can tolerate delayed visibility, but it is unsafe for pipelines whose downstream steps depend on the inserted data already being visible.

A typical case is ETL workflows that first use CREATE TABLE AS SELECT to build a temporary table and then immediately read that table to populate a downstream result table. If the upstream transaction has been committed but is not yet VISIBLE, the downstream step may temporarily read no rows and silently write empty data into the final table, so the whole pipeline appears successful even though the result is incorrect.

Doris already returns an error in explicit transaction mode when a COMMIT statement times out before the transaction becomes visible. This change adds a compatible mode for the regular non-transactional internal-table insert path by introducing a session variable, insert_visible_timeout_return_mode, so users can choose whether publish timeout should keep returning COMMITTED or return ERR.

The implementation also keeps committed-side bookkeeping unchanged in error mode so finished load jobs, insert result metadata, and related accounting still reflect the real transaction state.

Release note

Add a session variable to control whether normal internal-table inserts return COMMITTED or ERR when publish visibility times out.

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

@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

@wenzhenghu
Copy link
Copy Markdown
Contributor Author

run buildall

@hello-stephen
Copy link
Copy Markdown
Contributor

TPC-H: Total hot run time: 31315 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 6a0cf85dec74034b5c9ee700bf8ebc943edc07d4, 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	17697	4191	4023	4023
q2	q3	10791	1369	807	807
q4	4692	473	355	355
q5	7644	2269	2109	2109
q6	322	179	137	137
q7	973	791	651	651
q8	9361	1604	1670	1604
q9	6871	4948	4996	4948
q10	6439	2209	1859	1859
q11	441	281	241	241
q12	690	440	309	309
q13	18149	3471	2778	2778
q14	271	262	240	240
q15	q16	829	794	715	715
q17	895	840	951	840
q18	7237	6020	5754	5754
q19	1185	1322	1027	1027
q20	524	409	269	269
q21	5866	2629	2358	2358
q22	435	357	291	291
Total cold run time: 101312 ms
Total hot run time: 31315 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	4473	4392	4404	4392
q2	q3	4603	4962	4382	4382
q4	2134	2210	1377	1377
q5	4501	4362	4979	4362
q6	235	191	139	139
q7	2065	1888	1627	1627
q8	2596	2274	2213	2213
q9	8067	8107	7977	7977
q10	4858	4880	4331	4331
q11	597	434	404	404
q12	736	745	547	547
q13	3254	3538	3030	3030
q14	326	317	280	280
q15	q16	713	743	666	666
q17	1409	1388	1371	1371
q18	8121	7444	7363	7363
q19	1116	1125	1108	1108
q20	2241	2234	1938	1938
q21	5271	4653	4618	4618
q22	517	484	425	425
Total cold run time: 57833 ms
Total hot run time: 52550 ms

@hello-stephen
Copy link
Copy Markdown
Contributor

TPC-DS: Total hot run time: 172577 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 6a0cf85dec74034b5c9ee700bf8ebc943edc07d4, data reload: false

query5	4324	662	534	534
query6	337	223	203	203
query7	4306	598	315	315
query8	346	232	225	225
query9	8796	4067	4074	4067
query10	450	361	314	314
query11	5804	2469	2249	2249
query12	193	133	133	133
query13	1312	660	454	454
query14	6122	5555	5213	5213
query14_1	4540	4555	4463	4463
query15	215	205	193	193
query16	1007	463	446	446
query17	1178	747	625	625
query18	2546	500	368	368
query19	216	210	168	168
query20	143	133	136	133
query21	230	155	125	125
query22	13753	13594	13517	13517
query23	17493	16621	16215	16215
query23_1	16490	16430	16398	16398
query24	7473	1846	1368	1368
query24_1	1363	1315	1338	1315
query25	544	487	428	428
query26	1313	322	171	171
query27	2694	594	342	342
query28	4434	1992	1981	1981
query29	996	632	499	499
query30	304	238	199	199
query31	1131	1086	960	960
query32	133	74	75	74
query33	545	367	308	308
query34	1199	1135	664	664
query35	795	822	742	742
query36	1469	1436	1274	1274
query37	165	114	93	93
query38	3329	3268	3146	3146
query39	960	941	920	920
query39_1	954	918	942	918
query40	227	149	127	127
query41	67	64	63	63
query42	112	110	109	109
query43	335	341	298	298
query44	
query45	218	207	196	196
query46	1087	1262	777	777
query47	2396	2370	2231	2231
query48	431	431	331	331
query49	625	497	400	400
query50	972	344	262	262
query51	4391	4286	4278	4278
query52	105	108	96	96
query53	256	287	195	195
query54	313	275	261	261
query55	96	94	88	88
query56	308	315	301	301
query57	1415	1420	1345	1345
query58	323	278	270	270
query59	1659	1720	1445	1445
query60	319	337	322	322
query61	161	162	161	161
query62	700	670	584	584
query63	259	206	211	206
query64	2427	835	669	669
query65	
query66	1689	483	362	362
query67	29713	29656	29539	29539
query68	
query69	472	359	324	324
query70	1038	1009	1006	1006
query71	320	276	274	274
query72	3051	2637	2417	2417
query73	878	777	435	435
query74	5113	4937	4809	4809
query75	2693	2611	2288	2288
query76	2301	1150	825	825
query77	412	432	355	355
query78	12463	12482	11934	11934
query79	1541	1071	751	751
query80	655	552	469	469
query81	452	276	238	238
query82	1378	160	125	125
query83	386	288	252	252
query84	273	143	117	117
query85	880	566	466	466
query86	404	324	329	324
query87	3471	3412	3263	3263
query88	3623	2772	2745	2745
query89	442	401	340	340
query90	1874	188	187	187
query91	180	184	143	143
query92	84	77	72	72
query93	1580	1374	893	893
query94	548	363	275	275
query95	679	389	392	389
query96	1078	799	346	346
query97	2747	2752	2650	2650
query98	234	236	241	236
query99	1162	1157	1019	1019
Total cold run time: 255624 ms
Total hot run time: 172577 ms

@wenzhenghu
Copy link
Copy Markdown
Contributor Author

run buildall

@hello-stephen
Copy link
Copy Markdown
Contributor

FE UT Coverage Report

Increment line coverage 50.00% (16/32) 🎉
Increment coverage report
Complete coverage report

@hello-stephen
Copy link
Copy Markdown
Contributor

TPC-H: Total hot run time: 31761 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit f5206efbf5df5f8c68f35e9557b1d1dee279b16e, 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	17677	4149	4009	4009
q2	q3	10787	1363	820	820
q4	4690	473	345	345
q5	7585	2220	2137	2137
q6	335	174	138	138
q7	934	789	640	640
q8	9375	1769	1672	1672
q9	6887	4934	4946	4934
q10	6428	2262	1911	1911
q11	439	274	248	248
q12	693	426	301	301
q13	18205	3431	2717	2717
q14	263	260	230	230
q15	q16	825	767	706	706
q17	957	861	992	861
q18	7153	5770	5708	5708
q19	1188	1406	1049	1049
q20	528	415	266	266
q21	6153	2780	2746	2746
q22	452	363	323	323
Total cold run time: 101554 ms
Total hot run time: 31761 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	4906	5006	4947	4947
q2	q3	4891	5347	4633	4633
q4	2087	2218	1425	1425
q5	4993	4740	4640	4640
q6	234	181	131	131
q7	1878	1799	1404	1404
q8	2242	1978	1932	1932
q9	7418	7509	7387	7387
q10	4768	4656	4178	4178
q11	553	387	352	352
q12	747	747	528	528
q13	3032	3410	2752	2752
q14	272	277	251	251
q15	q16	683	699	631	631
q17	1298	1267	1255	1255
q18	7437	6823	6775	6775
q19	1090	1103	1136	1103
q20	2213	2239	1947	1947
q21	5369	4704	4708	4704
q22	522	466	423	423
Total cold run time: 56633 ms
Total hot run time: 51398 ms

@hello-stephen
Copy link
Copy Markdown
Contributor

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

query5	4353	677	507	507
query6	345	231	204	204
query7	4221	541	325	325
query8	318	231	219	219
query9	8752	4113	4126	4113
query10	473	363	319	319
query11	5721	2833	2213	2213
query12	183	133	127	127
query13	1305	658	463	463
query14	6088	5521	5196	5196
query14_1	4515	4479	4511	4479
query15	211	208	185	185
query16	976	399	421	399
query17	1135	714	597	597
query18	2498	498	351	351
query19	213	210	157	157
query20	136	130	129	129
query21	218	137	118	118
query22	13767	13606	13375	13375
query23	17434	16557	16200	16200
query23_1	16448	16268	16330	16268
query24	7552	1779	1345	1345
query24_1	1360	1333	1338	1333
query25	546	484	439	439
query26	1305	309	172	172
query27	2750	583	351	351
query28	4444	2029	2016	2016
query29	999	624	499	499
query30	305	245	200	200
query31	1120	1091	944	944
query32	88	83	73	73
query33	541	364	309	309
query34	1222	1129	658	658
query35	798	798	715	715
query36	1395	1406	1285	1285
query37	165	115	91	91
query38	3273	3152	3181	3152
query39	969	982	932	932
query39_1	901	909	897	897
query40	242	158	130	130
query41	77	73	76	73
query42	117	116	118	116
query43	339	342	305	305
query44	
query45	217	211	211	211
query46	1114	1223	732	732
query47	2374	2403	2234	2234
query48	428	422	309	309
query49	650	524	414	414
query50	1012	351	271	271
query51	4387	4312	4302	4302
query52	112	109	97	97
query53	265	284	214	214
query54	325	292	272	272
query55	101	97	90	90
query56	319	319	314	314
query57	1432	1437	1343	1343
query58	313	297	283	283
query59	1580	1676	1465	1465
query60	336	347	324	324
query61	183	186	187	186
query62	708	652	596	596
query63	248	204	207	204
query64	2468	881	689	689
query65	
query66	1718	491	358	358
query67	30095	29665	29662	29662
query68	
query69	470	355	309	309
query70	1072	1023	1012	1012
query71	309	277	269	269
query72	2961	2716	2337	2337
query73	889	818	428	428
query74	5129	4951	4807	4807
query75	2708	2601	2270	2270
query76	2278	1154	795	795
query77	403	416	345	345
query78	12471	12430	11848	11848
query79	1480	1014	783	783
query80	1344	536	466	466
query81	521	284	241	241
query82	1134	161	136	136
query83	359	288	289	288
query84	265	147	113	113
query85	919	521	455	455
query86	456	331	326	326
query87	3410	3362	3254	3254
query88	3630	2779	2717	2717
query89	455	393	351	351
query90	1927	181	181	181
query91	190	163	168	163
query92	79	91	73	73
query93	1549	1466	987	987
query94	733	354	303	303
query95	682	417	437	417
query96	1052	741	345	345
query97	2751	2753	2594	2594
query98	242	233	227	227
query99	1200	1148	1006	1006
Total cold run time: 256263 ms
Total hot run time: 172440 ms

### What problem does this PR solve?

Issue Number: N/A

Related PR: None

Problem Summary: The migrated insert publish-timeout change had targeted FE tests, but incremental coverage was still too low because several new branches were not exercised. In particular, OlapInsertExecutor.onFail() lacked direct coverage for committed and uncommitted failure cleanup paths, and SessionVariable still missed default-value, normalization, empty-input validation, and map restore branches for insert_visible_timeout_return_mode. This change expands the FE unit tests to cover those cases so the migrated logic is protected against regressions and the incremental coverage for the new code stays above the required threshold.

### Release note

None

### Check List (For Author)

- Test: FE unit test
    - ./run-fe-ut.sh --run org.apache.doris.qe.SessionVariablesTest,org.apache.doris.nereids.trees.plans.commands.insert.OlapInsertExecutorTest
    - ./run-fe-ut.sh --coverage --run org.apache.doris.qe.SessionVariablesTest,org.apache.doris.nereids.trees.plans.commands.insert.OlapInsertExecutorTest
- Behavior changed: No
- Does this need documentation: No
@wenzhenghu
Copy link
Copy Markdown
Contributor Author

run buildall

@hello-stephen
Copy link
Copy Markdown
Contributor

TPC-H: Total hot run time: 31585 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 0e97db627d327b531b0c3a966f0d431ac76e148b, 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	17692	4051	4081	4051
q2	q3	10778	1440	816	816
q4	4698	484	349	349
q5	7601	2319	2149	2149
q6	374	181	143	143
q7	979	776	643	643
q8	9377	1732	1575	1575
q9	6926	5019	4843	4843
q10	6428	2230	1904	1904
q11	432	265	246	246
q12	684	418	298	298
q13	18177	3370	2802	2802
q14	264	259	248	248
q15	q16	818	773	706	706
q17	973	974	876	876
q18	6739	5900	5618	5618
q19	1184	1350	1137	1137
q20	559	413	287	287
q21	5970	2842	2587	2587
q22	471	375	307	307
Total cold run time: 101124 ms
Total hot run time: 31585 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	4835	4748	5086	4748
q2	q3	4953	5262	4665	4665
q4	2183	2257	1419	1419
q5	4972	4708	4762	4708
q6	231	175	128	128
q7	1912	1738	1545	1545
q8	2399	2038	2006	2006
q9	7564	7434	7435	7434
q10	4749	4679	4248	4248
q11	557	388	357	357
q12	728	739	528	528
q13	3064	3299	2800	2800
q14	272	284	255	255
q15	q16	678	700	620	620
q17	1303	1291	1247	1247
q18	7375	6951	6967	6951
q19	1113	1075	1080	1075
q20	2224	2236	1941	1941
q21	5329	4648	4441	4441
q22	514	454	415	415
Total cold run time: 56955 ms
Total hot run time: 51531 ms

@hello-stephen
Copy link
Copy Markdown
Contributor

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

query5	4350	665	519	519
query6	336	228	193	193
query7	4231	559	301	301
query8	325	242	217	217
query9	8786	4112	4070	4070
query10	448	347	300	300
query11	5765	2349	2212	2212
query12	185	132	130	130
query13	1297	608	428	428
query14	6192	5469	5173	5173
query14_1	4482	4519	4468	4468
query15	218	207	185	185
query16	1023	463	431	431
query17	1133	737	617	617
query18	2747	495	380	380
query19	220	214	171	171
query20	138	134	133	133
query21	219	142	123	123
query22	13614	13552	13452	13452
query23	17361	16662	16284	16284
query23_1	16372	16363	16303	16303
query24	7426	1787	1314	1314
query24_1	1312	1336	1337	1336
query25	572	518	443	443
query26	1314	337	177	177
query27	2708	550	386	386
query28	4429	2002	2000	2000
query29	984	618	484	484
query30	305	236	194	194
query31	1148	1082	948	948
query32	91	73	74	73
query33	526	351	303	303
query34	1179	1137	663	663
query35	795	795	709	709
query36	1427	1378	1261	1261
query37	146	102	91	91
query38	3199	3184	3049	3049
query39	933	901	894	894
query39_1	907	864	903	864
query40	235	145	122	122
query41	65	61	62	61
query42	111	110	110	110
query43	330	336	289	289
query44	
query45	217	203	202	202
query46	1080	1191	737	737
query47	2360	2391	2275	2275
query48	416	420	293	293
query49	628	498	387	387
query50	983	353	268	268
query51	4425	4345	4442	4345
query52	107	104	95	95
query53	252	283	201	201
query54	310	279	267	267
query55	96	92	84	84
query56	291	299	307	299
query57	1459	1419	1359	1359
query58	289	270	274	270
query59	1622	1720	1499	1499
query60	319	324	312	312
query61	158	161	155	155
query62	703	656	588	588
query63	239	196	212	196
query64	2321	814	627	627
query65	
query66	1686	473	359	359
query67	30071	29775	29514	29514
query68	
query69	473	339	298	298
query70	1058	1024	973	973
query71	309	273	266	266
query72	3004	2377	2437	2377
query73	884	775	464	464
query74	5123	4893	4791	4791
query75	2716	2648	2244	2244
query76	2299	1168	801	801
query77	405	418	339	339
query78	12467	12542	11935	11935
query79	1495	1109	760	760
query80	686	537	468	468
query81	456	278	256	256
query82	1381	155	122	122
query83	355	285	244	244
query84	261	138	114	114
query85	891	554	478	478
query86	417	360	330	330
query87	3441	3394	3248	3248
query88	3666	2766	2683	2683
query89	445	393	343	343
query90	1893	189	184	184
query91	175	172	142	142
query92	82	83	75	75
query93	1523	1536	895	895
query94	555	356	333	333
query95	691	479	357	357
query96	1028	781	352	352
query97	2739	2744	2626	2626
query98	243	230	227	227
query99	1178	1177	1050	1050
Total cold run time: 254825 ms
Total hot run time: 171226 ms

@hello-stephen
Copy link
Copy Markdown
Contributor

FE UT Coverage Report

Increment line coverage 90.62% (29/32) 🎉
Increment coverage report
Complete coverage report

@hello-stephen
Copy link
Copy Markdown
Contributor

FE Regression Coverage Report

Increment line coverage 2.92% (10/343) 🎉
Increment coverage report
Complete coverage report

### What problem does this PR solve?

Issue Number: None

Related PR: None

Problem Summary: Add a regression case for the new session variable `insert_visible_timeout_return_mode`. The case injects the FE debug point `PublishVersionDaemon.stop_publish` so a normal OLAP insert can commit successfully but remain non-visible long enough to hit `insert_visible_timeout_ms`. It verifies that `committed` mode returns success, `error` mode returns the expected client error, and both rows become visible after publish resumes. The case uses the configured FE HTTP address for debug-point operations so it also works when an external regression target reports loopback host addresses in `SHOW FRONTENDS`.

### Release note

None

### Check List (For Author)

- Test: Regression test
    - Run `./run-regression-test.sh --run --conf /tmp/regression-conf-remote.groovy -d insert_p0 -s test_insert_visible_timeout_return_mode -genOut`
- Behavior changed: No
- Does this need documentation: No
@wenzhenghu
Copy link
Copy Markdown
Contributor Author

run buildall

Comment thread fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java Outdated
Comment thread fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java
@wenzhenghu wenzhenghu changed the title [draft][improvement](fe) Add configurable return mode for insert publish timeout in ETL scenarios [improvement](fe) Add configurable return mode for insert publish timeout in ETL scenarios Jun 1, 2026
@hello-stephen
Copy link
Copy Markdown
Contributor

FE UT Coverage Report

Increment line coverage 90.62% (29/32) 🎉
Increment coverage report
Complete coverage report

### What problem does this PR solve?

Issue Number: None

Related PR: apache#63919

Problem Summary: Review feedback on the insert publish-timeout return-mode change requested using an enum instead of raw string constants. This commit keeps the SQL-visible values unchanged (`committed` and `error`) but stores the session variable as a dedicated enum inside FE. It also extends the generic session-variable assignment and restore paths so enum-backed variables can still be set from SQL, forwarded variables, and JSON/map persistence. The existing insert timeout behavior is unchanged, while the implementation becomes type-safe and removes the previous string normalization cleanup logic.

### Release note

None

### Check List (For Author)

- Test: FE Unit Test
    - Run `./run-fe-ut.sh --run org.apache.doris.qe.SessionVariablesTest,org.apache.doris.nereids.trees.plans.commands.insert.OlapInsertExecutorTest`
- Behavior changed: No
- Does this need documentation: No
@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: 28969 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit ff3bf4f31438a54232df31a8275d060962bc81b7, 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	17600	4022	4064	4022
q2	q3	10784	1347	798	798
q4	4685	494	351	351
q5	7516	878	601	601
q6	179	170	137	137
q7	755	848	662	662
q8	9390	1660	1552	1552
q9	5754	4441	4492	4441
q10	6796	1846	1551	1551
q11	435	278	255	255
q12	639	419	293	293
q13	18106	3366	2787	2787
q14	264	257	240	240
q15	q16	826	787	719	719
q17	928	956	964	956
q18	7100	5784	5501	5501
q19	1309	1234	957	957
q20	525	407	260	260
q21	6139	2845	2562	2562
q22	452	385	324	324
Total cold run time: 100182 ms
Total hot run time: 28969 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	5140	4733	4801	4733
q2	q3	4819	5295	4706	4706
q4	2103	2212	1398	1398
q5	4699	4597	4880	4597
q6	225	184	136	136
q7	1877	1718	1530	1530
q8	2430	2091	2054	2054
q9	7821	7879	7866	7866
q10	4728	4681	4237	4237
q11	517	378	352	352
q12	727	735	521	521
q13	2991	3408	2826	2826
q14	278	275	266	266
q15	q16	670	702	600	600
q17	1280	1246	1242	1242
q18	7137	6807	6882	6807
q19	1122	1065	1109	1065
q20	2218	2224	1914	1914
q21	5218	4528	4463	4463
q22	503	469	413	413
Total cold run time: 56503 ms
Total hot run time: 51726 ms

@hello-stephen
Copy link
Copy Markdown
Contributor

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

query5	4337	642	533	533
query6	329	226	202	202
query7	4220	569	293	293
query8	318	251	230	230
query9	8789	3981	3990	3981
query10	449	353	299	299
query11	5800	2330	2217	2217
query12	180	132	125	125
query13	1304	620	413	413
query14	6161	5483	5156	5156
query14_1	4471	4494	4473	4473
query15	216	207	185	185
query16	1014	474	460	460
query17	1171	767	621	621
query18	2554	496	389	389
query19	220	204	173	173
query20	139	133	132	132
query21	222	138	116	116
query22	13710	13630	13386	13386
query23	17354	16563	16261	16261
query23_1	16433	16334	16363	16334
query24	7475	1753	1323	1323
query24_1	1312	1295	1317	1295
query25	558	491	422	422
query26	1309	302	169	169
query27	2711	559	335	335
query28	4457	2024	2024	2024
query29	980	634	505	505
query30	309	235	199	199
query31	1142	1088	955	955
query32	87	76	74	74
query33	520	351	299	299
query34	1193	1128	661	661
query35	791	800	693	693
query36	1378	1392	1198	1198
query37	150	104	89	89
query38	3212	3220	3065	3065
query39	934	927	894	894
query39_1	878	900	864	864
query40	230	148	135	135
query41	65	64	62	62
query42	117	112	107	107
query43	319	332	286	286
query44	
query45	212	194	195	194
query46	1048	1203	747	747
query47	2355	2372	2215	2215
query48	405	401	296	296
query49	629	522	390	390
query50	1053	354	250	250
query51	4308	4336	4278	4278
query52	110	106	98	98
query53	247	287	205	205
query54	311	270	257	257
query55	91	89	84	84
query56	297	310	312	310
query57	1432	1405	1386	1386
query58	315	276	269	269
query59	1621	1614	1404	1404
query60	332	325	317	317
query61	163	158	156	156
query62	701	672	593	593
query63	247	210	209	209
query64	2389	787	634	634
query65	
query66	1749	487	359	359
query67	29668	29670	29678	29670
query68	
query69	467	336	297	297
query70	1039	1014	931	931
query71	304	280	279	279
query72	3048	2689	2380	2380
query73	875	776	442	442
query74	5106	4970	4757	4757
query75	2710	2581	2278	2278
query76	2285	1137	780	780
query77	404	410	350	350
query78	12356	12379	11952	11952
query79	1311	1079	767	767
query80	585	530	462	462
query81	452	279	248	248
query82	232	156	123	123
query83	276	288	252	252
query84	264	143	106	106
query85	867	543	456	456
query86	370	347	325	325
query87	3425	3380	3252	3252
query88	3661	2767	2749	2749
query89	431	399	346	346
query90	2198	179	178	178
query91	175	165	136	136
query92	82	76	73	73
query93	1462	1494	909	909
query94	542	363	301	301
query95	680	478	342	342
query96	1021	789	316	316
query97	2727	2745	2612	2612
query98	233	232	234	232
query99	1177	1189	1044	1044
Total cold run time: 252698 ms
Total hot run time: 172010 ms

@hello-stephen
Copy link
Copy Markdown
Contributor

FE Regression Coverage Report

Increment line coverage 14.76% (31/210) 🎉
Increment coverage report
Complete coverage report

@hello-stephen
Copy link
Copy Markdown
Contributor

TPC-H: Total hot run time: 29293 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 8d9a9d98b84a51c8d11f6fa805e4eb80e644294f, 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	17624	4058	4033	4033
q2	q3	10776	1401	832	832
q4	4708	475	346	346
q5	7653	889	597	597
q6	200	174	137	137
q7	788	843	635	635
q8	10044	1699	1652	1652
q9	6546	4557	4571	4557
q10	6811	1810	1550	1550
q11	437	276	252	252
q12	630	424	283	283
q13	18208	3387	2755	2755
q14	263	259	241	241
q15	q16	814	771	706	706
q17	1019	891	923	891
q18	6927	5805	5495	5495
q19	2601	1319	1113	1113
q20	534	413	317	317
q21	6491	2795	2591	2591
q22	455	375	310	310
Total cold run time: 103529 ms
Total hot run time: 29293 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	5270	4753	4739	4739
q2	q3	4817	5201	4669	4669
q4	2138	2192	1400	1400
q5	4848	4880	4673	4673
q6	227	179	133	133
q7	1899	1771	1547	1547
q8	2394	1951	1931	1931
q9	7389	7511	7342	7342
q10	4712	4676	4222	4222
q11	525	384	398	384
q12	736	744	527	527
q13	2994	3395	2815	2815
q14	267	278	255	255
q15	q16	670	697	615	615
q17	1263	1258	1238	1238
q18	7363	7005	6922	6922
q19	1121	1119	1160	1119
q20	2227	2217	1953	1953
q21	5424	4711	4542	4542
q22	539	477	410	410
Total cold run time: 56823 ms
Total hot run time: 51436 ms

@hello-stephen
Copy link
Copy Markdown
Contributor

TPC-DS: Total hot run time: 169577 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 8d9a9d98b84a51c8d11f6fa805e4eb80e644294f, data reload: false

query5	4357	665	532	532
query6	335	233	198	198
query7	4225	562	316	316
query8	333	231	216	216
query9	8805	3974	3981	3974
query10	457	335	296	296
query11	5812	2392	2164	2164
query12	187	134	130	130
query13	1292	621	432	432
query14	6019	5421	5172	5172
query14_1	4486	4471	4447	4447
query15	212	209	196	196
query16	1025	469	437	437
query17	1173	704	585	585
query18	2451	480	348	348
query19	221	200	165	165
query20	138	133	132	132
query21	214	133	116	116
query22	13672	13592	13301	13301
query23	17271	16488	16257	16257
query23_1	16359	16264	16431	16264
query24	7538	1766	1287	1287
query24_1	1322	1305	1306	1305
query25	551	483	435	435
query26	1310	317	173	173
query27	2707	559	344	344
query28	4442	1986	2013	1986
query29	972	643	497	497
query30	306	242	198	198
query31	1130	1082	957	957
query32	92	71	70	70
query33	540	368	292	292
query34	1187	1104	645	645
query35	765	798	711	711
query36	1381	1447	1224	1224
query37	156	108	90	90
query38	3202	3158	3090	3090
query39	922	929	890	890
query39_1	900	901	905	901
query40	227	149	125	125
query41	66	62	62	62
query42	110	110	111	110
query43	328	325	296	296
query44	
query45	217	207	193	193
query46	1061	1239	736	736
query47	2375	2381	2310	2310
query48	409	422	287	287
query49	618	490	383	383
query50	1045	344	253	253
query51	4392	4342	4285	4285
query52	108	105	96	96
query53	260	278	211	211
query54	323	276	259	259
query55	93	88	86	86
query56	297	309	303	303
query57	1435	1400	1350	1350
query58	309	277	272	272
query59	1544	1636	1385	1385
query60	321	328	314	314
query61	160	157	155	155
query62	683	651	582	582
query63	248	202	208	202
query64	2400	784	637	637
query65	
query66	1723	481	365	365
query67	29054	29652	29369	29369
query68	
query69	470	329	289	289
query70	1052	1035	981	981
query71	327	281	272	272
query72	2946	2694	2407	2407
query73	820	745	434	434
query74	5083	4930	4728	4728
query75	2668	2660	2264	2264
query76	2332	1188	773	773
query77	398	401	323	323
query78	12280	12379	11798	11798
query79	1303	1051	757	757
query80	595	559	512	512
query81	456	283	256	256
query82	236	160	126	126
query83	270	267	248	248
query84	255	140	115	115
query85	853	537	464	464
query86	344	344	303	303
query87	3370	3398	3192	3192
query88	3601	2724	2721	2721
query89	429	398	349	349
query90	2224	181	181	181
query91	176	166	137	137
query92	81	76	73	73
query93	1464	1409	864	864
query94	528	355	310	310
query95	681	469	343	343
query96	1058	795	318	318
query97	2723	2755	2612	2612
query98	239	232	231	231
query99	1147	1167	1013	1013
Total cold run time: 251727 ms
Total hot run time: 169577 ms

@wenzhenghu
Copy link
Copy Markdown
Contributor Author

run buildall

@hello-stephen
Copy link
Copy Markdown
Contributor

TPC-H: Total hot run time: 29834 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit eb2fabdd290e15d8547ab5ca5a29364f1655c0b9, 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	17797	4293	4296	4293
q2	q3	10806	1408	815	815
q4	4684	484	358	358
q5	7577	878	574	574
q6	185	178	140	140
q7	775	835	666	666
q8	9406	1624	1768	1624
q9	5814	4534	4523	4523
q10	6735	1826	1525	1525
q11	435	280	259	259
q12	645	435	309	309
q13	18085	3328	2789	2789
q14	280	265	252	252
q15	q16	800	770	716	716
q17	875	896	1008	896
q18	7237	5787	5573	5573
q19	1367	1265	1095	1095
q20	490	404	264	264
q21	6503	2845	2819	2819
q22	490	388	344	344
Total cold run time: 100986 ms
Total hot run time: 29834 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	5265	5128	5139	5128
q2	q3	5006	5392	4803	4803
q4	2287	2281	1486	1486
q5	4988	5091	4728	4728
q6	227	180	131	131
q7	1893	1945	1683	1683
q8	2670	2310	2332	2310
q9	8055	7972	7558	7558
q10	4727	4698	4200	4200
q11	569	427	395	395
q12	746	745	581	581
q13	3084	3355	2806	2806
q14	284	285	262	262
q15	q16	696	716	625	625
q17	1281	1300	1287	1287
q18	7473	7157	7058	7058
q19	1127	1145	1106	1106
q20	2240	2231	1974	1974
q21	5474	4839	4704	4704
q22	538	479	421	421
Total cold run time: 58630 ms
Total hot run time: 53246 ms

@hello-stephen
Copy link
Copy Markdown
Contributor

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

query5	4302	669	520	520
query6	354	237	231	231
query7	4221	588	317	317
query8	340	237	221	221
query9	8806	4057	4063	4057
query10	456	354	305	305
query11	5805	2373	2167	2167
query12	192	138	130	130
query13	1311	617	456	456
query14	6078	5467	5213	5213
query14_1	4477	4462	4438	4438
query15	211	206	186	186
query16	1020	415	423	415
query17	1132	731	591	591
query18	2477	488	381	381
query19	225	208	167	167
query20	146	137	130	130
query21	225	140	125	125
query22	13686	13657	13314	13314
query23	17309	16568	16315	16315
query23_1	16261	16360	16317	16317
query24	7701	1788	1312	1312
query24_1	1326	1312	1320	1312
query25	564	491	458	458
query26	1314	324	170	170
query27	2702	568	347	347
query28	4438	2056	2028	2028
query29	1028	661	550	550
query30	318	236	201	201
query31	1142	1091	947	947
query32	94	79	80	79
query33	568	374	320	320
query34	1216	1148	649	649
query35	783	816	721	721
query36	1384	1429	1220	1220
query37	160	114	94	94
query38	3190	3166	3067	3067
query39	924	937	901	901
query39_1	879	888	892	888
query40	233	160	139	139
query41	88	69	67	67
query42	133	118	118	118
query43	338	335	307	307
query44	
query45	221	210	202	202
query46	1141	1258	745	745
query47	2367	2323	2258	2258
query48	408	414	314	314
query49	658	520	420	420
query50	1015	367	265	265
query51	4337	4304	4277	4277
query52	114	114	100	100
query53	265	299	219	219
query54	340	312	277	277
query55	99	97	93	93
query56	338	331	334	331
query57	1434	1427	1327	1327
query58	335	302	295	295
query59	1558	1657	1413	1413
query60	342	350	335	335
query61	185	183	180	180
query62	735	650	587	587
query63	255	211	215	211
query64	2392	835	646	646
query65	
query66	1733	491	361	361
query67	29828	29690	28915	28915
query68	
query69	473	350	320	320
query70	998	994	994	994
query71	322	282	273	273
query72	2997	2705	2424	2424
query73	873	829	448	448
query74	5102	4957	4868	4868
query75	2695	2617	2261	2261
query76	2271	1160	774	774
query77	415	405	345	345
query78	12514	12545	11983	11983
query79	1527	1057	765	765
query80	649	554	477	477
query81	451	287	239	239
query82	1558	156	124	124
query83	355	283	249	249
query84	268	146	112	112
query85	881	547	467	467
query86	419	341	324	324
query87	3429	3347	3233	3233
query88	3692	2778	2764	2764
query89	455	398	345	345
query90	1884	192	179	179
query91	179	173	145	145
query92	82	81	77	77
query93	1500	1378	829	829
query94	544	357	315	315
query95	682	459	351	351
query96	1105	787	338	338
query97	2774	2721	2675	2675
query98	237	234	228	228
query99	1199	1185	997	997
Total cold run time: 255030 ms
Total hot run time: 171658 ms

@hello-stephen
Copy link
Copy Markdown
Contributor

FE UT Coverage Report

Increment line coverage 84.00% (42/50) 🎉
Increment coverage report
Complete coverage report

@hello-stephen
Copy link
Copy Markdown
Contributor

FE Regression Coverage Report

Increment line coverage 59.62% (31/52) 🎉
Increment coverage report
Complete coverage report

@wenzhenghu
Copy link
Copy Markdown
Contributor Author

run buildall

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.

3 participants