Skip to content

Conversation

@xylaaaaa
Copy link
Contributor

  • Modified ExplainCommand.java to remove checkBlockRules() call
  • EXPLAIN statements should not be blocked by SQL block rules
  • Updated test_sql_block_rule.groovy to expect EXPLAIN not blocked
  • Added comprehensive external table tests for Hive, Paimon, Iceberg
  • All tests verify EXPLAIN bypasses block rules for partition_num, tablet_num, cardinality, and regex rules

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

- Modified ExplainCommand.java to remove checkBlockRules() call
- EXPLAIN statements should not be blocked by SQL block rules
- Updated test_sql_block_rule.groovy to expect EXPLAIN not blocked
- Added comprehensive external table tests for Hive, Paimon, Iceberg
- All tests verify EXPLAIN bypasses block rules for partition_num, tablet_num, cardinality, and regex rules
Copilot AI review requested due to automatic review settings December 29, 2025 07:41
@Thearas
Copy link
Contributor

Thearas commented Dec 29, 2025

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?

@xylaaaaa
Copy link
Contributor Author

run buildall

@morrySnow morrySnow changed the title [fix] Skip SQL block rules check for EXPLAIN statements [fix](block-rule) Skip SQL block rules check for EXPLAIN statements Dec 29, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR modifies the behavior of EXPLAIN statements to skip SQL block rule validation, since EXPLAIN only shows execution plans without actually executing queries. The change removes the checkBlockRules() call from ExplainCommand.java and adds comprehensive test coverage across internal and external table types.

  • Removed checkBlockRules() call from ExplainCommand.java with clarifying comment
  • Updated existing SQL block rule test to verify EXPLAIN statements bypass validation
  • Added comprehensive external table tests for Hive, Paimon, and Iceberg catalogs covering all block rule types (partition_num, tablet_num, cardinality, and regex)

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/ExplainCommand.java Removed checkBlockRules() call with explanatory comment about why EXPLAIN statements should skip block rule validation
regression-test/suites/sql_block_rule_p0/test_sql_block_rule.groovy Changed test to verify EXPLAIN statements are not blocked by regex SQL block rules
regression-test/suites/external_table_p0/paimon/test_paimon_sql_block_rule.groovy New comprehensive test suite for Paimon external tables validating EXPLAIN bypasses all block rule types
regression-test/suites/external_table_p0/iceberg/test_iceberg_sql_block_rule.groovy New comprehensive test suite for Iceberg external tables validating EXPLAIN bypasses all block rule types
regression-test/suites/external_table_p0/hive/test_external_sql_block_rule.groovy Extended existing Hive test to verify EXPLAIN bypasses block rules for user-specific and global rules

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

// Test EXPLAIN should not be blocked by regex rule
sql """EXPLAIN SELECT * FROM parquet_partition_table limit 10;"""

sql """drop sql_block_rule hive_global_regex_rule"""
Copy link

Copilot AI Dec 29, 2025

Choose a reason for hiding this comment

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

The test creates several users (external_block_user1, external_block_user2, external_block_user3) and SQL block rules (external_hive_partition, external_hive_partition2, external_hive_partition3) at the beginning of the test suite, but these resources are not cleaned up at the end of the test. This could cause issues for other tests or when re-running this test suite. Consider adding cleanup code before the closing brace to drop the users and rules.

Suggested change
sql """drop sql_block_rule hive_global_regex_rule"""
sql """drop sql_block_rule hive_global_regex_rule"""
// Cleanup users created for SQL block rule tests
sql """drop user if exists 'external_block_user1'"""
sql """drop user if exists 'external_block_user2'"""
sql """drop user if exists 'external_block_user3'"""
// Cleanup SQL block rules created at the beginning of the suite
sql """drop sql_block_rule if exists external_hive_partition"""
sql """drop sql_block_rule if exists external_hive_partition2"""
sql """drop sql_block_rule if exists external_hive_partition3"""

Copilot uses AI. Check for mistakes.
@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17656	4202	4038	4038
q2	2045	351	232	232
q3	10201	1296	730	730
q4	10245	893	328	328
q5	7540	2097	1967	1967
q6	198	168	136	136
q7	930	797	659	659
q8	9298	1360	1217	1217
q9	6891	5190	5247	5190
q10	6812	1804	1426	1426
q11	506	303	279	279
q12	748	744	589	589
q13	17792	3837	3074	3074
q14	299	293	276	276
q15	586	510	509	509
q16	677	682	619	619
q17	711	746	617	617
q18	7667	7759	8124	7759
q19	1217	1120	660	660
q20	422	386	260	260
q21	4482	4258	4123	4123
q22	1181	1097	996	996
Total cold run time: 108104 ms
Total hot run time: 35684 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4367	4263	4289	4263
q2	347	406	337	337
q3	2470	2963	2378	2378
q4	1406	1742	1438	1438
q5	4392	4351	4426	4351
q6	227	173	131	131
q7	1949	1904	1740	1740
q8	2497	2222	2450	2222
q9	7048	7353	7100	7100
q10	2481	2612	2311	2311
q11	554	489	438	438
q12	667	717	595	595
q13	3325	3751	3051	3051
q14	287	290	261	261
q15	515	490	480	480
q16	637	643	598	598
q17	1070	1240	1348	1240
q18	7389	7467	7277	7277
q19	841	832	842	832
q20	1911	1978	1781	1781
q21	4549	4321	4209	4209
q22	1077	1051	1014	1014
Total cold run time: 50006 ms
Total hot run time: 48047 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 174379 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 76f8d82139204c1bd1792c6860f20c6216ea07e4, data reload: false

query5	4872	584	454	454
query6	352	228	213	213
query7	4225	463	268	268
query8	344	254	247	247
query9	8795	2618	2623	2618
query10	526	391	315	315
query11	15312	14974	14740	14740
query12	191	115	112	112
query13	1284	487	406	406
query14	6455	2953	2719	2719
query14_1	2593	2588	2594	2588
query15	201	190	172	172
query16	994	464	431	431
query17	1071	702	600	600
query18	2595	447	348	348
query19	232	227	207	207
query20	124	117	115	115
query21	218	142	120	120
query22	3892	4201	4062	4062
query23	16074	15690	15648	15648
query23_1	15447	15454	15447	15447
query24	7326	1606	1211	1211
query24_1	1202	1219	1203	1203
query25	567	502	431	431
query26	1254	275	157	157
query27	2766	464	292	292
query28	4501	2205	2185	2185
query29	761	591	421	421
query30	311	238	207	207
query31	789	630	559	559
query32	75	66	62	62
query33	514	339	273	273
query34	875	882	526	526
query35	740	769	692	692
query36	868	893	803	803
query37	129	88	72	72
query38	2728	2739	2622	2622
query39	768	747	735	735
query39_1	689	700	718	700
query40	215	128	112	112
query41	65	61	62	61
query42	102	99	99	99
query43	452	442	423	423
query44	1322	761	746	746
query45	186	185	171	171
query46	875	957	615	615
query47	1391	1467	1410	1410
query48	309	319	243	243
query49	618	404	320	320
query50	660	272	214	214
query51	3791	3755	3701	3701
query52	100	108	99	99
query53	287	321	273	273
query54	285	258	231	231
query55	80	77	74	74
query56	300	284	291	284
query57	1058	1045	964	964
query58	258	246	243	243
query59	2142	2131	2116	2116
query60	326	307	302	302
query61	160	162	160	160
query62	407	377	312	312
query63	304	260	273	260
query64	4885	1300	979	979
query65	3780	3766	3668	3668
query66	1394	426	308	308
query67	15135	15399	15082	15082
query68	8229	1009	729	729
query69	500	349	303	303
query70	1039	970	877	877
query71	369	293	270	270
query72	6199	4686	5069	4686
query73	704	634	311	311
query74	8814	8746	8508	8508
query75	2888	2867	2502	2502
query76	3910	1042	656	656
query77	553	366	271	271
query78	9720	9777	9180	9180
query79	1577	924	606	606
query80	681	580	486	486
query81	510	271	233	233
query82	218	147	110	110
query83	264	250	242	242
query84	261	113	99	99
query85	906	523	460	460
query86	383	296	330	296
query87	2821	2846	2738	2738
query88	3675	2297	2277	2277
query89	384	365	334	334
query90	2170	151	147	147
query91	180	163	139	139
query92	79	62	60	60
query93	2270	942	559	559
query94	565	321	283	283
query95	576	316	304	304
query96	590	487	212	212
query97	2308	2372	2241	2241
query98	250	211	197	197
query99	591	583	502	502
Total cold run time: 256567 ms
Total hot run time: 174379 ms

@doris-robot
Copy link

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

query1	0.06	0.05	0.05
query2	0.10	0.05	0.05
query3	0.25	0.09	0.08
query4	1.61	0.12	0.11
query5	0.26	0.26	0.26
query6	1.14	0.65	0.65
query7	0.03	0.02	0.03
query8	0.05	0.04	0.05
query9	0.55	0.51	0.51
query10	0.54	0.55	0.55
query11	0.15	0.11	0.12
query12	0.16	0.13	0.13
query13	0.61	0.59	0.59
query14	0.99	0.98	0.98
query15	0.79	0.79	0.80
query16	0.39	0.43	0.40
query17	1.08	1.07	1.06
query18	0.23	0.22	0.21
query19	1.92	1.84	1.78
query20	0.02	0.02	0.01
query21	15.43	0.31	0.14
query22	4.57	0.06	0.05
query23	16.03	0.29	0.10
query24	2.07	0.31	0.40
query25	0.09	0.06	0.08
query26	0.14	0.13	0.14
query27	0.08	0.11	0.05
query28	4.24	1.06	0.89
query29	12.62	3.96	3.15
query30	0.29	0.14	0.11
query31	2.81	0.61	0.38
query32	3.23	0.55	0.46
query33	2.99	2.97	3.01
query34	16.60	5.14	4.43
query35	4.48	4.46	4.45
query36	0.67	0.50	0.49
query37	0.11	0.07	0.07
query38	0.08	0.04	0.04
query39	0.04	0.04	0.03
query40	0.18	0.13	0.13
query41	0.08	0.03	0.03
query42	0.04	0.03	0.03
query43	0.04	0.04	0.03
Total cold run time: 97.84 s
Total hot run time: 26.91 s

@hello-stephen
Copy link
Contributor

FE Regression Coverage Report

Increment line coverage 100% (0/0) 🎉
Increment coverage report
Complete coverage report

@xylaaaaa
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17619	4249	4059	4059
q2	2049	369	240	240
q3	10180	1390	754	754
q4	10227	866	334	334
q5	7524	2172	1913	1913
q6	191	173	139	139
q7	948	813	664	664
q8	9275	1448	1126	1126
q9	6737	5163	5099	5099
q10	6763	1817	1443	1443
q11	502	311	291	291
q12	684	766	589	589
q13	17787	3874	3109	3109
q14	292	298	281	281
q15	570	513	502	502
q16	697	674	635	635
q17	713	749	690	690
q18	7743	7432	7149	7149
q19	918	955	632	632
q20	416	387	259	259
q21	4246	3965	3378	3378
q22	1064	1030	972	972
Total cold run time: 107145 ms
Total hot run time: 34258 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4102	4040	4077	4040
q2	330	402	319	319
q3	2079	2604	2247	2247
q4	1333	1782	1294	1294
q5	4027	4032	4943	4032
q6	249	177	138	138
q7	2039	1991	1797	1797
q8	2600	2467	2410	2410
q9	7227	7051	7137	7051
q10	2571	2769	2282	2282
q11	545	503	476	476
q12	752	781	645	645
q13	3763	4102	3382	3382
q14	309	314	287	287
q15	540	491	520	491
q16	667	704	644	644
q17	1154	1287	1421	1287
q18	8189	7985	7682	7682
q19	970	926	943	926
q20	2021	2082	1992	1992
q21	4899	4440	4099	4099
q22	1110	1055	1004	1004
Total cold run time: 51476 ms
Total hot run time: 48525 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 175275 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 39780c5971310796907e0c2c7304e86143ad0a27, data reload: false

query5	4395	559	455	455
query6	324	263	214	214
query7	4220	457	273	273
query8	346	253	244	244
query9	8784	2634	2615	2615
query10	530	372	346	346
query11	15217	15072	14794	14794
query12	185	119	115	115
query13	1266	498	408	408
query14	6157	3010	2737	2737
query14_1	2684	2635	2649	2635
query15	206	194	181	181
query16	1007	478	470	470
query17	1074	662	542	542
query18	2421	433	331	331
query19	226	209	190	190
query20	129	130	123	123
query21	216	140	123	123
query22	3794	3844	3868	3844
query23	15976	15534	15161	15161
query23_1	15249	15474	15372	15372
query24	7335	1566	1207	1207
query24_1	1215	1194	1217	1194
query25	535	448	383	383
query26	1252	262	152	152
query27	2785	471	292	292
query28	4511	2201	2179	2179
query29	763	522	446	446
query30	309	236	210	210
query31	773	648	551	551
query32	81	66	65	65
query33	533	340	288	288
query34	915	920	541	541
query35	764	781	703	703
query36	850	877	812	812
query37	130	91	82	82
query38	2769	2699	2656	2656
query39	789	745	736	736
query39_1	694	722	703	703
query40	225	134	116	116
query41	69	62	65	62
query42	103	105	105	105
query43	451	468	414	414
query44	1400	761	764	761
query45	191	179	176	176
query46	887	985	627	627
query47	1355	1455	1337	1337
query48	308	330	244	244
query49	608	409	346	346
query50	648	282	206	206
query51	3783	3806	3736	3736
query52	119	110	100	100
query53	301	331	269	269
query54	289	254	258	254
query55	82	72	74	72
query56	286	299	309	299
query57	1024	1005	942	942
query58	272	260	257	257
query59	2020	2190	2035	2035
query60	322	319	309	309
query61	166	166	160	160
query62	387	370	312	312
query63	300	264	272	264
query64	4931	1312	1007	1007
query65	3742	3727	3613	3613
query66	1462	440	327	327
query67	15249	15797	15331	15331
query68	2736	1055	780	780
query69	461	365	326	326
query70	990	970	937	937
query71	331	305	288	288
query72	6365	5018	5033	5018
query73	512	593	313	313
query74	8766	8749	8600	8600
query75	2838	2874	2537	2537
query76	2901	1077	664	664
query77	347	381	279	279
query78	9711	9958	9197	9197
query79	1114	969	631	631
query80	1302	651	487	487
query81	546	263	228	228
query82	1253	147	113	113
query83	330	259	242	242
query84	257	124	104	104
query85	942	516	451	451
query86	406	325	327	325
query87	2903	2863	2784	2784
query88	3393	2324	2300	2300
query89	401	369	348	348
query90	2014	169	155	155
query91	172	172	142	142
query92	67	71	67	67
query93	970	921	558	558
query94	655	344	289	289
query95	597	338	362	338
query96	599	486	214	214
query97	2329	2396	2282	2282
query98	234	205	197	197
query99	568	574	514	514
Total cold run time: 248705 ms
Total hot run time: 175275 ms

@doris-robot
Copy link

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

query1	0.05	0.05	0.05
query2	0.10	0.04	0.04
query3	0.26	0.08	0.08
query4	1.61	0.12	0.11
query5	0.27	0.25	0.25
query6	1.14	0.67	0.64
query7	0.04	0.03	0.02
query8	0.05	0.04	0.05
query9	0.58	0.50	0.49
query10	0.56	0.55	0.55
query11	0.15	0.11	0.12
query12	0.17	0.13	0.13
query13	0.61	0.60	0.61
query14	0.99	0.96	0.98
query15	0.80	0.78	0.82
query16	0.40	0.40	0.39
query17	1.05	1.06	1.03
query18	0.23	0.21	0.22
query19	1.93	1.81	1.86
query20	0.02	0.01	0.01
query21	15.43	0.30	0.14
query22	4.79	0.05	0.05
query23	15.95	0.29	0.10
query24	0.96	0.64	0.17
query25	0.09	0.10	0.06
query26	0.14	0.13	0.13
query27	0.05	0.07	0.08
query28	3.76	1.07	0.88
query29	12.56	3.92	3.16
query30	0.28	0.13	0.14
query31	2.82	0.63	0.37
query32	3.24	0.55	0.47
query33	2.98	3.01	3.03
query34	16.79	5.07	4.46
query35	4.51	4.52	4.50
query36	0.66	0.50	0.48
query37	0.11	0.06	0.06
query38	0.07	0.04	0.04
query39	0.04	0.02	0.03
query40	0.17	0.15	0.13
query41	0.09	0.04	0.03
query42	0.05	0.03	0.03
query43	0.04	0.03	0.04
Total cold run time: 96.59 s
Total hot run time: 26.82 s

@hello-stephen
Copy link
Contributor

FE UT Coverage Report

Increment line coverage 100% (0/0) 🎉
Increment coverage report
Complete coverage report

@xylaaaaa
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17678	4189	4029	4029
q2	2005	343	229	229
q3	10225	1291	734	734
q4	10218	813	319	319
q5	7527	2153	1931	1931
q6	188	174	147	147
q7	947	780	659	659
q8	9271	1402	1153	1153
q9	6740	5137	5150	5137
q10	6837	1840	1425	1425
q11	495	302	299	299
q12	665	749	585	585
q13	17770	3824	3104	3104
q14	281	285	274	274
q15	580	510	509	509
q16	717	680	642	642
q17	700	725	633	633
q18	7765	7381	7926	7381
q19	1488	1020	634	634
q20	440	397	257	257
q21	4543	4178	4064	4064
q22	1094	1119	1034	1034
Total cold run time: 108174 ms
Total hot run time: 35179 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4293	4261	4265	4261
q2	327	386	343	343
q3	2284	2951	2540	2540
q4	1414	1874	1426	1426
q5	4448	4251	4282	4251
q6	216	171	128	128
q7	1972	1914	1734	1734
q8	2609	2397	2390	2390
q9	7059	7166	6753	6753
q10	2260	2502	2096	2096
q11	543	449	427	427
q12	671	704	577	577
q13	3384	3797	3099	3099
q14	264	277	271	271
q15	530	483	487	483
q16	606	651	633	633
q17	1083	1249	1334	1249
q18	7402	7331	7238	7238
q19	872	869	877	869
q20	1910	1942	1768	1768
q21	4487	4360	4219	4219
q22	1068	1049	978	978
Total cold run time: 49702 ms
Total hot run time: 47733 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 174142 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 59285f9da61135aa1966204f9b389ac564cb1333, data reload: false

query5	4810	564	428	428
query6	334	230	218	218
query7	4237	469	281	281
query8	340	257	241	241
query9	8792	2616	2614	2614
query10	515	395	324	324
query11	15114	15082	14873	14873
query12	175	120	116	116
query13	1262	510	396	396
query14	6376	2956	2705	2705
query14_1	2661	2654	2680	2654
query15	210	196	176	176
query16	983	491	461	461
query17	1102	651	560	560
query18	2533	434	337	337
query19	225	216	182	182
query20	120	118	115	115
query21	216	137	114	114
query22	3888	4008	4075	4008
query23	15930	15516	15449	15449
query23_1	15401	15271	15408	15271
query24	7357	1599	1194	1194
query24_1	1229	1207	1212	1207
query25	531	441	391	391
query26	1233	261	158	158
query27	2775	445	298	298
query28	4549	2188	2167	2167
query29	756	555	424	424
query30	307	240	215	215
query31	787	625	547	547
query32	79	68	64	64
query33	529	330	280	280
query34	904	901	532	532
query35	772	804	704	704
query36	892	893	814	814
query37	126	89	79	79
query38	2703	2716	2644	2644
query39	768	749	737	737
query39_1	706	713	701	701
query40	215	130	115	115
query41	64	62	64	62
query42	103	103	103	103
query43	439	461	425	425
query44	1358	752	757	752
query45	188	181	174	174
query46	867	987	617	617
query47	1456	1380	1403	1380
query48	313	321	259	259
query49	606	418	332	332
query50	644	272	216	216
query51	3750	3741	3765	3741
query52	100	110	94	94
query53	301	334	271	271
query54	295	254	251	251
query55	79	87	70	70
query56	291	295	302	295
query57	1011	992	920	920
query58	260	263	256	256
query59	2063	2200	2046	2046
query60	332	334	305	305
query61	161	166	169	166
query62	398	352	339	339
query63	300	267	281	267
query64	5082	1451	1103	1103
query65	3759	3728	3764	3728
query66	1440	447	349	349
query67	15093	15076	14564	14564
query68	3605	1080	757	757
query69	488	358	315	315
query70	1065	962	924	924
query71	369	301	279	279
query72	6416	4778	4985	4778
query73	715	627	306	306
query74	8815	8742	8613	8613
query75	2897	2886	2512	2512
query76	3838	1041	653	653
query77	503	377	280	280
query78	9784	9689	9150	9150
query79	1600	933	586	586
query80	677	578	489	489
query81	512	264	227	227
query82	375	138	107	107
query83	274	260	234	234
query84	257	123	107	107
query85	906	512	472	472
query86	407	329	320	320
query87	2904	2856	2751	2751
query88	3800	2269	2256	2256
query89	381	371	336	336
query90	2187	159	158	158
query91	175	167	141	141
query92	83	69	65	65
query93	2464	917	555	555
query94	566	317	282	282
query95	589	329	352	329
query96	601	468	206	206
query97	2275	2356	2271	2271
query98	242	212	193	193
query99	605	579	488	488
Total cold run time: 252645 ms
Total hot run time: 174142 ms

@doris-robot
Copy link

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

query1	0.05	0.04	0.04
query2	0.09	0.05	0.05
query3	0.25	0.08	0.08
query4	1.61	0.11	0.10
query5	0.27	0.26	0.26
query6	1.14	0.66	0.64
query7	0.03	0.03	0.02
query8	0.05	0.04	0.04
query9	0.57	0.51	0.48
query10	0.54	0.55	0.54
query11	0.15	0.11	0.11
query12	0.16	0.13	0.13
query13	0.63	0.60	0.59
query14	1.01	0.99	0.97
query15	0.82	0.78	0.80
query16	0.40	0.37	0.43
query17	1.06	1.05	1.05
query18	0.23	0.21	0.21
query19	1.89	1.88	1.86
query20	0.02	0.01	0.00
query21	15.44	0.30	0.13
query22	4.75	0.05	0.04
query23	15.92	0.28	0.11
query24	1.16	0.66	0.73
query25	0.09	0.10	0.06
query26	0.15	0.15	0.13
query27	0.07	0.06	0.06
query28	5.61	1.06	0.88
query29	12.63	3.87	3.14
query30	0.28	0.13	0.12
query31	2.81	0.60	0.37
query32	3.23	0.55	0.46
query33	2.95	2.96	3.08
query34	16.90	5.11	4.47
query35	4.46	4.46	4.49
query36	0.66	0.49	0.49
query37	0.11	0.07	0.07
query38	0.08	0.03	0.04
query39	0.04	0.03	0.03
query40	0.16	0.15	0.12
query41	0.09	0.03	0.03
query42	0.04	0.03	0.03
query43	0.04	0.04	0.03
Total cold run time: 98.64 s
Total hot run time: 27.2 s

@xylaaaaa
Copy link
Contributor Author

run buildall

@hello-stephen
Copy link
Contributor

FE Regression Coverage Report

Increment line coverage 100% (0/0) 🎉
Increment coverage report
Complete coverage report

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17826	4191	4044	4044
q2	2030	347	239	239
q3	10206	1313	750	750
q4	10203	822	318	318
q5	7539	2158	1940	1940
q6	187	178	136	136
q7	945	803	673	673
q8	9255	1471	1179	1179
q9	6750	5100	5191	5100
q10	6817	1789	1405	1405
q11	512	310	307	307
q12	698	740	579	579
q13	17822	3802	3069	3069
q14	290	296	268	268
q15	599	511	506	506
q16	699	687	631	631
q17	709	736	640	640
q18	7935	7728	7950	7728
q19	1138	1019	661	661
q20	442	380	254	254
q21	4584	4301	3797	3797
q22	1174	1083	1084	1083
Total cold run time: 108360 ms
Total hot run time: 35307 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4220	4220	4259	4220
q2	333	393	325	325
q3	2369	2960	2368	2368
q4	1433	1857	1450	1450
q5	4467	4240	4332	4240
q6	211	171	126	126
q7	1997	1884	1997	1884
q8	2505	2343	2307	2307
q9	7076	7143	6939	6939
q10	2356	2518	2131	2131
q11	536	462	422	422
q12	648	701	565	565
q13	3339	3807	3120	3120
q14	262	284	254	254
q15	522	497	494	494
q16	616	680	620	620
q17	1087	1262	1300	1262
q18	7385	7321	7230	7230
q19	852	856	891	856
q20	1890	1962	1781	1781
q21	4522	4306	4082	4082
q22	1108	1062	990	990
Total cold run time: 49734 ms
Total hot run time: 47666 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 174496 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 0849dda8c95ad2ba7d3ddfd32614e4aede2f21e3, data reload: false

query5	4434	606	442	442
query6	343	237	222	222
query7	4210	467	268	268
query8	343	254	244	244
query9	8739	2593	2623	2593
query10	517	381	319	319
query11	15264	15085	15088	15085
query12	198	119	114	114
query13	1271	493	397	397
query14	6205	2976	2733	2733
query14_1	2668	2628	2612	2612
query15	209	196	181	181
query16	1002	480	365	365
query17	1115	703	595	595
query18	2529	438	360	360
query19	232	222	217	217
query20	127	121	118	118
query21	217	144	121	121
query22	4156	4068	4011	4011
query23	15961	15833	15166	15166
query23_1	15420	15601	15396	15396
query24	7417	1598	1211	1211
query24_1	1242	1224	1239	1224
query25	591	475	439	439
query26	1269	272	170	170
query27	2758	472	302	302
query28	4487	2187	2207	2187
query29	751	513	423	423
query30	314	235	216	216
query31	833	626	562	562
query32	77	65	64	64
query33	542	324	282	282
query34	892	879	536	536
query35	741	782	700	700
query36	855	872	853	853
query37	128	91	75	75
query38	2730	2702	2681	2681
query39	783	730	738	730
query39_1	698	711	706	706
query40	228	130	116	116
query41	68	101	62	62
query42	104	106	110	106
query43	443	475	415	415
query44	1377	764	753	753
query45	190	180	173	173
query46	889	975	629	629
query47	1423	1445	1380	1380
query48	322	337	255	255
query49	630	418	324	324
query50	650	291	203	203
query51	3782	3783	3781	3781
query52	104	106	93	93
query53	297	334	273	273
query54	286	258	239	239
query55	79	77	72	72
query56	288	288	283	283
query57	1024	1022	888	888
query58	263	244	243	243
query59	2071	2254	2108	2108
query60	323	315	290	290
query61	168	154	156	154
query62	402	351	320	320
query63	301	267	276	267
query64	4909	1311	1020	1020
query65	3806	3733	3708	3708
query66	1439	429	310	310
query67	14944	14658	15669	14658
query68	7178	1017	728	728
query69	503	344	309	309
query70	995	954	930	930
query71	356	328	284	284
query72	5964	4664	4803	4664
query73	678	580	314	314
query74	8848	8702	8591	8591
query75	2887	2874	2538	2538
query76	3823	1062	675	675
query77	528	385	290	290
query78	9764	9940	9212	9212
query79	1689	866	611	611
query80	673	592	480	480
query81	517	259	230	230
query82	217	150	114	114
query83	272	263	240	240
query84	264	115	107	107
query85	931	509	456	456
query86	387	325	317	317
query87	2827	2907	2759	2759
query88	3236	2275	2304	2275
query89	386	331	342	331
query90	2011	153	144	144
query91	173	163	140	140
query92	77	64	66	64
query93	1100	907	573	573
query94	554	342	307	307
query95	582	377	301	301
query96	579	465	209	209
query97	2313	2358	2264	2264
query98	226	196	192	192
query99	560	588	503	503
Total cold run time: 253724 ms
Total hot run time: 174496 ms

@doris-robot
Copy link

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

query1	0.06	0.05	0.10
query2	0.11	0.05	0.05
query3	0.35	0.09	0.08
query4	1.61	0.12	0.11
query5	0.27	0.25	0.26
query6	1.16	0.68	0.72
query7	0.03	0.03	0.03
query8	0.06	0.04	0.05
query9	0.58	0.50	0.50
query10	0.55	0.53	0.55
query11	0.15	0.10	0.10
query12	0.16	0.12	0.14
query13	0.63	0.59	0.60
query14	1.00	1.04	1.12
query15	0.87	0.86	0.78
query16	0.40	0.40	0.42
query17	1.12	1.14	1.08
query18	0.25	0.21	0.22
query19	2.01	1.84	2.02
query20	0.01	0.02	0.01
query21	15.39	0.27	0.14
query22	4.74	0.06	0.05
query23	15.92	0.30	0.10
query24	1.38	0.71	0.25
query25	0.12	0.08	0.06
query26	0.14	0.14	0.12
query27	0.06	0.05	0.05
query28	3.86	1.05	0.88
query29	12.59	4.01	3.24
query30	0.28	0.13	0.13
query31	2.82	0.61	0.38
query32	3.22	0.54	0.46
query33	3.02	2.96	3.00
query34	16.82	5.13	4.45
query35	4.46	4.45	4.43
query36	0.66	0.50	0.49
query37	0.10	0.06	0.07
query38	0.07	0.05	0.04
query39	0.05	0.03	0.03
query40	0.17	0.14	0.13
query41	0.08	0.04	0.03
query42	0.04	0.02	0.02
query43	0.04	0.04	0.04
Total cold run time: 97.41 s
Total hot run time: 27.03 s

@morningman
Copy link
Contributor

run buildall

Copy link
Contributor

@morningman morningman left a comment

Choose a reason for hiding this comment

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

LGTM

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Dec 31, 2025
@github-actions
Copy link
Contributor

PR approved by at least one committer and no changes requested.

@github-actions
Copy link
Contributor

PR approved by anyone and no changes requested.

@morningman
Copy link
Contributor

run external

@morningman
Copy link
Contributor

run cloud_p0

@morningman
Copy link
Contributor

run vault_p0

@morningman morningman merged commit 32ef364 into apache:master Dec 31, 2025
33 of 36 checks passed
github-actions bot pushed a commit that referenced this pull request Dec 31, 2025
…59445)

- Modified ExplainCommand.java to remove checkBlockRules() call
- EXPLAIN statements should not be blocked by SQL block rules
- Updated test_sql_block_rule.groovy to expect EXPLAIN not blocked
- Added comprehensive external table tests for Hive, Paimon, Iceberg
- All tests verify EXPLAIN bypasses block rules for partition_num,
tablet_num, cardinality, and regex rules
yiguolei pushed a commit that referenced this pull request Jan 5, 2026
…statements #59445 (#59509)

Cherry-picked from #59445

Co-authored-by: Chenjunwei <138805230+xylaaaaa@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. dev/4.0.3-merged reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants