Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[enhance](auth)when assigning permissions, the current user must have corresponding permissions #32825

Merged
merged 17 commits into from
Mar 29, 2024

Conversation

zddr
Copy link
Contributor

@zddr zddr commented Mar 26, 2024

Proposed changes

Issue Number: close #xxx

When authorizing other users or roles, not only need grant_priv, also need the priv want to grant
for example :
The user executes the following SQL

grant select_priv,load_priv on db1.table1 to u1;

he need have grant_priv, select_priv and load_priv on db1.table1

grant usage_priv on resource r1 to u1;

he need to have grant_priv and usage_priv on u1

Further comments

If this is a relatively large or complex change, kick off the discussion at [email protected] by explaining why you chose the solution you did and what alternatives you considered, etc...

@doris-robot
Copy link

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

@zddr
Copy link
Contributor Author

zddr commented Mar 26, 2024

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17631	4308	4157	4157
q2	2128	168	157	157
q3	10655	1143	1214	1143
q4	10415	758	769	758
q5	7476	3079	3028	3028
q6	209	130	126	126
q7	1070	623	571	571
q8	9353	2090	2015	2015
q9	7096	6641	6644	6641
q10	8345	3494	3570	3494
q11	424	229	219	219
q12	368	198	195	195
q13	17781	2887	2917	2887
q14	233	204	203	203
q15	515	460	444	444
q16	470	374	379	374
q17	965	570	604	570
q18	7282	6578	6543	6543
q19	1600	1452	1495	1452
q20	572	257	270	257
q21	3594	2964	2830	2830
q22	358	307	301	301
Total cold run time: 108540 ms
Total hot run time: 38365 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4090	4104	4079	4079
q2	338	229	243	229
q3	2998	2871	2888	2871
q4	1862	1561	1574	1561
q5	5336	5356	5348	5348
q6	202	116	121	116
q7	2260	1837	1934	1837
q8	3173	3310	3300	3300
q9	8757	8733	8758	8733
q10	3776	3782	3753	3753
q11	545	445	443	443
q12	725	557	575	557
q13	16901	2873	2874	2873
q14	277	258	247	247
q15	496	455	450	450
q16	469	439	440	439
q17	1738	1502	1494	1494
q18	7528	7305	7165	7165
q19	1642	1520	1526	1520
q20	1925	1723	1687	1687
q21	4704	4657	4784	4657
q22	532	467	459	459
Total cold run time: 70274 ms
Total hot run time: 53818 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 181897 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 80e30c8288354aa5c6b67fa5ae698dcf72ca6be0, data reload: false

query1	948	374	348	348
query2	6541	1946	1890	1890
query3	6707	216	214	214
query4	31867	21436	21357	21357
query5	4304	399	398	398
query6	272	177	172	172
query7	4621	292	293	292
query8	231	172	178	172
query9	9395	2381	2360	2360
query10	570	248	274	248
query11	15216	14204	14131	14131
query12	150	107	102	102
query13	1630	427	428	427
query14	10152	7730	7855	7730
query15	273	206	198	198
query16	8158	271	266	266
query17	1924	584	561	561
query18	2106	296	288	288
query19	297	156	155	155
query20	95	89	92	89
query21	203	126	134	126
query22	4955	4802	4757	4757
query23	33572	33073	32718	32718
query24	11765	2897	2842	2842
query25	671	393	394	393
query26	1799	164	161	161
query27	3104	347	360	347
query28	7751	1928	1890	1890
query29	1009	625	621	621
query30	307	144	145	144
query31	1005	714	754	714
query32	88	55	55	55
query33	758	245	246	245
query34	1103	496	481	481
query35	843	609	621	609
query36	1026	903	884	884
query37	271	65	64	64
query38	3604	3455	3413	3413
query39	1472	1447	1438	1438
query40	284	109	109	109
query41	48	51	46	46
query42	105	96	97	96
query43	476	448	438	438
query44	1161	730	728	728
query45	258	260	252	252
query46	1123	710	712	710
query47	1911	1838	1837	1837
query48	447	366	350	350
query49	1229	339	325	325
query50	765	390	378	378
query51	6789	6718	6746	6718
query52	111	90	93	90
query53	343	276	266	266
query54	316	236	253	236
query55	88	73	79	73
query56	231	214	217	214
query57	1214	1140	1123	1123
query58	244	203	208	203
query59	2743	2678	2550	2550
query60	256	240	236	236
query61	99	101	100	100
query62	687	460	455	455
query63	305	280	275	275
query64	6789	4110	4153	4110
query65	3162	3014	3066	3014
query66	1422	372	371	371
query67	15155	14693	14616	14616
query68	5484	536	529	529
query69	542	379	404	379
query70	1196	1162	1203	1162
query71	407	269	268	268
query72	6442	2876	2692	2692
query73	713	319	317	317
query74	6857	6399	6370	6370
query75	2950	2213	2239	2213
query76	3561	926	828	828
query77	383	268	252	252
query78	10900	10260	10243	10243
query79	10210	520	524	520
query80	1859	368	376	368
query81	506	215	216	215
query82	773	83	86	83
query83	211	139	144	139
query84	294	75	81	75
query85	1477	316	313	313
query86	421	298	282	282
query87	3786	3546	3490	3490
query88	5231	2384	2377	2377
query89	505	363	389	363
query90	2063	172	173	172
query91	171	135	135	135
query92	64	47	50	47
query93	7073	501	490	490
query94	1231	183	179	179
query95	430	334	333	333
query96	604	274	270	270
query97	2660	2454	2469	2454
query98	242	216	220	216
query99	1256	920	904	904
Total cold run time: 309026 ms
Total hot run time: 181897 ms

@doris-robot
Copy link

Load test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G'

Load test result on commit 80e30c8288354aa5c6b67fa5ae698dcf72ca6be0 with default session variables
Stream load json:         18 seconds loaded 2358488459 Bytes, about 124 MB/s
Stream load orc:          59 seconds loaded 1101869774 Bytes, about 17 MB/s
Stream load parquet:      32 seconds loaded 861443392 Bytes, about 25 MB/s
Insert into select:       21.0 seconds inserted 10000000 Rows, about 476K ops/s

@zddr
Copy link
Contributor Author

zddr commented Mar 26, 2024

run buildall

@zddr
Copy link
Contributor Author

zddr commented Mar 26, 2024

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17630	4203	4083	4083
q2	2117	163	161	161
q3	10568	1145	1178	1145
q4	10234	749	723	723
q5	7467	3019	2979	2979
q6	201	123	124	123
q7	1040	569	562	562
q8	9333	1954	1973	1954
q9	7147	6580	6540	6540
q10	8434	3450	3584	3450
q11	430	225	212	212
q12	406	193	192	192
q13	17803	2816	2843	2816
q14	241	201	198	198
q15	514	468	456	456
q16	502	372	374	372
q17	956	529	622	529
q18	7103	6526	6358	6358
q19	1575	1479	1391	1391
q20	543	243	246	243
q21	3563	2953	2961	2953
q22	336	303	294	294
Total cold run time: 108143 ms
Total hot run time: 37734 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4170	4082	4060	4060
q2	326	237	229	229
q3	2990	2819	2862	2819
q4	1910	1561	1582	1561
q5	5318	5398	5351	5351
q6	189	114	115	114
q7	2260	1854	1852	1852
q8	3148	3314	3284	3284
q9	8733	8732	8663	8663
q10	3978	3982	3945	3945
q11	571	479	452	452
q12	742	601	576	576
q13	17540	3021	2929	2929
q14	277	249	253	249
q15	511	483	466	466
q16	485	427	466	427
q17	1751	1489	1475	1475
q18	7723	7392	7074	7074
q19	4086	1510	1553	1510
q20	1907	1730	1706	1706
q21	4800	4533	4755	4533
q22	514	431	462	431
Total cold run time: 73929 ms
Total hot run time: 53706 ms

@doris-robot
Copy link

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

query1	937	366	353	353
query2	6550	1869	1864	1864
query3	6702	215	224	215
query4	31627	21275	21236	21236
query5	4291	396	408	396
query6	278	175	175	175
query7	4616	298	302	298
query8	225	178	171	171
query9	9104	2297	2239	2239
query10	570	260	276	260
query11	17184	14257	14207	14207
query12	142	88	95	88
query13	1630	434	440	434
query14	9847	7883	8021	7883
query15	289	210	201	201
query16	8245	272	269	269
query17	2097	587	547	547
query18	2121	291	286	286
query19	360	163	160	160
query20	97	90	93	90
query21	205	127	127	127
query22	5039	4847	4771	4771
query23	33392	32609	32799	32609
query24	11697	2891	2835	2835
query25	662	394	390	390
query26	1807	159	159	159
query27	2969	362	367	362
query28	7570	1850	1839	1839
query29	1065	628	641	628
query30	310	148	149	148
query31	992	725	745	725
query32	98	56	56	56
query33	765	261	262	261
query34	1002	480	497	480
query35	835	614	604	604
query36	1009	917	904	904
query37	189	67	68	67
query38	3524	3470	3411	3411
query39	1607	1441	1406	1406
query40	292	115	116	115
query41	51	47	50	47
query42	111	97	99	97
query43	475	458	429	429
query44	1154	736	739	736
query45	269	291	276	276
query46	1108	728	718	718
query47	1911	1828	1855	1828
query48	468	383	364	364
query49	1242	336	345	336
query50	767	376	388	376
query51	6750	6548	6644	6548
query52	102	97	95	95
query53	348	272	271	271
query54	326	240	235	235
query55	84	80	85	80
query56	269	233	226	226
query57	1229	1166	1129	1129
query58	240	206	213	206
query59	2784	2516	2498	2498
query60	270	249	251	249
query61	129	116	112	112
query62	672	444	465	444
query63	306	280	287	280
query64	6799	4074	4000	4000
query65	3083	3052	3030	3030
query66	1404	364	352	352
query67	15836	14972	14838	14838
query68	8769	534	545	534
query69	634	389	396	389
query70	1274	1181	1102	1102
query71	515	267	266	266
query72	6424	2721	2523	2523
query73	1092	323	329	323
query74	8072	6419	6348	6348
query75	3713	2230	2281	2230
query76	5442	873	890	873
query77	641	264	267	264
query78	10968	10151	10190	10151
query79	10033	528	539	528
query80	1626	386	370	370
query81	507	211	217	211
query82	802	87	87	87
query83	216	149	144	144
query84	289	80	78	78
query85	1456	322	309	309
query86	423	274	319	274
query87	3765	3514	3534	3514
query88	4598	2371	2378	2371
query89	508	372	375	372
query90	2020	178	179	178
query91	177	137	137	137
query92	61	50	51	50
query93	6856	499	488	488
query94	1172	175	176	175
query95	443	339	329	329
query96	608	272	267	267
query97	2672	2496	2473	2473
query98	231	211	216	211
query99	1243	888	894	888
Total cold run time: 317378 ms
Total hot run time: 181526 ms

@doris-robot
Copy link

Load test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G'

Load test result on commit 6d318827a0969fde1412c55d79faf35a40a7578d with default session variables
Stream load json:         19 seconds loaded 2358488459 Bytes, about 118 MB/s
Stream load orc:          59 seconds loaded 1101869774 Bytes, about 17 MB/s
Stream load parquet:      31 seconds loaded 861443392 Bytes, about 26 MB/s
Insert into select:       21.9 seconds inserted 10000000 Rows, about 456K ops/s

@zddr
Copy link
Contributor Author

zddr commented Mar 27, 2024

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17589	4411	4449	4411
q2	2654	154	153	153
q3	11452	1122	1212	1122
q4	10767	812	805	805
q5	7677	3097	3043	3043
q6	201	126	125	125
q7	1061	621	614	614
q8	9980	1994	1984	1984
q9	7255	6583	6559	6559
q10	8439	3471	3511	3471
q11	442	235	229	229
q12	369	210	202	202
q13	17800	2866	2869	2866
q14	241	209	213	209
q15	507	452	456	452
q16	487	390	375	375
q17	954	567	555	555
q18	7168	6535	6503	6503
q19	1579	1423	1371	1371
q20	541	244	270	244
q21	3570	3059	2981	2981
q22	364	304	310	304
Total cold run time: 111097 ms
Total hot run time: 38578 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4094	4060	4088	4060
q2	329	234	230	230
q3	2985	2874	2888	2874
q4	1799	1574	1534	1534
q5	5279	5333	5305	5305
q6	192	113	115	113
q7	2265	1869	1863	1863
q8	3166	3272	3294	3272
q9	8715	8708	8723	8708
q10	3798	3787	3746	3746
q11	554	447	438	438
q12	733	588	521	521
q13	16895	2861	2859	2859
q14	285	259	259	259
q15	493	459	460	459
q16	461	449	425	425
q17	1752	1505	1488	1488
q18	7445	7499	7411	7411
q19	1661	1539	1580	1539
q20	2062	1881	1845	1845
q21	5113	4996	4872	4872
q22	546	467	487	467
Total cold run time: 70622 ms
Total hot run time: 54288 ms

@zddr
Copy link
Contributor Author

zddr commented Mar 27, 2024

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17600	4369	4089	4089
q2	2121	172	162	162
q3	10568	1138	1147	1138
q4	10234	782	759	759
q5	7455	2996	3016	2996
q6	206	123	120	120
q7	1035	580	587	580
q8	9349	2027	1976	1976
q9	8777	6638	6573	6573
q10	8480	3555	3581	3555
q11	430	233	220	220
q12	446	201	195	195
q13	17837	2886	2888	2886
q14	249	215	205	205
q15	517	475	462	462
q16	511	373	370	370
q17	962	635	592	592
q18	7139	6562	6481	6481
q19	1541	1450	1490	1450
q20	548	278	259	259
q21	3592	2908	2832	2832
q22	353	311	312	311
Total cold run time: 109950 ms
Total hot run time: 38211 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4120	4078	4044	4044
q2	329	228	225	225
q3	2971	2852	2866	2852
q4	1815	1523	1544	1523
q5	5319	5375	5352	5352
q6	198	115	117	115
q7	2249	1868	1922	1868
q8	3155	3266	3292	3266
q9	8716	8724	8697	8697
q10	3866	3795	3770	3770
q11	544	445	447	445
q12	741	555	559	555
q13	12010	2860	2828	2828
q14	275	252	252	252
q15	510	462	466	462
q16	472	413	418	413
q17	1742	1485	1473	1473
q18	7397	7085	7230	7085
q19	1602	1551	1600	1551
q20	1896	1753	1727	1727
q21	4898	4708	4653	4653
q22	522	469	464	464
Total cold run time: 65347 ms
Total hot run time: 53620 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 182241 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 3b0c166a198e600440635c32ba0e067b8cfa83b1, data reload: false

query1	943	368	358	358
query2	6524	2129	1967	1967
query3	6693	214	218	214
query4	31692	21513	21413	21413
query5	4284	398	400	398
query6	274	177	188	177
query7	4598	299	300	299
query8	233	174	176	174
query9	9323	2348	2354	2348
query10	583	246	263	246
query11	15376	14175	14194	14175
query12	133	95	83	83
query13	1638	412	420	412
query14	9497	8413	7885	7885
query15	235	197	200	197
query16	7826	265	263	263
query17	1887	577	557	557
query18	1416	281	289	281
query19	348	154	153	153
query20	94	91	94	91
query21	207	133	126	126
query22	5016	4899	4777	4777
query23	33372	32804	32767	32767
query24	11334	2875	2954	2875
query25	654	395	402	395
query26	1608	166	164	164
query27	2763	358	356	356
query28	7238	1910	1894	1894
query29	953	647	619	619
query30	308	150	151	150
query31	991	721	744	721
query32	98	56	55	55
query33	773	248	241	241
query34	1057	492	492	492
query35	828	632	615	615
query36	1013	918	887	887
query37	117	64	65	64
query38	3540	3456	3430	3430
query39	1472	1488	1408	1408
query40	295	111	109	109
query41	47	46	45	45
query42	97	94	97	94
query43	493	480	470	470
query44	1208	725	737	725
query45	278	256	263	256
query46	1122	700	710	700
query47	1902	1823	1839	1823
query48	440	351	355	351
query49	1181	333	331	331
query50	744	372	371	371
query51	6694	6625	6602	6602
query52	109	93	93	93
query53	354	277	273	273
query54	286	243	235	235
query55	84	76	77	76
query56	228	216	215	215
query57	1211	1149	1164	1149
query58	228	201	205	201
query59	2784	2735	2854	2735
query60	270	241	246	241
query61	96	94	89	89
query62	654	456	455	455
query63	304	283	277	277
query64	6804	4084	3641	3641
query65	3140	3052	3064	3052
query66	1252	366	363	363
query67	15349	15474	14791	14791
query68	5271	535	529	529
query69	544	387	377	377
query70	1212	1235	1154	1154
query71	432	285	273	273
query72	6490	2890	2675	2675
query73	707	317	336	317
query74	7908	6478	6428	6428
query75	2989	2236	2196	2196
query76	3546	903	899	899
query77	389	264	267	264
query78	11014	10207	10183	10183
query79	9070	547	545	545
query80	2231	389	378	378
query81	545	213	211	211
query82	1365	91	84	84
query83	315	142	141	141
query84	285	78	77	77
query85	2337	325	315	315
query86	502	288	318	288
query87	3692	3567	3562	3562
query88	5021	2338	2319	2319
query89	560	368	376	368
query90	2062	179	178	178
query91	179	141	142	141
query92	63	48	48	48
query93	7013	505	490	490
query94	1251	176	176	176
query95	440	334	334	334
query96	608	282	268	268
query97	2658	2470	2467	2467
query98	244	218	203	203
query99	1243	863	931	863
Total cold run time: 306779 ms
Total hot run time: 182241 ms

@doris-robot
Copy link

Load test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G'

Load test result on commit 3b0c166a198e600440635c32ba0e067b8cfa83b1 with default session variables
Stream load json:         19 seconds loaded 2358488459 Bytes, about 118 MB/s
Stream load orc:          59 seconds loaded 1101869774 Bytes, about 17 MB/s
Stream load parquet:      31 seconds loaded 861443392 Bytes, about 26 MB/s
Insert into select:       13.6 seconds inserted 10000000 Rows, about 735K ops/s

@zddr
Copy link
Contributor Author

zddr commented Mar 28, 2024

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17624	4252	4136	4136
q2	2120	159	150	150
q3	10581	1151	1138	1138
q4	10223	770	802	770
q5	7457	2929	2903	2903
q6	203	125	126	125
q7	1027	578	558	558
q8	9335	1992	1945	1945
q9	7028	6280	6307	6280
q10	8407	3460	3568	3460
q11	438	226	220	220
q12	383	196	189	189
q13	17822	2876	2894	2876
q14	235	199	208	199
q15	502	456	479	456
q16	486	374	367	367
q17	941	588	583	583
q18	7009	6461	6370	6370
q19	1663	1363	1448	1363
q20	537	265	254	254
q21	3484	2865	2792	2792
q22	334	292	295	292
Total cold run time: 107839 ms
Total hot run time: 37426 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4093	4100	4099	4099
q2	325	242	226	226
q3	2971	2839	2837	2837
q4	1816	1586	1529	1529
q5	5218	5167	5231	5167
q6	196	117	117	117
q7	2243	1838	1812	1812
q8	3151	3287	3239	3239
q9	8416	8377	8390	8377
q10	3776	3728	3820	3728
q11	550	449	449	449
q12	707	565	565	565
q13	16923	2906	2894	2894
q14	286	247	267	247
q15	497	458	464	458
q16	467	419	417	417
q17	1722	1496	1476	1476
q18	7477	7267	7038	7038
q19	1608	1471	1542	1471
q20	1936	1749	1729	1729
q21	4799	4632	4509	4509
q22	534	439	435	435
Total cold run time: 69711 ms
Total hot run time: 52819 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 181650 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 98a7436624cf26c159e39270ea88ef40f51d5a45, data reload: false

query1	936	359	347	347
query2	6586	1916	1939	1916
query3	6711	211	215	211
query4	31683	21293	21278	21278
query5	4326	425	392	392
query6	270	178	177	177
query7	4646	293	289	289
query8	228	172	164	164
query9	9293	2335	2339	2335
query10	564	262	257	257
query11	14651	14242	14268	14242
query12	137	88	84	84
query13	1614	421	410	410
query14	9498	7598	7756	7598
query15	229	185	188	185
query16	8133	256	284	256
query17	1933	581	553	553
query18	2078	288	280	280
query19	244	160	160	160
query20	95	86	90	86
query21	200	128	126	126
query22	4965	4845	4755	4755
query23	33468	33157	32852	32852
query24	11092	2841	2834	2834
query25	631	399	388	388
query26	1598	156	158	156
query27	3081	370	360	360
query28	7648	1867	1882	1867
query29	984	633	626	626
query30	305	152	151	151
query31	973	739	762	739
query32	92	57	54	54
query33	775	258	279	258
query34	1055	481	491	481
query35	853	607	601	601
query36	1022	865	866	865
query37	129	62	62	62
query38	3550	3447	3464	3447
query39	1464	1445	1449	1445
query40	292	112	111	111
query41	50	45	45	45
query42	106	92	93	92
query43	473	468	472	468
query44	1230	732	740	732
query45	262	270	254	254
query46	1078	686	675	675
query47	1911	1812	1837	1812
query48	432	354	354	354
query49	1211	326	325	325
query50	764	370	361	361
query51	6795	6697	6779	6697
query52	116	85	90	85
query53	341	269	277	269
query54	286	244	228	228
query55	92	76	82	76
query56	244	225	222	222
query57	1232	1154	1147	1147
query58	238	201	207	201
query59	2754	2571	2814	2571
query60	259	239	247	239
query61	100	93	95	93
query62	619	418	404	404
query63	313	277	273	273
query64	6810	4018	4100	4018
query65	3046	3007	3036	3007
query66	1089	378	350	350
query67	15277	15105	14789	14789
query68	5464	514	521	514
query69	563	369	398	369
query70	1236	1189	1197	1189
query71	440	270	267	267
query72	6456	2693	2503	2503
query73	713	313	314	313
query74	6789	6405	6412	6405
query75	2978	2265	2257	2257
query76	3526	932	874	874
query77	417	269	269	269
query78	10917	10218	10204	10204
query79	8429	518	533	518
query80	2093	392	383	383
query81	545	219	218	218
query82	1360	89	88	88
query83	315	142	142	142
query84	287	80	75	75
query85	2160	329	314	314
query86	500	287	306	287
query87	3771	3536	3516	3516
query88	4942	2313	2298	2298
query89	545	383	370	370
query90	1997	172	172	172
query91	164	137	137	137
query92	60	46	46	46
query93	5775	488	476	476
query94	1247	177	174	174
query95	440	318	321	318
query96	594	269	275	269
query97	2676	2489	2476	2476
query98	218	213	214	213
query99	1199	826	811	811
Total cold run time: 303976 ms
Total hot run time: 181650 ms

@doris-robot
Copy link

Load test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G'

Load test result on commit 98a7436624cf26c159e39270ea88ef40f51d5a45 with default session variables
Stream load json:         18 seconds loaded 2358488459 Bytes, about 124 MB/s
Stream load orc:          59 seconds loaded 1101869774 Bytes, about 17 MB/s
Stream load parquet:      31 seconds loaded 861443392 Bytes, about 26 MB/s
Insert into select:       13.9 seconds inserted 10000000 Rows, about 719K ops/s

@zddr
Copy link
Contributor Author

zddr commented Mar 28, 2024

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17697	4676	4401	4401
q2	2189	165	146	146
q3	11529	1153	1222	1153
q4	10362	797	847	797
q5	7710	2980	2973	2973
q6	198	124	123	123
q7	1057	612	604	604
q8	9525	2076	2036	2036
q9	7129	6449	6330	6330
q10	8369	3457	3545	3457
q11	431	227	224	224
q12	368	203	188	188
q13	17819	2850	2877	2850
q14	243	212	206	206
q15	511	455	454	454
q16	485	391	379	379
q17	968	504	631	504
q18	7198	6474	6422	6422
q19	4578	1424	1402	1402
q20	562	260	243	243
q21	3591	2935	2877	2877
q22	351	304	302	302
Total cold run time: 112870 ms
Total hot run time: 38071 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4153	4046	4076	4046
q2	325	229	229	229
q3	3036	2910	2826	2826
q4	1814	1591	1565	1565
q5	5228	5234	5239	5234
q6	194	114	116	114
q7	2206	1819	1823	1819
q8	3203	3300	3309	3300
q9	8447	8429	8403	8403
q10	3800	3788	3747	3747
q11	560	440	440	440
q12	726	567	552	552
q13	16920	2862	2849	2849
q14	272	265	272	265
q15	505	465	466	465
q16	479	428	427	427
q17	1730	1517	1455	1455
q18	7397	7647	7539	7539
q19	1644	1564	1572	1564
q20	2061	1852	1870	1852
q21	5034	4867	4776	4776
q22	578	468	455	455
Total cold run time: 70312 ms
Total hot run time: 53922 ms

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Mar 29, 2024
Copy link
Contributor

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

Copy link
Contributor

PR approved by anyone and no changes requested.

@morningman morningman merged commit f0dd450 into apache:master Mar 29, 2024
26 of 30 checks passed
deardeng added a commit to deardeng/incubator-doris that referenced this pull request Apr 1, 2024
morningman pushed a commit to morningman/doris that referenced this pull request Apr 22, 2024
… corresponding permissions (apache#32825)

When authorizing other users or roles, not only need `grant_priv`,  also need the priv want to grant
for example :
The user executes the following SQL
```
grant select_priv,load_priv on db1.table1 to u1;
```
he need have grant_priv, select_priv and load_priv on db1.table1

```
grant usage_priv on resource r1 to u1;
```
he need to have grant_priv and usage_priv on u1
morningman added a commit that referenced this pull request Apr 22, 2024
@morningman morningman mentioned this pull request May 16, 2024
1 task
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.3-merged kind/behavior-changed reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants