Skip to content

Conversation

@zddr
Copy link
Contributor

@zddr zddr commented Jul 30, 2025

What problem does this PR solve?

The LDAP user does not exist in Doris, so a "user does not exist" prompt will appear when executing the "show grants" command.

It is a reasonable requirement for users to check their own permissions after logging in. Therefore, this PR enables LDAP users to view their own permissions when executing show grants themselves. However, others are still unable to do so, whether by specifying a particular username or checking all users.

Issue Number: close #xxx

Related PR: #xxx

Problem Summary:
support ldap user show grants

Release note

support ldap user show grants

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

@Thearas
Copy link
Contributor

Thearas commented Jul 30, 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?

@zddr
Copy link
Contributor Author

zddr commented Jul 30, 2025

run buildall

@hello-stephen
Copy link
Contributor

FE UT Coverage Report

Increment line coverage 80.00% (4/5) 🎉
Increment coverage report
Complete coverage report

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17769	5748	5523	5523
q2	1963	284	194	194
q3	10649	1398	703	703
q4	10366	1006	505	505
q5	10032	2319	2322	2319
q6	211	166	136	136
q7	868	762	629	629
q8	9315	1291	1097	1097
q9	7325	5096	5135	5096
q10	6948	2338	1979	1979
q11	479	283	267	267
q12	378	355	234	234
q13	17864	3462	3010	3010
q14	231	236	215	215
q15	551	463	462	462
q16	409	435	374	374
q17	557	845	355	355
q18	7983	7062	7039	7039
q19	1558	982	526	526
q20	317	318	207	207
q21	3500	2419	2204	2204
q22	1033	1079	1015	1015
Total cold run time: 110306 ms
Total hot run time: 34089 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5974	5831	5815	5815
q2	271	310	215	215
q3	2106	2579	2212	2212
q4	1324	1722	1402	1402
q5	4577	4333	4416	4333
q6	218	177	138	138
q7	2054	2006	1801	1801
q8	2528	2481	2539	2481
q9	7538	7300	7715	7300
q10	3173	3343	2920	2920
q11	570	497	509	497
q12	854	806	607	607
q13	3313	3552	3259	3259
q14	317	351	385	351
q15	528	453	439	439
q16	438	558	462	462
q17	1158	1556	1389	1389
q18	7858	7942	7949	7942
q19	14761	848	857	848
q20	2781	1842	1732	1732
q21	9936	4291	4241	4241
q22	1062	991	982	982
Total cold run time: 73339 ms
Total hot run time: 51366 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 171665 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 635b4261b0301f8509772497c3b055552b2ab3bb, data reload: false

============================================
query1	1046	402	406	402
query2	6525	1765	1686	1686
query3	6739	221	219	219
query4	26862	23816	22977	22977
query5	4401	633	509	509
query6	323	264	210	210
query7	4637	513	294	294
query8	278	231	216	216
query9	8594	3153	3147	3147
query10	450	344	295	295
query11	15896	14960	14840	14840
query12	179	133	134	133
query13	1665	555	400	400
query14	9448	7776	7646	7646
query15	214	201	173	173
query16	7169	649	483	483
query17	1202	765	607	607
query18	2145	441	327	327
query19	231	215	213	213
query20	155	143	142	142
query21	220	121	111	111
query22	4051	4045	4040	4040
query23	34695	34225	34506	34225
query24	7951	2358	2401	2358
query25	566	511	436	436
query26	1227	293	164	164
query27	2679	498	353	353
query28	4411	2279	2268	2268
query29	824	621	526	526
query30	305	239	210	210
query31	927	813	732	732
query32	88	80	79	79
query33	570	431	375	375
query34	846	850	533	533
query35	799	830	769	769
query36	1037	1052	942	942
query37	138	107	92	92
query38	4019	4042	3950	3950
query39	1417	1387	1381	1381
query40	241	140	135	135
query41	64	57	56	56
query42	141	129	128	128
query43	508	507	458	458
query44	1438	870	909	870
query45	204	199	186	186
query46	931	1065	676	676
query47	1802	1836	1785	1785
query48	398	420	328	328
query49	732	514	414	414
query50	655	706	404	404
query51	4173	4197	4244	4197
query52	134	136	113	113
query53	258	290	209	209
query54	659	661	555	555
query55	90	87	87	87
query56	374	356	351	351
query57	1218	1261	1119	1119
query58	342	334	332	332
query59	2580	2641	2480	2480
query60	407	393	396	393
query61	151	123	120	120
query62	796	719	660	660
query63	249	211	209	209
query64	4332	1106	774	774
query65	4281	4143	4145	4143
query66	1139	464	317	317
query67	query68	17206	868	896	868
query69	1158	286	280	280
query70	1524	1121	1111	1111
query71	695	318	321	318
query72	9330	2293	2109	2109
query73	3448	686	350	350
query74	9067	9106	8763	8763
query75	7651	3166	2650	2650
query76	8855	1214	778	778
query77	1227	408	326	326
query78	9613	10204	8955	8955
query79	14190	608	572	572
query80	1184	583	501	501
query81	542	269	240	240
query82	350	155	119	119
query83	383	284	280	280
query84	294	96	81	81
query85	1017	382	330	330
query86	358	333	305	305
query87	4317	4241	4198	4198
query88	3520	2203	2218	2203
query89	479	376	313	313
query90	2581	223	225	223
query91	146	140	113	113
query92	83	70	69	69
query93	4297	989	667	667
query94	977	400	277	277
query95	411	337	324	324
query96	498	596	279	279
query97	2718	2733	2621	2621
query98	267	233	224	224
query99	1489	1429	1256	1256
Total cold run time: 303101 ms
Total hot run time: 171665 ms

@doris-robot
Copy link

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

query1	0.04	0.04	0.03
query2	0.08	0.05	0.04
query3	0.25	0.07	0.08
query4	1.62	0.11	0.10
query5	0.43	0.42	0.41
query6	1.17	0.67	0.67
query7	0.02	0.02	0.01
query8	0.05	0.04	0.04
query9	0.55	0.48	0.47
query10	0.54	0.54	0.52
query11	0.16	0.10	0.10
query12	0.14	0.11	0.11
query13	0.65	0.66	0.63
query14	0.89	1.14	1.10
query15	0.91	0.87	0.88
query16	0.38	0.39	0.39
query17	1.02	1.06	1.05
query18	0.22	0.21	0.20
query19	2.00	1.81	1.97
query20	0.01	0.01	0.01
query21	15.39	0.87	0.55
query22	0.79	1.19	0.71
query23	14.94	1.20	0.62
query24	6.21	1.47	1.35
query25	0.49	0.24	0.12
query26	0.56	0.16	0.14
query27	0.06	0.05	0.05
query28	10.11	0.83	0.45
query29	12.60	3.84	3.31
query30	3.05	3.01	2.95
query31	2.81	0.57	0.40
query32	3.25	0.57	0.49
query33	3.05	3.16	3.24
query34	15.92	5.40	4.87
query35	4.90	4.94	5.01
query36	0.69	0.52	0.52
query37	0.10	0.07	0.07
query38	0.06	0.05	0.05
query39	0.03	0.03	0.03
query40	0.17	0.13	0.14
query41	0.09	0.03	0.03
query42	0.04	0.03	0.02
query43	0.04	0.04	0.04
Total cold run time: 106.48 s
Total hot run time: 33.63 s

@zddr
Copy link
Contributor Author

zddr commented Jul 31, 2025

run p0

@zddr
Copy link
Contributor Author

zddr commented Jul 31, 2025

run cloud_p0

@zddr
Copy link
Contributor Author

zddr commented Aug 1, 2025

run buildall

@hello-stephen
Copy link
Contributor

FE UT Coverage Report

Increment line coverage 80.00% (4/5) 🎉
Increment coverage report
Complete coverage report

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17729	5769	5448	5448
q2	1944	276	183	183
q3	10310	1298	696	696
q4	10265	1124	542	542
q5	9347	2268	2340	2268
q6	240	168	131	131
q7	869	757	617	617
q8	9318	1326	985	985
q9	6964	5572	5137	5137
q10	6956	2397	1986	1986
q11	459	278	257	257
q12	347	362	229	229
q13	17807	3444	2963	2963
q14	237	243	243	243
q15	568	487	480	480
q16	415	453	383	383
q17	559	849	355	355
q18	7361	7066	6914	6914
q19	1231	976	536	536
q20	321	317	210	210
q21	2791	3013	2326	2326
q22	1069	1062	1000	1000
Total cold run time: 107107 ms
Total hot run time: 33889 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5881	5754	5788	5754
q2	229	313	214	214
q3	2109	2574	2237	2237
q4	1331	1735	1311	1311
q5	4409	4551	4430	4430
q6	220	177	131	131
q7	2006	1879	1784	1784
q8	2554	2551	2472	2472
q9	7312	7189	7346	7189
q10	3184	3353	3011	3011
q11	535	501	487	487
q12	723	790	616	616
q13	3376	3849	3107	3107
q14	340	328	307	307
q15	488	459	504	459
q16	521	506	546	506
q17	1226	1663	1387	1387
q18	11565	7826	7753	7753
q19	5143	1016	1024	1016
q20	1902	2062	1859	1859
q21	13717	4331	4294	4294
q22	1018	1031	991	991
Total cold run time: 69789 ms
Total hot run time: 51315 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 173214 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 635b4261b0301f8509772497c3b055552b2ab3bb, data reload: false

============================================
query1	1024	397	429	397
query2	6520	1869	1713	1713
query3	6743	222	215	215
query4	26959	23985	23376	23376
query5	4329	641	544	544
query6	337	244	244	244
query7	4645	527	304	304
query8	278	259	224	224
query9	8594	3182	3215	3182
query10	494	338	296	296
query11	15965	14998	15224	14998
query12	201	143	135	135
query13	1669	572	424	424
query14	11767	7752	7808	7752
query15	269	190	171	171
query16	7848	722	501	501
query17	1623	848	605	605
query18	2091	427	310	310
query19	292	206	186	186
query20	146	143	169	143
query21	224	126	108	108
query22	3979	4142	3901	3901
query23	34443	34125	34284	34125
query24	7364	2391	2432	2391
query25	527	511	434	434
query26	838	296	161	161
query27	2519	506	350	350
query28	4233	2368	2359	2359
query29	685	592	492	492
query30	301	238	201	201
query31	895	795	695	695
query32	87	75	78	75
query33	583	413	368	368
query34	829	875	521	521
query35	813	811	731	731
query36	1044	1041	934	934
query37	139	108	94	94
query38	4016	4062	4009	4009
query39	1455	1395	1375	1375
query40	237	139	140	139
query41	59	59	55	55
query42	140	123	123	123
query43	526	522	496	496
query44	1451	882	876	876
query45	200	207	194	194
query46	966	1083	679	679
query47	1792	1832	1736	1736
query48	401	422	318	318
query49	698	504	415	415
query50	694	747	414	414
query51	4297	4194	4138	4138
query52	126	133	114	114
query53	267	294	212	212
query54	659	630	556	556
query55	93	87	91	87
query56	360	356	346	346
query57	1220	1206	1160	1160
query58	344	325	336	325
query59	2660	2608	2497	2497
query60	400	393	389	389
query61	124	120	121	120
query62	796	717	640	640
query63	252	216	216	216
query64	3542	1093	772	772
query65	4329	4106	4150	4106
query66	910	459	328	328
query67	query68	17813	1032	950	950
query69	1023	279	280	279
query70	1432	1132	1120	1120
query71	724	316	320	316
query72	9203	2302	2393	2302
query73	3302	669	360	360
query74	9003	9010	8879	8879
query75	7635	3156	2625	2625
query76	8795	1209	828	828
query77	1169	400	331	331
query78	9416	9853	9434	9434
query79	14534	596	585	585
query80	2089	550	491	491
query81	558	276	241	241
query82	363	148	118	118
query83	386	277	266	266
query84	310	97	87	87
query85	1110	360	330	330
query86	372	327	314	314
query87	4352	4300	4276	4276
query88	3946	2193	2232	2193
query89	492	371	314	314
query90	2609	221	224	221
query91	142	139	155	139
query92	89	69	68	68
query93	4347	966	659	659
query94	1058	393	270	270
query95	406	323	319	319
query96	509	596	276	276
query97	2688	2720	2629	2629
query98	269	256	217	217
query99	1479	1429	1282	1282
Total cold run time: 305934 ms
Total hot run time: 173214 ms

@doris-robot
Copy link

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

query1	0.04	0.04	0.03
query2	0.08	0.04	0.04
query3	0.27	0.07	0.07
query4	1.61	0.11	0.11
query5	0.41	0.43	0.42
query6	1.18	0.67	0.67
query7	0.03	0.02	0.02
query8	0.05	0.04	0.03
query9	0.55	0.46	0.47
query10	0.53	0.53	0.53
query11	0.16	0.11	0.11
query12	0.14	0.10	0.10
query13	0.65	0.64	0.65
query14	0.94	1.10	1.07
query15	0.91	0.87	0.88
query16	0.39	0.39	0.39
query17	1.03	1.08	1.04
query18	0.23	0.20	0.20
query19	1.95	1.81	1.92
query20	0.02	0.01	0.02
query21	15.37	0.86	0.55
query22	0.77	1.39	0.76
query23	14.80	1.17	0.66
query24	6.91	0.66	0.82
query25	0.54	0.15	0.10
query26	0.63	0.15	0.13
query27	0.07	0.05	0.06
query28	9.40	0.82	0.43
query29	12.60	3.82	3.36
query30	3.10	3.01	2.96
query31	2.82	0.56	0.40
query32	3.23	0.57	0.49
query33	3.02	3.19	3.23
query34	16.05	5.27	4.95
query35	4.89	4.96	4.96
query36	0.70	0.52	0.50
query37	0.09	0.07	0.07
query38	0.06	0.05	0.04
query39	0.03	0.03	0.03
query40	0.18	0.14	0.14
query41	0.09	0.04	0.02
query42	0.03	0.03	0.03
query43	0.05	0.03	0.04
Total cold run time: 106.6 s
Total hot run time: 33.13 s

morrySnow
morrySnow previously approved these changes Aug 6, 2025
@morrySnow morrySnow added usercase Important user case type label dev/2.1.x dev/3.0.x dev/3.1.x labels Aug 6, 2025
@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Aug 6, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Aug 6, 2025

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

@github-actions
Copy link
Contributor

github-actions bot commented Aug 6, 2025

PR approved by anyone and no changes requested.

@github-actions github-actions bot removed the approved Indicates a PR has been approved by one committer. label Aug 7, 2025
@zddr
Copy link
Contributor Author

zddr commented Aug 7, 2025

run buildall

@zddr
Copy link
Contributor Author

zddr commented Aug 7, 2025

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17580	5379	5273	5273
q2	1949	276	189	189
q3	10305	1320	710	710
q4	10223	994	502	502
q5	7536	2327	2298	2298
q6	180	168	138	138
q7	904	757	619	619
q8	9316	1304	1057	1057
q9	6572	4984	5005	4984
q10	6875	2354	1999	1999
q11	463	277	259	259
q12	346	358	224	224
q13	17780	3485	2984	2984
q14	227	242	216	216
q15	526	463	462	462
q16	419	419	377	377
q17	559	817	368	368
q18	7346	7019	6918	6918
q19	2531	990	538	538
q20	319	302	214	214
q21	3435	3031	2266	2266
q22	1063	1057	1002	1002
Total cold run time: 106454 ms
Total hot run time: 33597 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5359	5442	5294	5294
q2	233	311	217	217
q3	2040	2558	2180	2180
q4	1294	1713	1329	1329
q5	4122	4263	4444	4263
q6	228	182	140	140
q7	1893	2003	1771	1771
q8	2471	2398	2547	2398
q9	7247	7229	7432	7229
q10	3265	3293	2931	2931
q11	583	517	477	477
q12	713	776	628	628
q13	3492	3677	3257	3257
q14	288	336	449	336
q15	504	447	452	447
q16	434	484	451	451
q17	1169	1479	1339	1339
q18	7728	7839	7706	7706
q19	12085	979	898	898
q20	3173	2109	1872	1872
q21	15634	4481	4502	4481
q22	1130	1028	1022	1022
Total cold run time: 75085 ms
Total hot run time: 50666 ms

@doris-robot
Copy link

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

============================================
query1	980	389	406	389
query2	6520	1693	1743	1693
query3	6738	223	220	220
query4	27055	23649	22936	22936
query5	4404	634	487	487
query6	320	231	219	219
query7	4621	507	288	288
query8	271	233	211	211
query9	8596	2978	2926	2926
query10	484	330	293	293
query11	15889	15014	14768	14768
query12	179	131	132	131
query13	1644	549	409	409
query14	8595	5837	5876	5837
query15	223	195	170	170
query16	7143	674	499	499
query17	962	779	639	639
query18	2006	448	332	332
query19	224	212	180	180
query20	150	138	141	138
query21	213	124	111	111
query22	3834	4001	3911	3911
query23	34303	34209	34065	34065
query24	5142	2388	2409	2388
query25	510	533	461	461
query26	719	289	163	163
query27	2265	497	353	353
query28	3011	2346	2331	2331
query29	652	661	478	478
query30	290	246	191	191
query31	850	765	681	681
query32	88	76	79	76
query33	450	415	371	371
query34	799	821	508	508
query35	796	824	758	758
query36	1014	1020	919	919
query37	128	110	92	92
query38	3985	3913	3925	3913
query39	1430	1384	1388	1384
query40	233	142	183	142
query41	62	55	57	55
query42	139	121	123	121
query43	515	513	485	485
query44	1395	886	892	886
query45	199	187	179	179
query46	956	1051	671	671
query47	1817	1818	1750	1750
query48	394	421	322	322
query49	686	503	403	403
query50	682	688	407	407
query51	4200	4251	4154	4154
query52	127	134	118	118
query53	254	283	214	214
query54	642	656	573	573
query55	87	84	88	84
query56	344	374	358	358
query57	1182	1227	1119	1119
query58	330	332	323	323
query59	2608	2609	2592	2592
query60	407	389	374	374
query61	120	118	123	118
query62	755	715	657	657
query63	250	224	213	213
query64	2368	1109	809	809
query65	4207	4134	4115	4115
query66	1087	453	355	355
query67	query68	17427	1033	928	928
query69	1018	291	279	279
query70	1386	1113	1085	1085
query71	741	333	313	313
query72	9207	2301	2352	2301
query73	3294	635	356	356
query74	8894	9167	8441	8441
query75	7449	3093	2640	2640
query76	8742	1228	789	789
query77	1154	470	337	337
query78	9426	11773	9056	9056
query79	15598	605	578	578
query80	2376	547	507	507
query81	604	263	223	223
query82	482	151	117	117
query83	437	285	265	265
query84	293	102	87	87
query85	1094	383	337	337
query86	373	318	298	298
query87	4216	4121	4043	4043
query88	5619	2213	2217	2213
query89	516	356	312	312
query90	2600	221	232	221
query91	144	145	111	111
query92	83	73	66	66
query93	6752	973	651	651
query94	1159	391	277	277
query95	403	321	311	311
query96	505	580	281	281
query97	2667	2772	2595	2595
query98	277	234	220	220
query99	1456	1435	1319	1319
Total cold run time: 299921 ms
Total hot run time: 169073 ms

@doris-robot
Copy link

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

query1	0.05	0.04	0.04
query2	0.08	0.04	0.05
query3	0.24	0.07	0.07
query4	1.63	0.11	0.11
query5	0.42	0.45	0.45
query6	1.18	0.69	0.67
query7	0.03	0.02	0.03
query8	0.06	0.04	0.04
query9	0.56	0.48	0.46
query10	0.52	0.52	0.52
query11	0.16	0.10	0.11
query12	0.15	0.11	0.11
query13	0.66	0.64	0.66
query14	0.91	1.31	0.96
query15	0.93	0.90	0.87
query16	0.38	0.38	0.38
query17	1.05	1.09	1.06
query18	0.22	0.20	0.21
query19	2.00	1.81	1.91
query20	0.02	0.02	0.02
query21	15.37	0.86	0.55
query22	0.76	1.20	0.75
query23	14.88	1.14	0.65
query24	6.76	1.39	1.06
query25	0.54	0.09	0.20
query26	0.55	0.15	0.13
query27	0.07	0.05	0.05
query28	10.18	0.81	0.44
query29	12.59	3.81	3.29
query30	3.01	3.08	2.95
query31	2.83	0.56	0.40
query32	3.23	0.58	0.49
query33	3.01	3.11	3.25
query34	15.79	5.30	4.93
query35	4.92	4.94	4.90
query36	0.70	0.52	0.51
query37	0.10	0.07	0.07
query38	0.06	0.05	0.05
query39	0.04	0.02	0.03
query40	0.17	0.14	0.14
query41	0.08	0.02	0.02
query42	0.04	0.02	0.02
query43	0.04	0.03	0.04
Total cold run time: 106.97 s
Total hot run time: 33.22 s

@hello-stephen
Copy link
Contributor

FE UT Coverage Report

Increment line coverage 75.00% (3/4) 🎉
Increment coverage report
Complete coverage report

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

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

@starocean999 starocean999 merged commit e3a6b2b into apache:master Aug 13, 2025
27 of 28 checks passed
zddr added a commit to zddr/incubator-doris that referenced this pull request Aug 14, 2025
The LDAP user does not exist in Doris, so a "user does not exist" prompt
will appear when executing the "show grants" command.

It is a reasonable requirement for users to check their own permissions
after logging in. Therefore, this PR enables LDAP users to view their
own permissions when executing `show grants` themselves. However, others
are still unable to do so, whether by specifying a particular username
or checking all users.

# Conflicts:
#	fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/ShowGrantsCommand.java
#	fe/fe-core/src/test/java/org/apache/doris/nereids/trees/plans/commands/ShowGrantsCommandTest.java
zddr added a commit to zddr/incubator-doris that referenced this pull request Aug 14, 2025
The LDAP user does not exist in Doris, so a "user does not exist" prompt
will appear when executing the "show grants" command.

It is a reasonable requirement for users to check their own permissions
after logging in. Therefore, this PR enables LDAP users to view their
own permissions when executing `show grants` themselves. However, others
are still unable to do so, whether by specifying a particular username
or checking all users.

# Conflicts:
#	fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/ShowGrantsCommand.java
#	fe/fe-core/src/test/java/org/apache/doris/nereids/trees/plans/commands/ShowGrantsCommandTest.java
zddr added a commit to zddr/incubator-doris that referenced this pull request Aug 14, 2025
The LDAP user does not exist in Doris, so a "user does not exist" prompt
will appear when executing the "show grants" command.

It is a reasonable requirement for users to check their own permissions
after logging in. Therefore, this PR enables LDAP users to view their
own permissions when executing `show grants` themselves. However, others
are still unable to do so, whether by specifying a particular username
or checking all users.

# Conflicts:
#	fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/ShowGrantsCommand.java
#	fe/fe-core/src/test/java/org/apache/doris/nereids/trees/plans/commands/ShowGrantsCommandTest.java
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/2.1.12-merged dev/3.0.9-merged dev/3.1.0-merged reviewed usercase Important user case type label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants