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

[fix](auth)unified workload and resource permission logic #32907

Merged
merged 4 commits into from
Mar 28, 2024

Conversation

zddr
Copy link
Contributor

@zddr zddr commented Mar 27, 2024

Proposed changes

Issue Number: close #xxx

  • Grant resource can no longer grant global usage_priv
  • grant resource % instead of grant resource *

before change:

grant usage_priv on resource * to f;
show grants for f\G
*************************** 1. row ***************************
      UserIdentity: 'f'@'%'
           Comment: 
          Password: No
             Roles: 
       GlobalPrivs: Usage_priv 
      CatalogPrivs: NULL
     DatabasePrivs: internal.information_schema: Select_priv ; internal.mysql: Select_priv 
        TablePrivs: NULL
          ColPrivs: NULL
     ResourcePrivs: NULL
 CloudClusterPrivs: NULL
WorkloadGroupPrivs: normal: Usage_priv 

after change

grant usage_priv on resource '%' to f;
show grants for f\G
*************************** 1. row ***************************
      UserIdentity: 'f'@'%'
           Comment: 
          Password: No
             Roles: 
       GlobalPrivs: NULL
      CatalogPrivs: NULL
     DatabasePrivs: internal.information_schema: Select_priv ; internal.mysql: Select_priv 
        TablePrivs: NULL
          ColPrivs: NULL
     ResourcePrivs: %: Usage_priv 
 CloudClusterPrivs: NULL
WorkloadGroupPrivs: normal: Usage_priv 

Further comments

If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org 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 27, 2024

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17633	4243	4086	4086
q2	2103	158	152	152
q3	11534	1151	1199	1151
q4	10858	794	765	765
q5	7780	3107	3072	3072
q6	207	127	125	125
q7	1055	602	582	582
q8	9516	2037	2040	2037
q9	7418	6677	6591	6591
q10	8424	3495	3596	3495
q11	444	229	217	217
q12	410	196	197	196
q13	17822	2836	2878	2836
q14	248	215	207	207
q15	508	466	459	459
q16	492	377	378	377
q17	958	533	609	533
q18	7347	6448	6462	6448
q19	1544	1453	1369	1369
q20	553	255	266	255
q21	3672	2966	2893	2893
q22	348	298	301	298
Total cold run time: 110874 ms
Total hot run time: 38144 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4114	4080	4083	4080
q2	331	233	229	229
q3	2996	2817	2886	2817
q4	1839	1575	1600	1575
q5	5307	5356	5352	5352
q6	197	116	120	116
q7	2213	1898	1863	1863
q8	3157	3279	3297	3279
q9	8743	8677	8705	8677
q10	3849	3774	3778	3774
q11	541	455	449	449
q12	736	602	550	550
q13	12377	2869	2857	2857
q14	294	257	254	254
q15	503	468	462	462
q16	461	420	411	411
q17	1726	1492	1452	1452
q18	7492	7307	7185	7185
q19	7021	1544	1526	1526
q20	1934	1729	1689	1689
q21	4823	4637	4658	4637
q22	522	485	464	464
Total cold run time: 71176 ms
Total hot run time: 53698 ms

@doris-robot
Copy link

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

query1	942	374	382	374
query2	6526	1999	1970	1970
query3	6706	206	223	206
query4	31596	21255	21405	21255
query5	4285	401	401	401
query6	270	184	187	184
query7	4629	296	292	292
query8	235	172	169	169
query9	9208	2336	2333	2333
query10	561	244	254	244
query11	17170	14223	14343	14223
query12	136	88	89	88
query13	1624	410	404	404
query14	10379	7866	7619	7619
query15	249	195	205	195
query16	8163	264	257	257
query17	1953	575	572	572
query18	2065	298	282	282
query19	293	154	162	154
query20	100	86	91	86
query21	205	126	133	126
query22	5046	4877	4833	4833
query23	33676	33276	32928	32928
query24	11684	2872	2861	2861
query25	650	383	397	383
query26	1813	160	160	160
query27	2975	361	361	361
query28	7522	1899	1843	1843
query29	1039	660	618	618
query30	308	152	149	149
query31	943	736	734	734
query32	95	61	57	57
query33	779	251	249	249
query34	1111	497	493	493
query35	837	646	616	616
query36	1004	886	907	886
query37	175	65	68	65
query38	3611	3468	3450	3450
query39	1477	1499	1426	1426
query40	292	117	120	117
query41	53	51	49	49
query42	107	100	101	100
query43	476	455	453	453
query44	1208	769	736	736
query45	284	257	254	254
query46	1104	724	696	696
query47	1886	1845	1852	1845
query48	451	348	352	348
query49	1214	340	331	331
query50	767	363	375	363
query51	6785	6579	6620	6579
query52	116	88	92	88
query53	341	283	280	280
query54	322	242	224	224
query55	79	79	82	79
query56	231	217	219	217
query57	1245	1144	1139	1139
query58	227	198	197	197
query59	2676	2653	2627	2627
query60	265	235	267	235
query61	95	92	93	92
query62	669	443	456	443
query63	304	279	279	279
query64	6817	3998	4018	3998
query65	3123	3058	3040	3040
query66	1431	369	358	358
query67	15346	15214	14988	14988
query68	5309	520	523	520
query69	562	373	391	373
query70	1195	1200	1123	1123
query71	390	271	271	271
query72	6234	2875	2677	2677
query73	710	322	321	321
query74	7746	6444	6377	6377
query75	2954	2212	2218	2212
query76	3567	941	906	906
query77	391	272	271	271
query78	10916	10310	10242	10242
query79	7918	519	518	518
query80	2180	402	393	393
query81	543	215	217	215
query82	1358	90	85	85
query83	284	149	155	149
query84	297	84	82	82
query85	2205	318	315	315
query86	503	298	304	298
query87	3766	3581	3537	3537
query88	4993	2304	2299	2299
query89	481	371	363	363
query90	2000	180	178	178
query91	175	138	137	137
query92	63	46	51	46
query93	5829	500	476	476
query94	1236	180	176	176
query95	428	334	340	334
query96	621	264	268	264
query97	2647	2497	2505	2497
query98	222	216	215	215
query99	1230	886	891	886
Total cold run time: 308907 ms
Total hot run time: 182457 ms

@doris-robot
Copy link

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

Load test result on commit fc56ca3195e58dfedf592ffd5e2dd4e0dd9cc5b0 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.8 seconds inserted 10000000 Rows, about 724K ops/s

@zddr
Copy link
Contributor Author

zddr commented Mar 27, 2024

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17609	4360	4109	4109
q2	2111	159	151	151
q3	10582	1122	1219	1122
q4	10238	748	790	748
q5	7461	3068	2986	2986
q6	205	123	125	123
q7	1039	593	560	560
q8	9337	2039	2003	2003
q9	7169	6662	6610	6610
q10	8432	3421	3574	3421
q11	425	236	219	219
q12	366	201	193	193
q13	17789	2831	2864	2831
q14	242	198	208	198
q15	514	467	452	452
q16	464	381	370	370
q17	945	555	631	555
q18	7207	6515	6506	6506
q19	1570	1474	1398	1398
q20	559	276	261	261
q21	3717	2964	3007	2964
q22	359	292	299	292
Total cold run time: 108340 ms
Total hot run time: 38072 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4018	4041	4108	4041
q2	321	226	224	224
q3	2970	2794	2861	2794
q4	1875	1574	1593	1574
q5	5292	5318	5363	5318
q6	194	114	116	114
q7	2211	1816	1814	1814
q8	3165	3305	3277	3277
q9	8675	8669	8649	8649
q10	3828	3821	3765	3765
q11	549	441	448	441
q12	710	533	546	533
q13	16913	2823	2843	2823
q14	282	260	252	252
q15	512	470	459	459
q16	464	418	415	415
q17	1737	1510	1456	1456
q18	7596	7174	7135	7135
q19	1599	1531	1561	1531
q20	1907	1730	1712	1712
q21	4841	4637	4687	4637
q22	535	465	472	465
Total cold run time: 70194 ms
Total hot run time: 53429 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 182212 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 12652393b6142e381eef3ebb199d10e48c50e360, data reload: false

query1	948	372	358	358
query2	6564	1920	1852	1852
query3	6711	215	210	210
query4	31749	21315	21254	21254
query5	4318	395	392	392
query6	280	179	171	171
query7	4633	292	286	286
query8	225	170	190	170
query9	9441	2337	2320	2320
query10	567	245	258	245
query11	15466	14178	14226	14178
query12	140	91	86	86
query13	1624	411	409	409
query14	9780	7713	7577	7577
query15	274	206	207	206
query16	8132	258	250	250
query17	1972	554	532	532
query18	2079	275	272	272
query19	276	156	146	146
query20	90	83	88	83
query21	202	128	125	125
query22	5021	4851	4813	4813
query23	33497	32832	32706	32706
query24	11662	2879	2938	2879
query25	642	381	378	378
query26	1784	156	155	155
query27	3026	367	352	352
query28	7693	1919	1892	1892
query29	1062	628	593	593
query30	312	145	141	141
query31	977	727	759	727
query32	94	57	56	56
query33	759	235	242	235
query34	1108	489	491	489
query35	849	605	607	605
query36	1033	897	932	897
query37	187	66	66	66
query38	3553	3437	3456	3437
query39	1575	1450	1433	1433
query40	290	110	107	107
query41	48	45	44	44
query42	112	97	94	94
query43	492	463	447	447
query44	1206	730	741	730
query45	297	250	257	250
query46	1187	748	726	726
query47	1934	1846	1855	1846
query48	453	352	344	344
query49	1243	335	327	327
query50	817	369	363	363
query51	6734	6649	6625	6625
query52	105	92	99	92
query53	367	287	277	277
query54	308	234	233	233
query55	85	81	79	79
query56	237	214	227	214
query57	1264	1145	1144	1144
query58	236	215	207	207
query59	3090	2709	2556	2556
query60	275	247	250	247
query61	114	111	112	111
query62	657	438	446	438
query63	311	278	275	275
query64	7152	4319	4400	4319
query65	3153	3028	3050	3028
query66	1425	392	366	366
query67	15475	14854	14954	14854
query68	5440	521	531	521
query69	591	389	373	373
query70	1259	1201	1225	1201
query71	431	281	266	266
query72	6520	2911	2681	2681
query73	758	327	322	322
query74	7801	6430	6395	6395
query75	3109	2234	2269	2234
query76	3450	979	989	979
query77	598	272	269	269
query78	10742	10275	10257	10257
query79	8520	519	528	519
query80	1579	366	369	366
query81	520	212	214	212
query82	802	92	85	85
query83	213	146	162	146
query84	282	77	77	77
query85	1455	315	311	311
query86	416	298	307	298
query87	3728	3546	3531	3531
query88	4770	2317	2304	2304
query89	504	380	380	380
query90	1960	175	173	173
query91	172	141	138	138
query92	69	50	48	48
query93	6930	499	480	480
query94	1156	173	175	173
query95	429	321	341	321
query96	657	272	275	272
query97	2708	2506	2456	2456
query98	236	217	204	204
query99	1257	901	915	901
Total cold run time: 308434 ms
Total hot run time: 182212 ms

@doris-robot
Copy link

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

Load test result on commit 12652393b6142e381eef3ebb199d10e48c50e360 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.8 seconds inserted 10000000 Rows, about 724K ops/s

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

@morningman
Copy link
Contributor

run buildall

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Mar 28, 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.

Copy link
Contributor

@wangbo wangbo left a comment

Choose a reason for hiding this comment

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

LGTM

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17603	4297	4146	4146
q2	2134	156	156	156
q3	10583	1103	1198	1103
q4	10231	784	807	784
q5	7456	2950	2908	2908
q6	202	123	123	123
q7	1042	589	565	565
q8	9337	1997	2009	1997
q9	6985	6315	6296	6296
q10	8467	3441	3597	3441
q11	445	230	215	215
q12	418	195	196	195
q13	17803	2852	2878	2852
q14	239	203	213	203
q15	532	468	474	468
q16	492	365	362	362
q17	957	571	556	556
q18	7083	6412	6502	6412
q19	3743	1495	1399	1399
q20	545	249	253	249
q21	3516	3077	2963	2963
q22	343	292	295	292
Total cold run time: 110156 ms
Total hot run time: 37685 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4145	4080	4121	4080
q2	333	236	231	231
q3	3014	2867	2816	2816
q4	1839	1568	1506	1506
q5	5223	5273	5254	5254
q6	197	118	118	118
q7	2198	1816	1808	1808
q8	3162	3329	3308	3308
q9	8432	8388	8410	8388
q10	3764	3757	3832	3757
q11	540	445	444	444
q12	716	538	557	538
q13	16920	2859	2850	2850
q14	278	253	259	253
q15	500	454	448	448
q16	454	410	422	410
q17	1762	1520	1466	1466
q18	7422	7262	7064	7064
q19	1617	1518	1493	1493
q20	1923	1750	1725	1725
q21	4795	4737	4633	4633
q22	517	441	438	438
Total cold run time: 69751 ms
Total hot run time: 53028 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 181823 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 29066c529321e62e24d294e998cb24a05467e5b9, data reload: false

query1	946	356	346	346
query2	6580	2102	1920	1920
query3	6704	210	206	206
query4	31651	21280	21238	21238
query5	4325	391	393	391
query6	273	181	185	181
query7	4632	291	282	282
query8	241	172	173	172
query9	9381	2365	2366	2365
query10	569	261	248	248
query11	14759	14438	14417	14417
query12	147	101	88	88
query13	1634	428	420	420
query14	9125	8155	7720	7720
query15	243	190	186	186
query16	8237	257	250	250
query17	2014	560	531	531
query18	2107	284	273	273
query19	360	146	151	146
query20	91	85	89	85
query21	209	130	123	123
query22	4975	4866	4824	4824
query23	33651	32687	33007	32687
query24	10647	2883	2943	2883
query25	589	383	397	383
query26	763	160	157	157
query27	2255	347	356	347
query28	6118	1904	1859	1859
query29	883	628	608	608
query30	309	149	148	148
query31	971	754	746	746
query32	102	59	55	55
query33	772	261	268	261
query34	1037	479	489	479
query35	817	621	614	614
query36	1029	897	887	887
query37	103	65	65	65
query38	3477	3430	3434	3430
query39	1485	1454	1451	1451
query40	205	126	115	115
query41	48	48	51	48
query42	103	97	97	97
query43	493	464	456	456
query44	1175	724	744	724
query45	281	264	263	263
query46	1110	688	710	688
query47	1916	1850	1861	1850
query48	452	358	359	358
query49	1082	339	345	339
query50	768	371	367	367
query51	6822	6762	6775	6762
query52	120	88	91	88
query53	342	276	279	276
query54	310	252	244	244
query55	85	82	82	82
query56	256	230	225	225
query57	1221	1132	1155	1132
query58	240	209	208	208
query59	2892	2702	2731	2702
query60	276	243	259	243
query61	114	115	130	115
query62	650	424	419	419
query63	316	280	274	274
query64	5101	4044	4113	4044
query65	3129	3058	3035	3035
query66	913	380	364	364
query67	15385	15052	14804	14804
query68	8757	523	529	523
query69	633	402	402	402
query70	1297	1159	1137	1137
query71	504	270	270	270
query72	6404	2562	2363	2363
query73	1482	323	322	322
query74	6712	6391	6379	6379
query75	3889	2229	2185	2185
query76	4900	881	886	881
query77	672	275	259	259
query78	11055	10131	9975	9975
query79	10239	527	521	521
query80	1925	371	377	371
query81	536	214	225	214
query82	261	85	90	85
query83	214	143	144	143
query84	282	79	81	79
query85	983	320	318	318
query86	355	275	292	275
query87	3768	3655	3512	3512
query88	4853	2322	2312	2312
query89	485	378	384	378
query90	1978	176	176	176
query91	173	159	135	135
query92	61	50	47	47
query93	6398	502	485	485
query94	1284	176	177	176
query95	423	331	329	329
query96	617	269	273	269
query97	2663	2466	2530	2466
query98	236	215	213	213
query99	1059	848	829	829
Total cold run time: 305114 ms
Total hot run time: 181823 ms

@doris-robot
Copy link

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

Load test result on commit 29066c529321e62e24d294e998cb24a05467e5b9 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

@morningman morningman merged commit fd1cf23 into apache:master Mar 28, 2024
28 of 32 checks passed
Jibing-Li added a commit that referenced this pull request Mar 29, 2024
* [fix](merge cloud) Fix cloud be set be tag map (#32864)

* [chore] Add gavinchou to collaborators (#32881)

* [chore](show) support statement to show views from table (#32358)

MySQL [test]> show views;
+----------------+
| Tables_in_test |
+----------------+
| t1_view        |
| t2_view        |
+----------------+
2 rows in set (0.00 sec)

MySQL [test]> show views like '%t1%';
+----------------+
| Tables_in_test |
+----------------+
| t1_view        |
+----------------+
1 row in set (0.01 sec)

MySQL [test]> show views where create_time > '2024-03-18';
+----------------+
| Tables_in_test |
+----------------+
| t2_view        |
+----------------+
1 row in set (0.02 sec)

* [Enhancement](ranger) Disable some permission operations when Ranger or LDAP are enabled (#32538)

Disable some permission operations when Ranger or LDAP are enabled.

* [chore](ci) exclude unstable trino_connector case (#32892)

Co-authored-by: stephen <hello-stephen@qq.com>

* [fix](Nereids) NPE when create table with implicit index type (#32893)

* [improvement](mtmv) Support more join types for query rewriting by materialized view (#32685)

This pattern of rewriting is supported for multi-table joins and supported join types is as following:

INNER JOIN
LEFT OUTER JOIN
RIGHT OUTER JOIN
FULL OUTER JOIN
LEFT SEMI JOIN
RIGHT SEMI JOIN
LEFT ANTI JOIN
RIGHT ANTI JOIN

* [Serde](Variant) support arrow serialization for varint type (#32780)

* [fix](multicatalog) fix no data error when read hive table on cosn (#32815)

Currently, when reading a hive on cosn table, doris return empty result, but the table has data.
iceberg on cosn is ok.
The reason is misuse of cosn's file sytem. according to cosn's doc, its fs.cosn.impl should be org.apache.hadoop.fs.CosFileSystem

* [fix](nereids)EliminateGroupByConstant should replace agg's output after removing constant group by keys (#32878)

* [Fix](executor)Fix regression test for test_active_queries/test_backend_active_tasks #32899

* [fix](iceberg) fix iceberg catalog bug and p2 test cases (#32898)

1. Fix iceberg catalog bug

    This PR #30198 change the logic of `IcebergHMSExternalCatalog.java`,
    to get locationUrl by calling hive metastore's `getCatalog()` method.
    But this method only exists in hive 3+. So it will fail if we using hive 2.x.

    I temporary remove this logic, because this logic is only used from iceberg table writing.
    Which is still under development. We will rethink this logic later.

2. Fix test cases

    Some of P2 test cases missed `order_qt`. And because the output format of the floating point
    type is changed, some result in `out` files need to be regenerated.

* [revert](jni) revert part of #32455 (#32904)

* [fix](spill) Avoid releasing resources while spill tasks are executing (#32783)

* [chore](log) print query id before logging profile in be.INFO (#32922)

* [fix](grace-exit) Stop incorrectly of reportwork cause heap use after free #32929

* [improvement](decommission be) decommission check replica num (#32748)

* [fix](arrow-flight) Fix reach limit of connections error (#32911)

Fix Reach limit of connections error
in fe.conf , arrow_flight_token_cache_size is mandatory less than qe_max_connection/2. arrow flight sql is a stateless protocol, connection is usually not actively disconnected, bearer token is evict from the cache will unregister ConnectContext.

Fix ConnectContext.command not be reset to COM_SLEEP in time, this will result in frequent kill connection after query timeout.

Fix bearer token evict log and exception.

TODO: use arrow flight session: https://mail.google.com/mail/u/0/#inbox/FMfcgzGxRdxBLQLTcvvtRpqsvmhrHpdH

* [bugfix](cloud) few variable not initialized (#32868)

../../cloud/src/recycler/meta_checker.cpp
can cause uninitialised memory read.

* [fix](arrow-flight) Fix arrow flight sql compatible with JDK 17 and upgrade arrow 15.0.2 (#32796)

--add-opens=java.base/java.nio=ALL-UNNAMED, see: https://arrow.apache.org/docs/java/install.html#java-compatibility
groovy use flight sql connection to execute query SUM(MAX(c1) OVER (PARTITION BY)) report error: AGGREGATE clause must not contain analytic expressions, but no problem in Java execute it with jdbc::arrow-flight-sql.
groovy not support print arrow array type, throw IndexOutOfBoundsException.
"arrow_flight_sql" not support two phase read
./run-regression-test.sh --run --clean -g arrow_flight_sql

* [fix](spill) SpillStream's writer maybe may not have been finalized (#32931)

* [improvement](spill) Disable DistinctStreamingAgg when spill is enabled (#32932)

* [Improve](inverted_index) update clucene and improve array inverted index writer  (#32436)

* [Performance](exec) replace SipHash in function by XXHash (#32919)

* [feature](agg) add aggregate function sum0 (#32541)

* [improvement](mtmv) Support to get tables in materialized view when collecting table in plan (#32797)

Support to get tables in materialized view when collecting table in plan

table scehma as fllowing:

create materialized view mv1
BUILD IMMEDIATE REFRESH COMPLETE ON MANUAL
DISTRIBUTED BY RANDOM BUCKETS 1 
PROPERTIES ('replication_num' = '1')
 as 
select 
  t1.c1, 
  t3.c2 
from 
  table1 t1 
  inner join table3 t3 on t1.c1 = t3.c2

if get table from the plan as follwoing, we can get [table1, table3, table2], the mv1 is expanded to get base tables;

SELECT 
  mv1.*, 
  uuid() 
FROM 
  mv1 LEFT SEMI 
  JOIN table2 ON mv1.c1 = table2.c1 
WHERE 
  mv1.c1 IN (
    SELECT 
      c1 
    FROM 
      table2
  ) 
  OR mv1.c1 < 10

* [enhance](mtmv)support olap table partition column is null (#32698)

* [enhancement](cloud) add table version to cloud (#32738)

Add table version to cloud.

In Fe:
Get: If Fe is cloud mode, get table version from meta service.
Update: Op drop/replace temp partition, commit transaction.

In meta service:
Add: create Index. init value is 1.
Remove: by recycler.
Update: commit/drop partition rpc, commit txn rpc. Atomic++.

* [fix](cloud) schema change from not null to null (#32913)

1. Use equals instead of == for type comparing
2. null bitmap size is reisze by size of ref column.

* [feature](Nereids): add ColumnPruningPostProcessor. (#32800)

* [case](rowpolicy)fix row policy has been exist (#32880)

* [fix](pipeline) fix use error row desc when origin block clear (#32803)

* [fix](Nereids) support variant column with index when create table (#32948)

* [opt](Nereids) support create table with variant type (#32953)

* [test](insert-overwrite) Add insert overwrite auto detect concurrency cases (#32935)

* [fix](compile) fe cannot compile in idea (#32955)

* [enhancement](plsql) Support select * from routines (#32866)

Support show of plsql procedure using select * from routines.

* [fix](trino-connector) fix `NoClassDefFoundError` of hudi `Utils` class (#32846)

Due to the change of this PR #32455 , the `trino-connector-scanner` package cannot access the `hudi_scanner` package, so the exception NoclassDeffounderror will appear.

We need to write a separate Utils class.

* [exec](column) change some complex column move to noexcept (#32954)

* [Enhancement](data skew) extends show data skew (#32732)

* [chore](test) let suite compatible with Nereids (#32964)

* Support identical column name in different index. (#32792)

* Limit the max string length to 1024 while collecting column stats to control BE memory usage. (#32470)

* [fix](merge-iterator) fix NOT_IMPLEMENTED_ERROR when read next block view (#32961)

* [improvement](executor)Add tag property for workload group #32874

* [fix](auth)unified workload and resource permission logic (#32907)

- `Grant resource` can no longer grant global `usage_priv`
-  `grant resource %` instead of `grant resource *`

before change:
```
grant usage_priv on resource * to f;
show grants for f\G
*************************** 1. row ***************************
      UserIdentity: 'f'@'%'
           Comment: 
          Password: No
             Roles: 
       GlobalPrivs: Usage_priv 
      CatalogPrivs: NULL
     DatabasePrivs: internal.information_schema: Select_priv ; internal.mysql: Select_priv 
        TablePrivs: NULL
          ColPrivs: NULL
     ResourcePrivs: NULL
 CloudClusterPrivs: NULL
WorkloadGroupPrivs: normal: Usage_priv 
```
after change
```
grant usage_priv on resource '%' to f;
show grants for f\G
*************************** 1. row ***************************
      UserIdentity: 'f'@'%'
           Comment: 
          Password: No
             Roles: 
       GlobalPrivs: NULL
      CatalogPrivs: NULL
     DatabasePrivs: internal.information_schema: Select_priv ; internal.mysql: Select_priv 
        TablePrivs: NULL
          ColPrivs: NULL
     ResourcePrivs: %: Usage_priv 
 CloudClusterPrivs: NULL
WorkloadGroupPrivs: normal: Usage_priv 

```

---------

Co-authored-by: yujun <yu.jun.reach@gmail.com>
Co-authored-by: Gavin Chou <gavineaglechou@gmail.com>
Co-authored-by: xy720 <22125576+xy720@users.noreply.github.com>
Co-authored-by: yongjinhou <109586248+yongjinhou@users.noreply.github.com>
Co-authored-by: Dongyang Li <hello_stephen@qq.com>
Co-authored-by: stephen <hello-stephen@qq.com>
Co-authored-by: morrySnow <101034200+morrySnow@users.noreply.github.com>
Co-authored-by: seawinde <149132972+seawinde@users.noreply.github.com>
Co-authored-by: lihangyu <15605149486@163.com>
Co-authored-by: Yulei-Yang <yulei.yang0699@gmail.com>
Co-authored-by: starocean999 <40539150+starocean999@users.noreply.github.com>
Co-authored-by: wangbo <wangbo@apache.org>
Co-authored-by: Mingyu Chen <morningman@163.com>
Co-authored-by: Jerry Hu <mrhhsg@gmail.com>
Co-authored-by: zhiqiang <seuhezhiqiang@163.com>
Co-authored-by: Xinyi Zou <zouxinyi02@gmail.com>
Co-authored-by: Vallish Pai <vallishpai@gmail.com>
Co-authored-by: amory <wangqiannan@selectdb.com>
Co-authored-by: HappenLee <happenlee@hotmail.com>
Co-authored-by: Jensen <czjourney@163.com>
Co-authored-by: zhangdong <493738387@qq.com>
Co-authored-by: Yongqiang YANG <98214048+dataroaring@users.noreply.github.com>
Co-authored-by: jakevin <jakevingoo@gmail.com>
Co-authored-by: Mryange <59914473+Mryange@users.noreply.github.com>
Co-authored-by: zclllyybb <zhaochangle@selectdb.com>
Co-authored-by: Tiewei Fang <43782773+BePPPower@users.noreply.github.com>
Co-authored-by: Xin Liao <liaoxinbit@126.com>
morningman added a commit to morningman/doris that referenced this pull request Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants