Skip to content

[fix](fe) Fix SHOW TRASH ON clause to support multiple backends#63860

Open
heguanhui wants to merge 1 commit into
apache:masterfrom
heguanhui:fix/show-trash-on-multi-be
Open

[fix](fe) Fix SHOW TRASH ON clause to support multiple backends#63860
heguanhui wants to merge 1 commit into
apache:masterfrom
heguanhui:fix/show-trash-on-multi-be

Conversation

@heguanhui

Copy link
Copy Markdown
Contributor

What problem does this PR solve?

Issue Number: close #xxx

Problem Summary: SHOW TRASH ON clause has two bugs:

  1. The ON clause is silently ignored due to a missing return statement in LogicalPlanBuilder.visitShowTrash(), causing SHOW TRASH ON "be:9050" to always return trash info for all backends instead of the specified one.
  2. SHOW TRASH ON only supports a single backend string literal, while ADMIN CLEAN TRASH ON supports multiple backends with parenthesized comma-separated list. The syntax is inconsistent between the two related statements.

Release note

Fix SHOW TRASH ON clause to support multiple backends with the same syntax as ADMIN CLEAN TRASH ON, e.g. SHOW TRASH ON ("be1:9050", "be2:9050"). Previously the ON clause was silently ignored due to a missing return.

Check List (For Author)

  • Test

    • Regression test
    • Unit Test
    • Manual test
    • No need to test
  • Behavior changed:

    • No.
    • Yes. SHOW TRASH ON now requires parenthesized list syntax consistent with ADMIN CLEAN TRASH ON.
  • 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?

@heguanhui

Copy link
Copy Markdown
Contributor Author

run buildall

@hello-stephen

Copy link
Copy Markdown
Contributor
TPC-H: Total hot run time: 31218 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 7db0866929f809cd2412d943b98fd56b30b9a833, 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	17694	4027	3983	3983
q2	q3	10752	1390	801	801
q4	4685	474	354	354
q5	7564	2259	2099	2099
q6	252	181	135	135
q7	954	790	657	657
q8	9363	1652	1581	1581
q9	6286	5009	4950	4950
q10	6433	2226	1887	1887
q11	437	278	246	246
q12	687	424	293	293
q13	18185	3351	2728	2728
q14	262	256	235	235
q15	q16	823	788	705	705
q17	975	923	964	923
q18	6863	5773	5621	5621
q19	1175	1313	1086	1086
q20	523	405	262	262
q21	5751	2523	2374	2374
q22	437	351	298	298
Total cold run time: 100101 ms
Total hot run time: 31218 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	4362	4277	4260	4260
q2	q3	4490	4908	4366	4366
q4	2095	2193	1402	1402
q5	4439	4298	4309	4298
q6	231	187	208	187
q7	2123	1782	1585	1585
q8	2567	2190	2214	2190
q9	8197	7968	8201	7968
q10	4826	4825	4343	4343
q11	762	417	379	379
q12	734	767	537	537
q13	3292	3574	3005	3005
q14	314	325	275	275
q15	q16	754	738	633	633
q17	1359	1324	1326	1324
q18	8039	7373	7041	7041
q19	1111	1105	1093	1093
q20	2226	2218	1951	1951
q21	5289	4604	4454	4454
q22	535	454	406	406
Total cold run time: 57745 ms
Total hot run time: 51697 ms

@hello-stephen

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

query5	4354	661	532	532
query6	349	228	207	207
query7	4260	555	309	309
query8	340	243	216	216
query9	8788	4010	4049	4010
query10	489	343	301	301
query11	5822	2428	2257	2257
query12	177	127	127	127
query13	1287	610	436	436
query14	6039	5454	5144	5144
query14_1	4484	4445	4448	4445
query15	209	208	181	181
query16	1017	442	437	437
query17	1095	792	622	622
query18	2540	490	380	380
query19	224	207	168	168
query20	140	133	132	132
query21	223	151	122	122
query22	13692	13582	13403	13403
query23	17363	16480	16281	16281
query23_1	16435	16364	16391	16364
query24	7466	1795	1338	1338
query24_1	1349	1341	1337	1337
query25	587	510	439	439
query26	1332	341	174	174
query27	2680	573	354	354
query28	4480	2013	2015	2013
query29	1045	654	527	527
query30	303	241	200	200
query31	1144	1087	967	967
query32	96	78	78	78
query33	564	375	304	304
query34	1168	1172	670	670
query35	790	804	724	724
query36	1397	1396	1272	1272
query37	155	109	92	92
query38	3241	3215	3045	3045
query39	936	927	913	913
query39_1	929	871	897	871
query40	231	153	130	130
query41	77	68	70	68
query42	116	110	111	110
query43	336	346	301	301
query44	
query45	218	214	204	204
query46	1088	1206	765	765
query47	2388	2391	2310	2310
query48	400	426	326	326
query49	653	512	409	409
query50	1009	359	260	260
query51	4457	4387	4228	4228
query52	108	106	95	95
query53	258	278	213	213
query54	338	286	271	271
query55	98	96	89	89
query56	318	324	331	324
query57	1437	1438	1360	1360
query58	300	278	274	274
query59	1645	1649	1504	1504
query60	323	334	310	310
query61	167	159	157	157
query62	696	650	580	580
query63	250	200	214	200
query64	2423	810	635	635
query65	
query66	1697	476	361	361
query67	29898	29809	29527	29527
query68	
query69	471	344	311	311
query70	1055	1046	1023	1023
query71	307	281	275	275
query72	2945	2684	2431	2431
query73	857	790	433	433
query74	5098	4970	4886	4886
query75	2685	2672	2287	2287
query76	2297	1164	760	760
query77	396	428	342	342
query78	12550	12553	11950	11950
query79	1465	1069	768	768
query80	1330	540	464	464
query81	489	286	251	251
query82	1412	165	129	129
query83	354	272	260	260
query84	279	143	116	116
query85	925	539	457	457
query86	459	349	292	292
query87	3459	3406	3238	3238
query88	3652	2769	2694	2694
query89	452	393	340	340
query90	1887	186	192	186
query91	188	169	140	140
query92	83	79	73	73
query93	1489	1458	915	915
query94	733	351	324	324
query95	671	411	361	361
query96	1153	795	347	347
query97	2757	2752	2604	2604
query98	243	236	232	232
query99	1178	1140	1018	1018
Total cold run time: 256311 ms
Total hot run time: 172298 ms

@heguanhui

Copy link
Copy Markdown
Contributor Author

run buildall

@hello-stephen

Copy link
Copy Markdown
Contributor
TPC-H: Total hot run time: 31141 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 7db0866929f809cd2412d943b98fd56b30b9a833, 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	17597	4076	4031	4031
q2	q3	10757	1424	817	817
q4	4681	476	352	352
q5	7591	2267	2072	2072
q6	243	175	136	136
q7	947	805	642	642
q8	9369	1675	1524	1524
q9	5164	4985	4927	4927
q10	6399	2211	1858	1858
q11	439	270	242	242
q12	624	424	289	289
q13	18100	3328	2759	2759
q14	264	259	247	247
q15	q16	814	787	708	708
q17	981	892	955	892
q18	6731	5700	5545	5545
q19	1406	1443	1064	1064
q20	502	420	255	255
q21	5866	2577	2478	2478
q22	454	358	303	303
Total cold run time: 98929 ms
Total hot run time: 31141 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	4321	4273	4308	4273
q2	q3	4510	4947	4321	4321
q4	2389	2176	1384	1384
q5	4436	4291	4336	4291
q6	226	171	126	126
q7	2229	1982	1704	1704
q8	2558	2234	2194	2194
q9	8035	8166	8033	8033
q10	4769	4797	4314	4314
q11	576	424	409	409
q12	781	768	543	543
q13	3282	3595	2987	2987
q14	298	295	268	268
q15	q16	712	739	648	648
q17	1359	1319	1497	1319
q18	7770	7297	7154	7154
q19	1189	1132	1097	1097
q20	2227	2214	1927	1927
q21	5252	4586	4440	4440
q22	506	481	416	416
Total cold run time: 57425 ms
Total hot run time: 51848 ms

@heguanhui heguanhui force-pushed the fix/show-trash-on-multi-be branch from 7db0866 to d7b4c0e Compare May 31, 2026 16:22
@heguanhui

Copy link
Copy Markdown
Contributor Author

run buildall

@hello-stephen

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

query5	4304	656	516	516
query6	320	214	202	202
query7	4264	577	314	314
query8	322	235	226	226
query9	8798	3997	3986	3986
query10	455	342	298	298
query11	5700	2425	2216	2216
query12	187	131	128	128
query13	1308	615	460	460
query14	6043	5503	5175	5175
query14_1	4484	4511	4468	4468
query15	211	204	189	189
query16	997	470	435	435
query17	1157	755	607	607
query18	2576	480	346	346
query19	214	195	156	156
query20	135	130	132	130
query21	216	138	117	117
query22	13543	13618	13302	13302
query23	17453	16463	16217	16217
query23_1	16413	16313	16401	16313
query24	7445	1788	1294	1294
query24_1	1339	1319	1320	1319
query25	567	466	406	406
query26	1295	303	179	179
query27	2741	567	348	348
query28	4431	1983	1983	1983
query29	966	613	498	498
query30	303	240	200	200
query31	1123	1067	966	966
query32	88	75	71	71
query33	554	351	285	285
query34	1171	1138	653	653
query35	765	793	713	713
query36	1414	1419	1246	1246
query37	155	101	91	91
query38	3184	3153	3082	3082
query39	932	930	884	884
query39_1	878	908	880	880
query40	230	145	125	125
query41	64	64	62	62
query42	107	109	109	109
query43	320	329	289	289
query44	
query45	211	208	195	195
query46	1048	1245	764	764
query47	2428	2415	2218	2218
query48	403	412	296	296
query49	654	504	384	384
query50	974	337	254	254
query51	4351	4332	4250	4250
query52	105	106	93	93
query53	259	287	200	200
query54	306	264	245	245
query55	91	91	83	83
query56	298	306	315	306
query57	1430	1404	1338	1338
query58	301	266	261	261
query59	1549	1674	1422	1422
query60	325	322	308	308
query61	159	149	155	149
query62	693	650	583	583
query63	238	196	220	196
query64	2400	792	648	648
query65	
query66	1706	471	350	350
query67	29719	29649	29524	29524
query68	
query69	465	340	307	307
query70	1003	963	960	960
query71	298	271	268	268
query72	2960	2642	2351	2351
query73	855	761	434	434
query74	5098	4969	4778	4778
query75	2680	2634	2260	2260
query76	2275	1146	770	770
query77	401	412	338	338
query78	12412	12378	11827	11827
query79	1227	1032	755	755
query80	593	544	467	467
query81	450	284	237	237
query82	255	158	119	119
query83	271	280	247	247
query84	259	143	113	113
query85	907	543	462	462
query86	365	350	316	316
query87	3426	3370	3216	3216
query88	3606	2719	2723	2719
query89	417	385	350	350
query90	2184	172	176	172
query91	177	166	137	137
query92	79	83	74	74
query93	1464	1408	901	901
query94	522	354	305	305
query95	668	377	433	377
query96	1101	796	378	378
query97	2719	2736	2599	2599
query98	236	224	236	224
query99	1174	1177	1055	1055
Total cold run time: 252287 ms
Total hot run time: 170838 ms

@hello-stephen

Copy link
Copy Markdown
Contributor
TPC-H: Total hot run time: 31100 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit d7b4c0e9de65ad2e2ca182cd37674d166ab8aa66, 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	17610	3978	3969	3969
q2	q3	10784	1351	771	771
q4	4685	476	336	336
q5	7637	2224	2094	2094
q6	244	172	133	133
q7	915	800	623	623
q8	9369	1673	1566	1566
q9	6202	4915	4937	4915
q10	6460	2184	1854	1854
q11	433	273	245	245
q12	686	426	300	300
q13	18207	3330	2729	2729
q14	263	257	239	239
q15	q16	817	772	708	708
q17	955	878	986	878
q18	6758	5665	5610	5610
q19	1173	1220	1045	1045
q20	611	430	274	274
q21	6124	2789	2505	2505
q22	457	370	306	306
Total cold run time: 100390 ms
Total hot run time: 31100 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	4891	4749	4937	4749
q2	q3	4730	5248	4671	4671
q4	2131	2171	1375	1375
q5	4789	4786	4726	4726
q6	230	177	125	125
q7	1836	1735	1581	1581
q8	2369	2104	2011	2011
q9	7406	7414	7447	7414
q10	4774	4642	4216	4216
q11	542	385	350	350
q12	721	725	525	525
q13	2990	3366	2798	2798
q14	269	276	257	257
q15	q16	672	702	604	604
q17	1267	1240	1235	1235
q18	7317	6753	6758	6753
q19	1122	1076	1069	1069
q20	2222	2217	1965	1965
q21	5230	4515	4365	4365
q22	513	462	404	404
Total cold run time: 56021 ms
Total hot run time: 51193 ms

@hello-stephen

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

query5	4312	664	521	521
query6	323	212	196	196
query7	4296	569	293	293
query8	328	233	231	231
query9	8806	4126	4112	4112
query10	471	352	311	311
query11	5731	2567	2189	2189
query12	204	134	134	134
query13	1313	615	461	461
query14	6097	5476	5154	5154
query14_1	4496	4507	4461	4461
query15	216	205	187	187
query16	1024	471	447	447
query17	1172	732	616	616
query18	2716	483	354	354
query19	214	202	160	160
query20	133	135	127	127
query21	214	139	114	114
query22	13740	13606	13302	13302
query23	17336	16546	16334	16334
query23_1	16335	16385	16241	16241
query24	7519	1755	1337	1337
query24_1	1313	1293	1334	1293
query25	569	482	428	428
query26	1341	341	175	175
query27	2651	567	334	334
query28	4428	2027	1997	1997
query29	1005	617	484	484
query30	302	237	194	194
query31	1135	1081	951	951
query32	91	76	72	72
query33	542	352	303	303
query34	1160	1136	645	645
query35	777	790	693	693
query36	1383	1393	1270	1270
query37	149	100	89	89
query38	3201	3191	3079	3079
query39	942	917	933	917
query39_1	894	862	883	862
query40	223	146	124	124
query41	68	61	61	61
query42	110	111	110	110
query43	332	333	298	298
query44	
query45	215	206	199	199
query46	1068	1252	757	757
query47	2352	2377	2229	2229
query48	408	394	332	332
query49	628	509	385	385
query50	1004	343	256	256
query51	4359	4397	4285	4285
query52	108	106	98	98
query53	268	289	217	217
query54	325	276	250	250
query55	94	96	92	92
query56	311	310	297	297
query57	1467	1468	1382	1382
query58	305	261	271	261
query59	1644	1727	1546	1546
query60	330	317	302	302
query61	156	146	151	146
query62	696	671	593	593
query63	247	197	201	197
query64	2411	790	632	632
query65	
query66	1660	475	353	353
query67	29820	29639	29601	29601
query68	
query69	463	331	304	304
query70	995	1056	992	992
query71	299	276	267	267
query72	3105	2680	2483	2483
query73	879	713	438	438
query74	5108	4958	4836	4836
query75	2698	2632	2260	2260
query76	2289	1119	755	755
query77	394	406	325	325
query78	12280	12352	11825	11825
query79	1369	995	733	733
query80	608	546	458	458
query81	461	279	240	240
query82	426	154	118	118
query83	365	276	256	256
query84	259	142	112	112
query85	909	528	478	478
query86	414	328	363	328
query87	3425	3399	3261	3261
query88	3609	2719	2703	2703
query89	442	402	351	351
query90	1927	181	175	175
query91	174	167	140	140
query92	79	80	78	78
query93	1433	1524	893	893
query94	539	346	309	309
query95	671	369	440	369
query96	1025	835	345	345
query97	2735	2738	2582	2582
query98	234	226	232	226
query99	1154	1164	1031	1031
Total cold run time: 253248 ms
Total hot run time: 171892 ms

@hello-stephen

Copy link
Copy Markdown
Contributor

FE Regression Coverage Report

Increment line coverage 93.75% (15/16) 🎉
Increment coverage report
Complete coverage report

@hello-stephen

Copy link
Copy Markdown
Contributor

FE UT Coverage Report

Increment line coverage 0.00% (0/16) 🎉
Increment coverage report
Complete coverage report

@morningman

Copy link
Copy Markdown
Contributor

/review

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Automated review summary for PR #63860 at d7b4c0e.

No blocking issues found.

Critical checkpoint conclusions:

  • Goal and proof: The PR fixes the Nereids SHOW TRASH ON path so the parsed ON clause is returned and executed, and extends the syntax to the same parenthesized backend-list shape used by ADMIN CLEAN TRASH ON. The regression test covers parsing/execution of SHOW TRASH, single-backend ON, and multi-backend ON forms.
  • Scope: The change is small and focused across grammar, plan construction, command backend filtering, and the existing regression test.
  • Concurrency: No new shared concurrency or locking behavior is introduced. Backend metadata is read through the existing system-info snapshot path, and the command performs the same BE RPC flow already used by TrashProcDir.
  • Lifecycle/static initialization: No new static/global lifecycle dependency or cross-translation-unit/static initialization issue is introduced.
  • Configuration: No configuration item is added.
  • Compatibility/storage/protocol: No storage format, function symbol, or FE-BE protocol field change is introduced. The SQL syntax intentionally changes from SHOW TRASH ON "be:port" to SHOW TRASH ON ("be:port", ...), matching the PR release note and ADMIN CLEAN TRASH ON syntax.
  • Parallel paths: The backend-list filtering now mirrors the existing AdminCleanTrashCommand path; no other SHOW TRASH implementation path was found in FE Java code.
  • Conditional checks: The privilege check and backend-selection conditions follow existing adjacent command behavior. Unknown backend strings still produce an empty backend list, matching the existing clean-trash command semantics.
  • Test coverage: Regression coverage exists for the new Nereids syntax. I did not run the regression suite in this review environment.
  • Test results: No .out file is involved because the test uses checkNereidsExecute for cluster-dependent output.
  • Observability: No new observability requirement was identified for this small command/parser fix; existing warning logs in TrashProcDir remain the runtime signal for BE RPC failures.
  • Transactions/persistence/data writes: SHOW TRASH is read-only and does not touch transaction or persistence state. The PR does not modify ADMIN CLEAN TRASH write/task submission behavior.
  • FE/BE variables: No new FE-to-BE variable or thrift field is added.
  • Performance: Backend lookup changes are O(number of backends + requested backends), which is appropriate for this administrative command.

User focus points: No additional user-provided review focus was specified.

@morningman

Copy link
Copy Markdown
Contributor

1. [Medium] Add a test that actually locks in the fix

This is the most valuable improvement. As it stands, no test would fail if bug #1 (the missing return) were reintroduced.

The regression helper checkNereidsExecute (defined at Suite.groovy:1003) is simply sql(sqlString) — it asserts only that the statement executes without throwing, and never inspects the result. The new regression cases use fake IPs (192.168.0.1~3:9050) plus 127.0.0.1:9050, none of which match a real backend in the test cluster. The consequence: with the bug present the statement returns all backends, and after the fix it returns an empty set — but checkNereidsExecute ignores the output in both cases, so the test passes either way. The FE incremental unit-test coverage report confirms this: 0.00% (0/16).

The output of SHOW TRASH ON depends on the cluster and backend IPs, so a qt result assertion isn't practical. The right place to pin the semantics is a lightweight unit test on the parser output — which also exercises the newly added getBackendsQuery() getter:

// Parse SHOW TRASH ON ("be1:9050", "be2:9050") and assert it yields a
// ShowTrashCommand whose backendsQuery == ["be1:9050", "be2:9050"].
// If anyone deletes the `return` in visitShowTrash again, this test should fail immediately.
LogicalPlan plan = parser.parseSingle("SHOW TRASH ON (\"be1:9050\", \"be2:9050\")");
Assertions.assertTrue(plan instanceof ShowTrashCommand);
Assertions.assertEquals(
        Lists.newArrayList("be1:9050", "be2:9050"),
        ((ShowTrashCommand) plan).getBackendsQuery());

Why it matters: the current regression cases prove "it runs," not "the ON clause takes effect." A small assertion on the parsed command nails down the core semantics of this fix at very low cost.

2. [Low] Surface backends that don't match

An unknown or mistyped backend string (e.g. SHOW TRASH ON ("nonexist:9050")) is silently dropped and yields an empty result set, with no error or warning. The user can't tell "this backend has no trash" from "I typed the host:port wrong." Consider collecting the unmatched query strings and emitting a LOG.warn, or otherwise signaling them.

Note: this behavior is inherited from AdminCleanTrashCommand. If you decide to improve it, change both places together — fixing only one would reintroduce the very inconsistency this PR set out to remove. Low priority, and pre-existing.

3. [Low] Make sure the user-facing syntax change is documented

Requiring parentheses is a hard, user-facing syntax break: the old SHOW TRASH ON "be:9050" (no parens) no longer parses. The PR checks "No need documentation" in this repo (user docs live in the separate doris-website repo), which is reasonable for the code repo — but the SHOW TRASH SQL reference should be updated to the new syntax, and the release note should state clearly that the old non-parenthesized form is no longer supported.

@heguanhui

Copy link
Copy Markdown
Contributor Author

run buildall

@heguanhui heguanhui force-pushed the fix/show-trash-on-multi-be branch from 3f5ecce to d63cab3 Compare July 6, 2026 22:14
@heguanhui

Copy link
Copy Markdown
Contributor Author

run buildall

@hello-stephen

Copy link
Copy Markdown
Contributor

FE UT Coverage Report

Increment line coverage 93.75% (15/16) 🎉
Increment coverage report
Complete coverage report

@hello-stephen

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

------ Round 1 ----------------------------------
============================================
q1	17720	4080	4005	4005
q2	2075	329	203	203
q3	10260	1449	822	822
q4	4682	479	340	340
q5	7687	847	587	587
q6	191	177	146	146
q7	776	841	624	624
q8	9361	1534	1564	1534
q9	5721	4455	4460	4455
q10	6740	1813	1556	1556
q11	520	347	337	337
q12	716	552	441	441
q13	18055	3395	2784	2784
q14	272	272	252	252
q15	q16	778	803	721	721
q17	989	1140	934	934
q18	7184	5935	5561	5561
q19	1292	1208	1079	1079
q20	779	643	586	586
q21	6286	2893	2839	2839
q22	462	397	316	316
Total cold run time: 102546 ms
Total hot run time: 30122 ms

----- Round 2, with runtime_filter_mode=off -----
============================================
q1	5111	4787	4763	4763
q2	306	328	229	229
q3	5005	5329	4711	4711
q4	2124	2193	1399	1399
q5	4992	4791	4678	4678
q6	231	177	135	135
q7	1934	1724	1587	1587
q8	2440	2085	2153	2085
q9	7735	7354	7179	7179
q10	4730	4627	4213	4213
q11	533	388	361	361
q12	741	755	527	527
q13	3025	3384	2775	2775
q14	284	277	265	265
q15	q16	680	720	617	617
q17	1282	1267	1253	1253
q18	7506	6909	6942	6909
q19	1080	1077	1073	1073
q20	2228	2214	1929	1929
q21	5297	4616	4474	4474
q22	543	465	421	421
Total cold run time: 57807 ms
Total hot run time: 51583 ms

@hello-stephen

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

query5	4332	653	485	485
query6	469	242	202	202
query7	4953	597	346	346
query8	338	196	174	174
query9	8741	4081	4095	4081
query10	466	337	281	281
query11	5958	2366	2179	2179
query12	161	99	100	99
query13	1241	579	412	412
query14	6265	5306	4954	4954
query14_1	4620	4273	4270	4270
query15	217	201	183	183
query16	1034	486	452	452
query17	938	713	577	577
query18	2460	456	336	336
query19	209	185	150	150
query20	113	109	109	109
query21	229	160	135	135
query22	13736	13614	13516	13516
query23	17477	16573	16202	16202
query23_1	16276	16381	16363	16363
query24	7561	1775	1297	1297
query24_1	1340	1334	1346	1334
query25	561	469	408	408
query26	1318	360	210	210
query27	2591	623	389	389
query28	4491	2032	2044	2032
query29	1092	677	505	505
query30	340	263	229	229
query31	1119	1103	1027	1027
query32	111	67	63	63
query33	536	327	268	268
query34	1164	1125	662	662
query35	781	789	679	679
query36	1440	1370	1219	1219
query37	157	109	91	91
query38	1898	1712	1656	1656
query39	935	917	896	896
query39_1	878	877	878	877
query40	254	163	144	144
query41	74	70	72	70
query42	96	97	98	97
query43	323	330	283	283
query44	1432	835	798	798
query45	205	197	186	186
query46	1086	1179	747	747
query47	2407	2367	2277	2277
query48	407	418	310	310
query49	602	441	333	333
query50	1052	451	346	346
query51	10576	10584	10717	10584
query52	89	91	76	76
query53	256	293	217	217
query54	314	244	232	232
query55	78	73	71	71
query56	329	310	320	310
query57	1449	1407	1314	1314
query58	303	266	265	265
query59	1569	1633	1439	1439
query60	323	284	267	267
query61	212	149	143	143
query62	700	638	598	598
query63	245	206	207	206
query64	2504	771	623	623
query65	4861	4830	4796	4796
query66	1825	520	378	378
query67	29560	29510	29363	29363
query68	3254	1549	999	999
query69	412	297	270	270
query70	1088	1036	978	978
query71	335	312	297	297
query72	2969	2578	2346	2346
query73	813	843	437	437
query74	5168	4994	4741	4741
query75	2608	2592	2222	2222
query76	2313	1190	795	795
query77	355	374	284	284
query78	12532	12567	11757	11757
query79	1385	1168	743	743
query80	654	553	464	464
query81	467	328	281	281
query82	581	160	121	121
query83	377	314	297	297
query84	323	162	130	130
query85	920	588	500	500
query86	371	286	271	271
query87	1838	1824	1748	1748
query88	3683	2798	2832	2798
query89	460	392	362	362
query90	1991	205	200	200
query91	201	186	161	161
query92	66	63	58	58
query93	1602	1536	968	968
query94	540	366	335	335
query95	789	572	484	484
query96	1031	775	359	359
query97	2695	2676	2558	2558
query98	226	211	208	208
query99	1177	1140	1025	1025
Total cold run time: 265375 ms
Total hot run time: 180572 ms

@hello-stephen

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

query1	0.01	0.01	0.01
query2	0.10	0.05	0.04
query3	0.26	0.13	0.13
query4	1.61	0.15	0.14
query5	0.25	0.24	0.21
query6	1.22	1.06	1.10
query7	0.04	0.00	0.00
query8	0.06	0.03	0.04
query9	0.39	0.33	0.31
query10	0.55	0.55	0.54
query11	0.19	0.14	0.14
query12	0.19	0.15	0.15
query13	0.49	0.48	0.48
query14	1.02	0.99	1.00
query15	0.63	0.61	0.61
query16	0.31	0.30	0.31
query17	1.10	1.14	1.14
query18	0.23	0.22	0.21
query19	2.03	1.92	2.01
query20	0.02	0.02	0.02
query21	15.45	0.23	0.13
query22	4.88	0.05	0.05
query23	16.16	0.31	0.12
query24	3.00	0.42	0.34
query25	0.10	0.04	0.04
query26	0.76	0.21	0.15
query27	0.03	0.03	0.03
query28	3.44	0.88	0.53
query29	12.54	4.09	3.21
query30	0.28	0.16	0.15
query31	2.77	0.60	0.31
query32	3.23	0.62	0.49
query33	3.18	3.13	3.22
query34	15.55	4.22	3.51
query35	3.56	3.48	3.53
query36	0.56	0.43	0.44
query37	0.09	0.06	0.07
query38	0.04	0.04	0.04
query39	0.04	0.03	0.03
query40	0.19	0.16	0.15
query41	0.09	0.03	0.02
query42	0.04	0.03	0.04
query43	0.05	0.04	0.03
Total cold run time: 96.73 s
Total hot run time: 24.89 s

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