Skip to content

[fix](fe) Prune empty and cascading CTE plans#62828

Open
englefly wants to merge 7 commits into
apache:masterfrom
englefly:fix-cte-empty
Open

[fix](fe) Prune empty and cascading CTE plans#62828
englefly wants to merge 7 commits into
apache:masterfrom
englefly:fix-cte-empty

Conversation

@englefly
Copy link
Copy Markdown
Contributor

@englefly englefly commented Apr 24, 2026

What problem does this PR solve?

Issue Number: None

Related PR: #60601

Problem Summary: Fix optimizer-side CTE pruning so empty-relation producers, zero-consumer anchors, and cascading inline opportunities are normalized to a fixpoint before memoization, and add regression coverage for empty and cascading CTE elimination.

Release note

None

Check List (For Author)

  • Test: No need to test (user requested to skip compile and test)
  • Behavior changed: Yes (empty and cascade-pruned CTEs are normalized before memoization)
  • Does this need documentation: No

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

@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?

@englefly
Copy link
Copy Markdown
Contributor Author

/review

@englefly
Copy link
Copy Markdown
Contributor Author

run buildall

@hello-stephen
Copy link
Copy Markdown
Contributor

FE UT Coverage Report

Increment line coverage 82.00% (41/50) 🎉
Increment coverage report
Complete coverage report

@github-actions
Copy link
Copy Markdown
Contributor

OpenCode automated review failed and did not complete.

Error: Review step was failure (possibly timeout or cancelled)
Workflow run: https://github.com/apache/doris/actions/runs/24895847727

Please inspect the workflow logs and rerun the review after the underlying issue is resolved.

@hello-stephen
Copy link
Copy Markdown
Contributor

FE Regression Coverage Report

Increment line coverage 90.00% (45/50) 🎉
Increment coverage report
Complete coverage report

@morrySnow
Copy link
Copy Markdown
Contributor

/review

Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

I found 2 blocking issues.

Critical checkpoint conclusions:

  • Goal of this PR: partially accomplished. The change does address empty/cascading CTE pruning in the optimizer path, and the new regression suite covers two representative plan shapes, but one fixpoint bug in the new normalization loop means cascading cleanup can still stop too early.
  • Scope/minimality: mostly focused, but the SessionVariable edit also removes a legacy variable alias unrelated to the optimizer fix.
  • Concurrency: no concurrency or locking concerns are introduced in these touched FE optimizer/session-variable paths.
  • Lifecycle/static-init: no special lifecycle or static initialization issues are involved here.
  • Configuration items: no new config was added, but an existing session variable declaration was changed in a user-visible way.
  • Compatibility: not preserved. Removing cbo_cte_inline_mode breaks existing SET / SHOW VARIABLES clients that still use the old alias.
  • Parallel code paths: the new optimizer-side normalization path is distinct from the main rewrite path, and its fixpoint detection currently relies on shallow equals() semantics that do not reflect subtree changes.
  • Special conditions/checks: the new currentPlan.equals(normalizedPlan) stop condition is not strong enough for Nereids plans.
  • Test coverage: improved for empty/cascade pruning, but still missing coverage for the shallow-equality fixpoint case and for preserving the legacy session-variable alias.
  • Test result updates: one new regression test file was added; I did not run the test suite locally in this runner.
  • Observability: no additional observability appears necessary for this change.
  • Transaction/persistence/data-write/FE-BE variable passing: not applicable for this PR.
  • Performance: no blocking performance issue identified beyond the correctness problems above.
  • Other issues: none beyond the two findings below.

User focus: /tmp/review_focus.txt contains no additional focus items, so there were no extra focus-specific findings to report.

Comment thread fe/fe-core/src/main/java/org/apache/doris/qe/SessionVariable.java
englefly and others added 2 commits May 9, 2026 15:58
### What problem does this PR solve?

Issue Number: None

Related PR: None

Problem Summary: Fix optimizer-side CTE pruning so empty-relation producers, zero-consumer anchors, and cascading inline opportunities are normalized to a fixpoint before memoization, and add regression coverage for empty and cascading CTE elimination.

### Release note

None

### Check List (For Author)

- Test: No need to test (user requested to skip compile and test)
- Behavior changed: Yes (empty and cascade-pruned CTEs are normalized before memoization)
- Does this need documentation: No

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
### What problem does this PR solve?

Issue Number: close #xxx

Related PR: #xxx

Problem Summary: CTE normalization used Plan.equals() as the fixpoint check. Some logical plan nodes do not compare children in equals(), so CTE rewrites under a kept parent node could be missed and cascading inline/prune normalization could stop too early.

### Release note

Fix cascading CTE pruning/inline normalization when child CTE changes occur under logical nodes whose equals() does not compare children.

### Check List (For Author)

- Test: Regression test / FE checkstyle
    - ./run-regression-test.sh --run -d query_p0/cte -s test_cbo_cte_inline_prune
    - cd fe && mvn checkstyle:check -pl fe-core
- Behavior changed: Yes. CTE normalization now uses explicit rewrite state instead of shallow Plan.equals() for fixpoint detection.
- Does this need documentation: No

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@englefly
Copy link
Copy Markdown
Contributor Author

englefly commented May 9, 2026

/review

@englefly
Copy link
Copy Markdown
Contributor Author

englefly commented May 9, 2026

run buildall

Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

I did not add duplicate inline comments because the remaining blocking issue is already covered by the existing review thread on SessionVariable.java: removing the cbo_cte_inline_mode alias is a user-visible compatibility break and should be restored or intentionally documented with a migration plan. The earlier Plan.equals() fixpoint issue appears addressed by the explicit changed flag in the current head.

Critical checkpoint conclusions:

  • Goal/test: The PR targets CTE pruning and cascading inline normalization, with regression coverage added for empty and cascading CTE cases.
  • Scope: The optimizer changes are focused, but the alias removal is unrelated to the optimizer fix and should not be included.
  • Concurrency/lifecycle: No new concurrent mutable state, locks, or special lifecycle hazards identified.
  • Configuration/compatibility: Compatibility issue remains for the removed session-variable alias.
  • Parallel code paths: The new normalization is applied to the base rewrite plan and CBO inline alternatives; no distinct missing path found.
  • Testing: Regression coverage exists for the main CTE pruning behavior; no additional user focus points were provided.
  • Observability/persistence/data writes: Not applicable for this optimizer-only change.
  • Performance: No blocking performance issue found in the changed code; the normalization loop is bounded by CTE removal/inlining progress.

Focus response: review_focus.txt had no additional focus points.

englefly and others added 2 commits May 9, 2026 16:26
### What problem does this PR solve?

Issue Number: close #xxx

Related PR: #xxx

Problem Summary: CTE normalization now inlines the single-consumer CTE in the repeat output slot shape case, so the expected shape output needed to be updated while query results stay unchanged.

### Release note

None

### Check List (For Author)

- Test: Regression test
    - ./run-regression-test.sh --run -d query_p0/repeat -s test_repeat_output_slot
- Behavior changed: No. Test expectation only.
- Does this need documentation: No

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@englefly
Copy link
Copy Markdown
Contributor Author

englefly commented May 9, 2026

run buildall

1 similar comment
@englefly
Copy link
Copy Markdown
Contributor Author

englefly commented May 9, 2026

run buildall

@hello-stephen
Copy link
Copy Markdown
Contributor

TPC-H: Total hot run time: 29234 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 418be746556dd12e5577e9cadc4e7811c45adc26, 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	17664	3848	3818	3818
q2	q3	10703	867	601	601
q4	4661	452	345	345
q5	7452	1340	1127	1127
q6	182	163	136	136
q7	894	933	757	757
q8	9305	1370	1263	1263
q9	5673	5372	5296	5296
q10	6318	2093	1797	1797
q11	469	264	249	249
q12	688	412	291	291
q13	18203	3360	2755	2755
q14	296	284	261	261
q15	q16	899	890	788	788
q17	932	955	712	712
q18	6391	5731	5516	5516
q19	1172	1234	1082	1082
q20	516	393	259	259
q21	4664	2259	1873	1873
q22	416	361	308	308
Total cold run time: 97498 ms
Total hot run time: 29234 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	4164	4061	4077	4061
q2	q3	4669	4749	4191	4191
q4	2096	2168	1393	1393
q5	4984	4953	5254	4953
q6	190	162	129	129
q7	2008	1776	1718	1718
q8	3589	3216	3218	3216
q9	8546	8472	8451	8451
q10	4472	4483	4234	4234
q11	644	459	431	431
q12	720	763	538	538
q13	3258	3638	2970	2970
q14	302	316	273	273
q15	q16	758	788	686	686
q17	1385	1314	1290	1290
q18	8306	7318	7214	7214
q19	1134	1152	1182	1152
q20	2311	2305	2027	2027
q21	6365	5608	5091	5091
q22	600	535	419	419
Total cold run time: 60501 ms
Total hot run time: 54437 ms

@hello-stephen
Copy link
Copy Markdown
Contributor

TPC-H: Total hot run time: 29546 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 6c75a31a3bb122377bae5c87def83c2a8efa4acd, 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	17681	3887	4004	3887
q2	q3	10715	869	604	604
q4	4668	454	353	353
q5	7445	1339	1167	1167
q6	184	171	143	143
q7	899	933	747	747
q8	9313	1383	1312	1312
q9	5628	5436	5390	5390
q10	6257	2066	1810	1810
q11	464	264	258	258
q12	625	413	297	297
q13	18087	3335	2710	2710
q14	295	284	264	264
q15	q16	866	867	793	793
q17	976	1188	617	617
q18	6508	5750	5679	5679
q19	1186	1298	1058	1058
q20	509	399	261	261
q21	4478	2260	1891	1891
q22	419	361	305	305
Total cold run time: 97203 ms
Total hot run time: 29546 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	4192	4118	4106	4106
q2	q3	4631	4765	4208	4208
q4	2107	2179	1397	1397
q5	4996	4957	5235	4957
q6	195	161	128	128
q7	2029	1782	1852	1782
q8	3560	3198	3309	3198
q9	8598	8547	8597	8547
q10	4508	4530	4281	4281
q11	628	426	423	423
q12	698	767	511	511
q13	3568	3558	2890	2890
q14	302	321	291	291
q15	q16	795	787	689	689
q17	1344	1327	1309	1309
q18	8099	7133	7219	7133
q19	1149	1135	1155	1135
q20	2271	2291	2007	2007
q21	6198	5497	4933	4933
q22	581	551	420	420
Total cold run time: 60449 ms
Total hot run time: 54345 ms

@hello-stephen
Copy link
Copy Markdown
Contributor

TPC-DS: Total hot run time: 170284 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 418be746556dd12e5577e9cadc4e7811c45adc26, data reload: false

query5	4357	660	530	530
query6	356	238	222	222
query7	4235	563	309	309
query8	339	245	224	224
query9	8849	4072	4037	4037
query10	474	358	302	302
query11	6026	2385	2211	2211
query12	192	134	129	129
query13	1313	613	435	435
query14	6865	5362	5098	5098
query14_1	4369	4395	4385	4385
query15	217	205	185	185
query16	1003	463	441	441
query17	1391	773	650	650
query18	2728	487	347	347
query19	293	195	155	155
query20	142	130	136	130
query21	214	137	117	117
query22	13702	13457	13292	13292
query23	17078	16386	16598	16386
query23_1	16243	16248	16376	16248
query24	7745	1832	1410	1410
query24_1	1382	1372	1365	1365
query25	597	533	470	470
query26	1531	335	174	174
query27	2952	594	354	354
query28	4632	2003	1964	1964
query29	1041	662	513	513
query30	341	236	197	197
query31	1109	1050	927	927
query32	82	74	70	70
query33	529	347	285	285
query34	1139	1146	636	636
query35	746	777	674	674
query36	1326	1314	1133	1133
query37	140	96	84	84
query38	3195	3132	3087	3087
query39	915	914	905	905
query39_1	886	856	872	856
query40	240	154	134	134
query41	64	59	60	59
query42	109	110	107	107
query43	321	328	279	279
query44	
query45	213	202	200	200
query46	1038	1193	727	727
query47	2297	2372	2221	2221
query48	398	410	292	292
query49	637	510	437	437
query50	722	305	214	214
query51	4316	4300	4216	4216
query52	103	102	94	94
query53	259	282	202	202
query54	309	279	249	249
query55	91	87	83	83
query56	301	313	300	300
query57	1398	1426	1316	1316
query58	298	273	250	250
query59	1561	1651	1388	1388
query60	340	335	313	313
query61	157	152	148	148
query62	671	619	572	572
query63	244	201	206	201
query64	2343	816	676	676
query65	
query66	1691	506	395	395
query67	29972	29317	29850	29317
query68	
query69	461	333	306	306
query70	1031	1007	995	995
query71	321	272	268	268
query72	3156	2924	2653	2653
query73	858	734	427	427
query74	5034	4866	4732	4732
query75	2780	2647	2323	2323
query76	2303	1139	778	778
query77	417	426	352	352
query78	12937	12967	12318	12318
query79	1511	948	721	721
query80	1397	588	478	478
query81	520	275	239	239
query82	942	161	127	127
query83	350	273	241	241
query84	266	143	118	118
query85	900	516	438	438
query86	447	323	337	323
query87	3413	3385	3229	3229
query88	3510	2653	2639	2639
query89	440	383	338	338
query90	1916	189	183	183
query91	178	178	141	141
query92	84	75	72	72
query93	1098	969	573	573
query94	704	335	306	306
query95	699	366	338	338
query96	1029	746	350	350
query97	2684	2700	2587	2587
query98	242	233	227	227
query99	1142	1109	978	978
Total cold run time: 256751 ms
Total hot run time: 170284 ms

@hello-stephen
Copy link
Copy Markdown
Contributor

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

query5	4324	645	543	543
query6	322	237	204	204
query7	4273	572	302	302
query8	316	237	238	237
query9	8836	4060	4062	4060
query10	441	338	290	290
query11	5844	2410	2176	2176
query12	178	130	130	130
query13	1260	608	412	412
query14	6017	5353	5028	5028
query14_1	4360	4341	4334	4334
query15	209	206	181	181
query16	997	449	449	449
query17	913	750	613	613
query18	2473	484	354	354
query19	216	205	159	159
query20	136	133	133	133
query21	216	136	115	115
query22	13551	13552	13432	13432
query23	17179	16500	16601	16500
query23_1	16427	16333	16336	16333
query24	7700	1822	1384	1384
query24_1	1390	1384	1450	1384
query25	608	525	456	456
query26	1514	326	193	193
query27	2714	591	341	341
query28	4472	1960	1936	1936
query29	976	623	509	509
query30	303	235	198	198
query31	1095	1079	941	941
query32	87	69	69	69
query33	522	342	282	282
query34	1153	1120	632	632
query35	770	790	673	673
query36	1317	1349	1209	1209
query37	153	105	91	91
query38	3174	3124	3035	3035
query39	942	947	909	909
query39_1	862	883	864	864
query40	235	165	138	138
query41	72	66	69	66
query42	115	111	107	107
query43	317	328	282	282
query44	
query45	215	203	198	198
query46	1058	1197	722	722
query47	2341	2349	2201	2201
query48	412	427	313	313
query49	652	542	429	429
query50	726	288	219	219
query51	4352	4306	4275	4275
query52	108	106	94	94
query53	256	275	213	213
query54	329	289	282	282
query55	92	91	91	91
query56	323	337	343	337
query57	1465	1377	1298	1298
query58	309	282	274	274
query59	1557	1660	1457	1457
query60	363	349	337	337
query61	184	180	174	174
query62	686	633	565	565
query63	258	209	210	209
query64	2499	873	730	730
query65	
query66	1753	512	413	413
query67	29395	29956	29174	29174
query68	
query69	454	339	311	311
query70	993	1016	973	973
query71	316	276	261	261
query72	3105	2831	2472	2472
query73	808	737	409	409
query74	5082	4934	4745	4745
query75	2804	2680	2325	2325
query76	2301	1126	744	744
query77	405	433	359	359
query78	12960	12998	12386	12386
query79	1479	1027	734	734
query80	1256	578	489	489
query81	502	279	235	235
query82	1306	157	125	125
query83	365	290	255	255
query84	308	136	112	112
query85	937	518	450	450
query86	450	347	313	313
query87	3416	3351	3209	3209
query88	3533	2705	2662	2662
query89	444	380	332	332
query90	1787	185	186	185
query91	183	170	138	138
query92	82	77	70	70
query93	959	945	566	566
query94	642	342	293	293
query95	676	467	363	363
query96	1076	784	350	350
query97	2741	2692	2606	2606
query98	242	237	235	235
query99	1085	1098	911	911
Total cold run time: 254511 ms
Total hot run time: 170993 ms

@hello-stephen
Copy link
Copy Markdown
Contributor

FE UT Coverage Report

Increment line coverage 85.48% (53/62) 🎉
Increment coverage report
Complete coverage report

1 similar comment
@hello-stephen
Copy link
Copy Markdown
Contributor

FE UT Coverage Report

Increment line coverage 85.48% (53/62) 🎉
Increment coverage report
Complete coverage report

@englefly
Copy link
Copy Markdown
Contributor Author

run buildall

@hello-stephen
Copy link
Copy Markdown
Contributor

TPC-H: Total hot run time: 29539 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit d6c6d890db4d5d71eb9f1a165192bd86fe6d3c6a, 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	17592	3951	3854	3854
q2	q3	10728	867	606	606
q4	4662	459	343	343
q5	7450	1321	1158	1158
q6	193	169	141	141
q7	912	947	749	749
q8	9321	1394	1253	1253
q9	5523	5396	5356	5356
q10	6244	2097	1820	1820
q11	476	263	257	257
q12	627	420	296	296
q13	18098	3308	2727	2727
q14	286	281	262	262
q15	q16	885	866	786	786
q17	927	1012	707	707
q18	6478	5740	5577	5577
q19	1154	1260	1051	1051
q20	495	395	264	264
q21	4835	2382	1994	1994
q22	461	411	338	338
Total cold run time: 97347 ms
Total hot run time: 29539 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	4764	4667	4841	4667
q2	q3	4653	4864	4166	4166
q4	2106	2165	1385	1385
q5	4977	4978	5202	4978
q6	190	177	142	142
q7	2089	1816	1623	1623
q8	3321	3059	3120	3059
q9	8541	8105	8473	8105
q10	4540	4519	4227	4227
q11	596	413	392	392
q12	700	744	535	535
q13	3193	3611	2882	2882
q14	301	296	270	270
q15	q16	878	806	684	684
q17	1338	1279	1251	1251
q18	7942	7057	7129	7057
q19	1129	1176	1143	1143
q20	2269	2241	1955	1955
q21	6254	5350	4904	4904
q22	539	511	410	410
Total cold run time: 60320 ms
Total hot run time: 53835 ms

@hello-stephen
Copy link
Copy Markdown
Contributor

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

query5	4312	650	519	519
query6	350	209	193	193
query7	4226	582	321	321
query8	336	227	214	214
query9	8840	3988	4020	3988
query10	446	358	297	297
query11	5902	2394	2193	2193
query12	180	130	124	124
query13	1270	616	428	428
query14	6043	5387	5054	5054
query14_1	4392	4437	4394	4394
query15	214	215	185	185
query16	991	472	445	445
query17	953	769	637	637
query18	2503	491	371	371
query19	227	209	165	165
query20	138	137	133	133
query21	219	141	120	120
query22	13618	13930	14595	13930
query23	17434	16542	16162	16162
query23_1	16324	16328	16284	16284
query24	7409	1752	1341	1341
query24_1	1335	1332	1373	1332
query25	557	493	415	415
query26	1291	316	177	177
query27	2716	600	344	344
query28	4419	1962	1960	1960
query29	989	630	515	515
query30	306	235	200	200
query31	1092	1057	941	941
query32	79	70	70	70
query33	538	340	295	295
query34	1149	1105	633	633
query35	743	773	675	675
query36	1341	1334	1171	1171
query37	145	94	97	94
query38	3157	3109	3073	3073
query39	913	938	893	893
query39_1	882	871	863	863
query40	229	152	135	135
query41	62	60	60	60
query42	109	106	101	101
query43	317	334	276	276
query44	
query45	214	202	190	190
query46	1048	1178	718	718
query47	2281	2289	2182	2182
query48	375	396	296	296
query49	631	520	424	424
query50	710	280	222	222
query51	4283	4264	4188	4188
query52	109	105	96	96
query53	260	289	207	207
query54	320	285	254	254
query55	100	90	83	83
query56	304	316	299	299
query57	1403	1395	1319	1319
query58	289	279	284	279
query59	1528	1627	1451	1451
query60	356	327	325	325
query61	155	154	154	154
query62	673	624	576	576
query63	253	196	212	196
query64	2446	833	692	692
query65	
query66	1734	527	387	387
query67	29965	29905	29862	29862
query68	
query69	461	332	303	303
query70	958	994	1026	994
query71	311	275	259	259
query72	3020	2733	2644	2644
query73	815	740	432	432
query74	5062	4886	4738	4738
query75	2804	2683	2355	2355
query76	2307	1138	789	789
query77	419	423	341	341
query78	12935	13006	12315	12315
query79	1508	1028	718	718
query80	1386	572	476	476
query81	521	284	237	237
query82	958	155	127	127
query83	324	275	256	256
query84	301	143	111	111
query85	908	509	444	444
query86	444	316	298	298
query87	3407	3365	3227	3227
query88	3559	2691	2661	2661
query89	436	378	337	337
query90	1945	182	183	182
query91	181	168	138	138
query92	79	78	72	72
query93	1224	936	577	577
query94	712	329	291	291
query95	663	367	346	346
query96	1044	780	324	324
query97	2698	2694	2547	2547
query98	236	234	237	234
query99	1144	1101	963	963
Total cold run time: 253938 ms
Total hot run time: 171356 ms

@hello-stephen
Copy link
Copy Markdown
Contributor

FE UT Coverage Report

Increment line coverage 85.48% (53/62) 🎉
Increment coverage report
Complete coverage report

@englefly
Copy link
Copy Markdown
Contributor Author

run buildall

@hello-stephen
Copy link
Copy Markdown
Contributor

FE Regression Coverage Report

Increment line coverage 56.00% (56/100) 🎉
Increment coverage report
Complete coverage report

@hello-stephen
Copy link
Copy Markdown
Contributor

TPC-H: Total hot run time: 29596 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit fc2cf36bcc9ec2f03b12731bb28923f3ca2b1066, 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	17818	4066	4066	4066
q2	q3	10720	856	598	598
q4	4672	453	344	344
q5	7471	1311	1140	1140
q6	190	166	140	140
q7	912	962	751	751
q8	9611	1321	1263	1263
q9	6139	5351	5305	5305
q10	6311	2046	1789	1789
q11	468	265	247	247
q12	690	417	287	287
q13	18201	3312	2708	2708
q14	297	281	263	263
q15	q16	903	863	785	785
q17	1050	929	775	775
q18	6348	5718	5537	5537
q19	1491	1220	1079	1079
q20	527	390	262	262
q21	4748	2317	1918	1918
q22	486	405	339	339
Total cold run time: 99053 ms
Total hot run time: 29596 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	4666	4540	4592	4540
q2	q3	4668	4773	4206	4206
q4	2071	2151	1378	1378
q5	4934	5094	5242	5094
q6	210	168	139	139
q7	2039	1828	1638	1638
q8	3347	3084	3129	3084
q9	8380	8658	8365	8365
q10	4456	4461	4233	4233
q11	574	407	411	407
q12	703	754	514	514
q13	3290	3629	2907	2907
q14	293	312	281	281
q15	q16	775	773	682	682
q17	1334	1296	1246	1246
q18	7991	7186	7101	7101
q19	1158	1157	1133	1133
q20	2173	2200	1906	1906
q21	5917	5244	4723	4723
q22	509	464	398	398
Total cold run time: 59488 ms
Total hot run time: 53975 ms

@hello-stephen
Copy link
Copy Markdown
Contributor

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

query5	4307	653	513	513
query6	311	219	210	210
query7	4281	583	305	305
query8	325	244	248	244
query9	8850	4114	4074	4074
query10	456	338	298	298
query11	5781	2384	2200	2200
query12	183	129	130	129
query13	1291	601	422	422
query14	6503	5387	5083	5083
query14_1	4409	4416	4375	4375
query15	215	205	195	195
query16	999	460	450	450
query17	1160	780	607	607
query18	2707	486	340	340
query19	221	206	163	163
query20	138	131	138	131
query21	220	146	116	116
query22	13558	13548	13520	13520
query23	17056	16308	15999	15999
query23_1	15960	16127	16128	16127
query24	7423	1731	1360	1360
query24_1	1371	1366	1371	1366
query25	551	496	444	444
query26	1290	325	171	171
query27	2719	636	342	342
query28	4416	1963	2004	1963
query29	1020	620	514	514
query30	330	241	210	210
query31	1128	1062	921	921
query32	91	73	77	73
query33	547	349	284	284
query34	1157	1133	660	660
query35	763	786	662	662
query36	1307	1304	1178	1178
query37	157	108	98	98
query38	3219	3122	3078	3078
query39	922	928	949	928
query39_1	891	880	876	876
query40	234	165	143	143
query41	64	64	62	62
query42	111	118	111	111
query43	336	336	297	297
query44	
query45	207	198	193	193
query46	1121	1218	724	724
query47	2295	2327	2230	2230
query48	366	410	324	324
query49	669	558	470	470
query50	731	312	233	233
query51	4357	4300	4268	4268
query52	106	111	100	100
query53	275	303	228	228
query54	333	313	272	272
query55	98	102	91	91
query56	325	338	329	329
query57	1469	1465	1321	1321
query58	308	294	284	284
query59	1624	1678	1403	1403
query60	368	358	335	335
query61	183	180	179	179
query62	691	637	567	567
query63	263	215	231	215
query64	2471	870	732	732
query65	
query66	1749	545	452	452
query67	29301	29855	29797	29797
query68	
query69	470	331	301	301
query70	1038	962	1029	962
query71	315	281	270	270
query72	3028	2702	2395	2395
query73	825	785	454	454
query74	5089	4886	4725	4725
query75	2780	2677	2311	2311
query76	2297	1146	808	808
query77	431	434	358	358
query78	12843	12965	12238	12238
query79	1468	1025	719	719
query80	1343	625	485	485
query81	522	277	241	241
query82	942	163	132	132
query83	365	277	250	250
query84	269	141	108	108
query85	908	507	443	443
query86	463	319	305	305
query87	3447	3346	3207	3207
query88	3617	2670	2646	2646
query89	455	392	353	353
query90	1932	189	182	182
query91	179	169	137	137
query92	77	81	69	69
query93	1206	972	575	575
query94	725	317	301	301
query95	663	459	342	342
query96	1098	774	321	321
query97	2674	2685	2563	2563
query98	237	226	223	223
query99	1111	1095	956	956
Total cold run time: 253869 ms
Total hot run time: 170170 ms

@hello-stephen
Copy link
Copy Markdown
Contributor

FE UT Coverage Report

Increment line coverage 85.48% (53/62) 🎉
Increment coverage report
Complete coverage report

@englefly
Copy link
Copy Markdown
Contributor Author

run buildall

@hello-stephen
Copy link
Copy Markdown
Contributor

TPC-H: Total hot run time: 29589 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 2103941690ee0ce1b1ce4c6a15bba40832b269d9, 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	17830	3962	3934	3934
q2	q3	10725	881	611	611
q4	4659	460	365	365
q5	7470	1323	1126	1126
q6	199	179	149	149
q7	945	946	762	762
q8	9337	1376	1367	1367
q9	5567	5402	5356	5356
q10	6259	2096	1823	1823
q11	470	272	253	253
q12	634	424	297	297
q13	18080	3302	2697	2697
q14	295	284	259	259
q15	q16	896	864	791	791
q17	992	1092	737	737
q18	6508	5682	5555	5555
q19	1184	1276	1029	1029
q20	523	395	258	258
q21	4533	2305	1917	1917
q22	422	362	303	303
Total cold run time: 97528 ms
Total hot run time: 29589 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	4301	4188	4172	4172
q2	q3	4647	4777	4204	4204
q4	2147	2186	1393	1393
q5	4959	5034	5277	5034
q6	199	175	138	138
q7	2009	1745	2008	1745
q8	3540	3195	3237	3195
q9	8476	8519	8516	8516
q10	4503	4527	4263	4263
q11	611	420	402	402
q12	715	770	518	518
q13	3599	3598	2964	2964
q14	309	313	291	291
q15	q16	819	789	690	690
q17	1432	1371	1303	1303
q18	8070	7217	7068	7068
q19	1171	1167	1124	1124
q20	2225	2247	1965	1965
q21	6314	5605	4982	4982
q22	548	653	480	480
Total cold run time: 60594 ms
Total hot run time: 54447 ms

@hello-stephen
Copy link
Copy Markdown
Contributor

TPC-DS: Total hot run time: 170848 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 2103941690ee0ce1b1ce4c6a15bba40832b269d9, data reload: false

query5	4321	658	535	535
query6	345	226	203	203
query7	4272	565	312	312
query8	345	237	233	233
query9	8819	4097	4072	4072
query10	452	346	310	310
query11	6028	2384	2196	2196
query12	185	133	135	133
query13	1331	622	443	443
query14	6745	5377	5062	5062
query14_1	4377	4387	4361	4361
query15	208	202	185	185
query16	1028	452	426	426
query17	1139	763	629	629
query18	2721	487	345	345
query19	224	200	162	162
query20	145	140	129	129
query21	216	143	121	121
query22	13680	14220	14423	14220
query23	17413	16563	16185	16185
query23_1	16417	16157	16303	16157
query24	7493	1743	1352	1352
query24_1	1352	1337	1361	1337
query25	585	522	453	453
query26	1301	314	169	169
query27	2713	581	344	344
query28	4321	1969	1972	1969
query29	1043	666	534	534
query30	305	241	208	208
query31	1138	1060	950	950
query32	92	79	74	74
query33	569	397	292	292
query34	1167	1129	653	653
query35	777	778	671	671
query36	1305	1317	1122	1122
query37	147	104	93	93
query38	3209	3149	3050	3050
query39	912	902	896	896
query39_1	866	880	865	865
query40	230	160	139	139
query41	66	61	57	57
query42	109	106	105	105
query43	328	332	287	287
query44	
query45	209	202	197	197
query46	1096	1203	742	742
query47	2295	2250	2206	2206
query48	425	411	295	295
query49	650	532	425	425
query50	707	283	216	216
query51	4380	4270	4221	4221
query52	104	107	98	98
query53	263	291	208	208
query54	320	276	271	271
query55	95	89	88	88
query56	305	321	307	307
query57	1410	1373	1297	1297
query58	298	267	274	267
query59	1559	1635	1397	1397
query60	338	336	318	318
query61	204	158	162	158
query62	659	614	562	562
query63	252	204	212	204
query64	2381	834	711	711
query65	
query66	1693	514	403	403
query67	30016	29621	29784	29621
query68	
query69	457	347	300	300
query70	1034	1031	944	944
query71	314	281	283	281
query72	3183	2746	2354	2354
query73	861	751	400	400
query74	5069	4914	4746	4746
query75	2780	2678	2326	2326
query76	2312	1171	771	771
query77	442	423	354	354
query78	12965	12844	12353	12353
query79	1471	977	723	723
query80	804	575	506	506
query81	476	282	236	236
query82	1341	169	128	128
query83	366	286	263	263
query84	282	146	113	113
query85	909	524	500	500
query86	442	322	329	322
query87	3406	3370	3220	3220
query88	3560	2681	2659	2659
query89	440	378	338	338
query90	1774	195	182	182
query91	180	173	144	144
query92	76	78	72	72
query93	962	940	564	564
query94	618	349	309	309
query95	675	384	343	343
query96	1042	799	347	347
query97	2696	2694	2601	2601
query98	237	233	257	233
query99	1095	1112	986	986
Total cold run time: 255331 ms
Total hot run time: 170848 ms

@hello-stephen
Copy link
Copy Markdown
Contributor

FE Regression Coverage Report

Increment line coverage 42.54% (57/134) 🎉
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.

3 participants