Skip to content

[Enhancement] (nereids)implement alterCatalogPropertiesCommand in ner… - #45164

Merged
starocean999 merged 2 commits into
apache:masterfrom
msridhar78:alter_catalog_properties
Mar 4, 2025
Merged

starocean999 merged 2 commits into
apache:masterfrom
msridhar78:alter_catalog_properties

Conversation

@msridhar78

Copy link
Copy Markdown
Contributor

…eids

What problem does this PR solve?

Issue Number: close #42789

Related PR: #xxx

Problem Summary:
Enhancement] (nereids)implement alterCatalogPropertiesCommand in nereids

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

@doris-robot

Copy link
Copy Markdown

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?

@msridhar78

Copy link
Copy Markdown
Contributor Author

run buildall

@starocean999

Copy link
Copy Markdown
Contributor

please refer to #45160

@msridhar78
msridhar78 force-pushed the alter_catalog_properties branch 2 times, most recently from 7b3de4b to 97ee4c6 Compare December 20, 2024 06:22
@msridhar78

Copy link
Copy Markdown
Contributor Author

run buildall

@doris-robot

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

------ Round 1 ----------------------------------
q1	17625	8422	7355	7355
q2	2067	187	163	163
q3	10748	1083	1243	1083
q4	10592	715	729	715
q5	7613	2778	2692	2692
q6	247	149	144	144
q7	985	635	610	610
q8	9256	1823	1965	1823
q9	6668	6478	6408	6408
q10	7010	2316	2372	2316
q11	458	271	253	253
q12	437	222	228	222
q13	17760	2955	2947	2947
q14	250	210	212	210
q15	577	503	507	503
q16	666	606	594	594
q17	990	547	546	546
q18	7414	6853	6815	6815
q19	1340	990	991	990
q20	484	191	184	184
q21	4100	3158	3212	3158
q22	401	314	310	310
Total cold run time: 107688 ms
Total hot run time: 40041 ms

----- Round 2, with runtime_filter_mode=off -----
q1	7248	7254	7235	7235
q2	335	228	232	228
q3	2883	2958	2944	2944
q4	2042	1878	1847	1847
q5	5603	5636	5645	5636
q6	233	141	145	141
q7	2225	1877	1841	1841
q8	3384	3572	3565	3565
q9	8948	8956	9012	8956
q10	3600	3579	3585	3579
q11	611	502	489	489
q12	787	609	597	597
q13	11821	3099	3118	3099
q14	326	266	293	266
q15	564	508	501	501
q16	728	657	662	657
q17	1847	1616	1627	1616
q18	8302	7968	7624	7624
q19	1734	1484	1524	1484
q20	2141	1894	1885	1885
q21	5699	5484	5434	5434
q22	635	584	564	564
Total cold run time: 71696 ms
Total hot run time: 60188 ms

@doris-robot

Copy link
Copy Markdown
TPC-DS: Total hot run time: 196392 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 97ee4c6a9d94a6293cfb6931cb235c3efd77a009, data reload: false

query1	1328	1000	930	930
query2	6253	2399	2259	2259
query3	10941	4731	4751	4731
query4	33694	23389	23481	23389
query5	4755	469	447	447
query6	299	200	186	186
query7	4003	302	303	302
query8	304	240	235	235
query9	9590	2720	2677	2677
query10	479	247	251	247
query11	18362	15237	15115	15115
query12	161	104	108	104
query13	1634	432	430	430
query14	11451	7135	7269	7135
query15	296	187	187	187
query16	8057	449	472	449
query17	1748	595	592	592
query18	2188	298	317	298
query19	363	162	151	151
query20	121	119	111	111
query21	207	109	117	109
query22	4962	4926	4729	4729
query23	34333	33610	33896	33610
query24	10403	2539	2477	2477
query25	615	390	395	390
query26	1223	161	152	152
query27	2840	332	331	331
query28	7544	2485	2492	2485
query29	851	422	408	408
query30	229	147	153	147
query31	1047	836	862	836
query32	98	62	57	57
query33	769	291	322	291
query34	970	521	529	521
query35	894	761	745	745
query36	1125	960	965	960
query37	137	83	72	72
query38	4463	4158	4203	4158
query39	1581	1456	1443	1443
query40	205	103	100	100
query41	48	45	44	44
query42	119	103	99	99
query43	527	495	481	481
query44	1255	825	822	822
query45	190	176	164	164
query46	1186	728	743	728
query47	2050	1904	1905	1904
query48	429	324	327	324
query49	880	410	419	410
query50	850	388	388	388
query51	7299	7060	7272	7060
query52	110	92	103	92
query53	273	181	185	181
query54	1073	410	421	410
query55	81	83	79	79
query56	274	247	267	247
query57	1286	1194	1150	1150
query58	229	223	235	223
query59	3350	3350	3217	3217
query60	284	245	251	245
query61	105	109	103	103
query62	892	714	710	710
query63	224	191	184	184
query64	4076	698	652	652
query65	3287	3205	3235	3205
query66	801	308	305	305
query67	16089	15696	15546	15546
query68	4903	537	548	537
query69	466	253	242	242
query70	1203	1143	1126	1126
query71	455	254	248	248
query72	6893	4178	4009	4009
query73	770	351	365	351
query74	10361	8813	8809	8809
query75	3571	2630	2643	2630
query76	3470	1109	1039	1039
query77	637	269	272	269
query78	10356	9425	9506	9425
query79	1534	599	602	599
query80	977	416	407	407
query81	568	232	222	222
query82	521	115	124	115
query83	280	142	143	142
query84	230	71	72	71
query85	1334	304	312	304
query86	449	300	300	300
query87	4438	4453	4291	4291
query88	3766	2202	2160	2160
query89	420	334	290	290
query90	2068	185	183	183
query91	141	107	106	106
query92	71	52	56	52
query93	2384	552	545	545
query94	1036	273	279	273
query95	358	248	244	244
query96	626	281	284	281
query97	2841	2652	2697	2652
query98	220	200	198	198
query99	1554	1324	1303	1303
Total cold run time: 306691 ms
Total hot run time: 196392 ms

@doris-robot

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

query1	0.03	0.03	0.02
query2	0.07	0.03	0.03
query3	0.23	0.08	0.07
query4	1.61	0.11	0.10
query5	0.44	0.42	0.42
query6	1.17	0.66	0.68
query7	0.03	0.01	0.01
query8	0.04	0.04	0.03
query9	0.59	0.49	0.51
query10	0.57	0.58	0.56
query11	0.14	0.11	0.10
query12	0.14	0.11	0.11
query13	0.61	0.61	0.59
query14	2.79	2.83	2.75
query15	0.92	0.82	0.82
query16	0.38	0.39	0.37
query17	1.07	1.05	1.02
query18	0.22	0.21	0.19
query19	1.84	1.85	2.02
query20	0.02	0.01	0.01
query21	15.36	0.58	0.57
query22	2.32	1.60	2.20
query23	16.95	1.03	0.78
query24	3.32	0.26	0.63
query25	0.26	0.13	0.06
query26	0.43	0.14	0.14
query27	0.04	0.04	0.04
query28	11.48	1.10	1.08
query29	12.56	3.28	3.29
query30	0.24	0.06	0.06
query31	2.86	0.39	0.38
query32	3.25	0.46	0.45
query33	3.10	3.13	3.14
query34	16.99	4.45	4.45
query35	4.50	4.47	4.45
query36	0.68	0.49	0.51
query37	0.10	0.06	0.07
query38	0.05	0.04	0.03
query39	0.04	0.03	0.03
query40	0.17	0.14	0.13
query41	0.08	0.02	0.02
query42	0.04	0.02	0.02
query43	0.04	0.02	0.03
Total cold run time: 107.77 s
Total hot run time: 31.73 s

@msridhar78

Copy link
Copy Markdown
Contributor Author

run buildall

1 similar comment
@msridhar78

Copy link
Copy Markdown
Contributor Author

run buildall

@doris-robot

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

------ Round 1 ----------------------------------
q1	17610	8092	7236	7236
q2	2056	184	165	165
q3	10598	1051	1166	1051
q4	10556	676	739	676
q5	7576	2689	2637	2637
q6	237	150	148	148
q7	964	610	605	605
q8	9257	1834	1867	1834
q9	6596	6412	6385	6385
q10	7010	2312	2305	2305
q11	473	259	255	255
q12	429	223	218	218
q13	17785	2952	2935	2935
q14	246	211	215	211
q15	546	511	497	497
q16	674	592	597	592
q17	965	559	588	559
q18	7417	6754	6921	6754
q19	1355	982	912	912
q20	466	190	190	190
q21	4284	3171	3200	3171
q22	401	319	315	315
Total cold run time: 107501 ms
Total hot run time: 39651 ms

----- Round 2, with runtime_filter_mode=off -----
q1	7195	7187	7207	7187
q2	334	227	235	227
q3	2862	2833	2937	2833
q4	2057	1818	1763	1763
q5	5656	5644	5615	5615
q6	222	144	137	137
q7	2286	1813	1790	1790
q8	3382	3510	3452	3452
q9	8862	9008	8880	8880
q10	3577	3500	3524	3500
q11	603	513	503	503
q12	825	623	592	592
q13	12388	3193	3135	3135
q14	302	274	285	274
q15	551	514	498	498
q16	695	663	656	656
q17	1837	1624	1595	1595
q18	8409	7782	7724	7724
q19	2062	1519	1552	1519
q20	2049	1866	1917	1866
q21	5507	5452	5385	5385
q22	648	576	589	576
Total cold run time: 72309 ms
Total hot run time: 59707 ms

@doris-robot

Copy link
Copy Markdown
TPC-DS: Total hot run time: 195926 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 1878c683af0388357e106e0789282e4ff44688e6, data reload: false

query1	1296	981	916	916
query2	6233	2487	2425	2425
query3	10979	4427	4657	4427
query4	33386	23413	23604	23413
query5	4034	482	480	480
query6	292	201	189	189
query7	3996	306	313	306
query8	313	243	236	236
query9	9405	2749	2740	2740
query10	452	261	248	248
query11	17849	15286	15084	15084
query12	161	106	114	106
query13	1589	432	441	432
query14	8805	6620	6756	6620
query15	267	190	201	190
query16	8286	468	470	468
query17	1624	586	570	570
query18	2205	318	308	308
query19	335	154	163	154
query20	125	121	110	110
query21	208	107	105	105
query22	4798	4521	4422	4422
query23	36641	33669	34618	33669
query24	12270	2610	2528	2528
query25	539	401	405	401
query26	774	164	156	156
query27	2994	343	330	330
query28	7852	2463	2514	2463
query29	689	445	408	408
query30	237	147	158	147
query31	1040	799	821	799
query32	98	55	56	55
query33	755	296	298	296
query34	1171	522	533	522
query35	897	795	796	795
query36	1087	1009	987	987
query37	122	84	74	74
query38	4454	4150	4035	4035
query39	1517	1511	1445	1445
query40	199	101	102	101
query41	46	43	45	43
query42	119	102	106	102
query43	531	509	508	508
query44	1264	829	817	817
query45	194	174	169	169
query46	1178	747	730	730
query47	2015	1952	1942	1942
query48	441	325	327	325
query49	909	411	408	408
query50	858	390	411	390
query51	7466	7258	7084	7084
query52	110	92	92	92
query53	266	188	194	188
query54	947	406	415	406
query55	90	79	79	79
query56	274	243	230	230
query57	1269	1182	1166	1166
query58	248	233	226	226
query59	3539	3141	3258	3141
query60	273	271	276	271
query61	116	107	114	107
query62	886	703	696	696
query63	231	189	196	189
query64	4039	710	656	656
query65	3342	3267	3265	3265
query66	749	299	312	299
query67	16660	15559	15484	15484
query68	6069	561	555	555
query69	487	257	258	257
query70	1224	1151	1088	1088
query71	469	256	246	246
query72	6852	4120	4087	4087
query73	794	382	367	367
query74	10016	8860	8913	8860
query75	3607	2665	2645	2645
query76	3937	1055	1081	1055
query77	599	283	277	277
query78	10217	9462	9350	9350
query79	1133	599	585	585
query80	830	423	530	423
query81	519	232	222	222
query82	223	117	113	113
query83	198	145	144	144
query84	282	73	72	72
query85	936	304	305	304
query86	359	298	298	298
query87	4475	4497	4567	4497
query88	4199	2230	2211	2211
query89	408	295	287	287
query90	2009	183	184	183
query91	187	108	105	105
query92	69	49	53	49
query93	3294	571	556	556
query94	744	279	280	279
query95	356	254	251	251
query96	648	278	278	278
query97	2853	2623	2702	2623
query98	212	189	199	189
query99	1575	1316	1297	1297
Total cold run time: 307814 ms
Total hot run time: 195926 ms

@doris-robot

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

query1	0.03	0.03	0.03
query2	0.08	0.03	0.03
query3	0.23	0.08	0.07
query4	1.62	0.10	0.11
query5	0.42	0.43	0.40
query6	1.14	0.66	0.65
query7	0.02	0.02	0.02
query8	0.05	0.04	0.03
query9	0.58	0.51	0.51
query10	0.56	0.54	0.54
query11	0.15	0.10	0.10
query12	0.14	0.11	0.10
query13	0.60	0.61	0.59
query14	2.75	2.82	2.84
query15	0.91	0.83	0.83
query16	0.38	0.39	0.37
query17	1.04	1.01	1.01
query18	0.23	0.20	0.21
query19	1.98	1.89	2.01
query20	0.01	0.01	0.01
query21	15.36	0.57	0.61
query22	3.57	1.90	2.10
query23	17.00	0.92	0.75
query24	3.02	1.37	1.73
query25	0.19	0.14	0.13
query26	0.43	0.14	0.15
query27	0.05	0.04	0.04
query28	9.63	1.11	1.08
query29	12.58	3.25	3.23
query30	0.26	0.08	0.07
query31	2.83	0.38	0.38
query32	3.26	0.46	0.45
query33	3.08	3.14	3.06
query34	16.83	4.44	4.47
query35	4.47	4.49	4.44
query36	0.68	0.48	0.47
query37	0.09	0.06	0.06
query38	0.04	0.04	0.04
query39	0.03	0.02	0.02
query40	0.17	0.13	0.12
query41	0.08	0.02	0.02
query42	0.04	0.02	0.02
query43	0.04	0.03	0.02
Total cold run time: 106.65 s
Total hot run time: 33.12 s

@msridhar78

Copy link
Copy Markdown
Contributor Author

run buildall

@doris-robot

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

------ Round 1 ----------------------------------
q1	17568	6131	6044	6044
q2	2044	313	181	181
q3	10426	1242	748	748
q4	10262	856	435	435
q5	8321	2177	1956	1956
q6	208	181	152	152
q7	883	770	615	615
q8	9280	1371	1224	1224
q9	5159	4897	4992	4897
q10	6793	2329	1861	1861
q11	470	282	255	255
q12	346	373	232	232
q13	17787	3602	3029	3029
q14	226	226	216	216
q15	565	524	526	524
q16	647	630	595	595
q17	591	876	348	348
q18	7101	6625	6253	6253
q19	2125	962	588	588
q20	320	330	188	188
q21	2943	2311	2073	2073
q22	369	348	314	314
Total cold run time: 104434 ms
Total hot run time: 32728 ms

----- Round 2, with runtime_filter_mode=off -----
q1	6317	6233	6225	6225
q2	240	321	232	232
q3	2218	2704	2360	2360
q4	1452	1868	1433	1433
q5	4375	4770	4858	4770
q6	186	178	143	143
q7	2132	1981	1839	1839
q8	2689	2831	2708	2708
q9	7256	7164	7261	7164
q10	3056	3361	2764	2764
q11	571	524	490	490
q12	693	803	616	616
q13	3389	3835	3095	3095
q14	297	325	297	297
q15	559	524	499	499
q16	651	693	648	648
q17	1234	1723	1266	1266
q18	7755	7661	7398	7398
q19	901	1156	1079	1079
q20	2055	2055	1979	1979
q21	5894	5360	5077	5077
q22	637	636	622	622
Total cold run time: 54557 ms
Total hot run time: 52704 ms

@doris-robot

Copy link
Copy Markdown
TPC-DS: Total hot run time: 197338 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 417e630bcdccc5e7973a8a2874b90b088a9c7afb, data reload: false

query1	1293	940	971	940
query2	6400	2337	2285	2285
query3	11003	4702	4660	4660
query4	32969	23731	23696	23696
query5	4270	623	450	450
query6	289	208	192	192
query7	3984	492	304	304
query8	306	257	233	233
query9	9329	2707	2711	2707
query10	469	311	244	244
query11	18131	15507	15200	15200
query12	163	105	99	99
query13	1557	560	416	416
query14	10446	7799	7427	7427
query15	262	221	194	194
query16	7152	647	488	488
query17	1554	782	613	613
query18	1248	377	337	337
query19	214	198	172	172
query20	119	116	118	116
query21	211	139	117	117
query22	4739	4556	4635	4556
query23	34183	33721	33745	33721
query24	6617	2258	2364	2258
query25	477	452	396	396
query26	759	272	155	155
query27	2295	465	331	331
query28	5441	2480	2482	2480
query29	536	545	417	417
query30	204	186	191	186
query31	973	904	881	881
query32	75	60	59	59
query33	473	349	292	292
query34	768	866	527	527
query35	800	840	775	775
query36	1028	1043	945	945
query37	120	93	79	79
query38	4455	4197	4270	4197
query39	1557	1498	1449	1449
query40	205	116	103	103
query41	50	44	45	44
query42	133	111	101	101
query43	520	537	486	486
query44	1332	827	827	827
query45	180	178	165	165
query46	859	1071	682	682
query47	2036	2009	1890	1890
query48	391	397	327	327
query49	724	495	407	407
query50	614	665	407	407
query51	7338	7349	7196	7196
query52	106	103	92	92
query53	228	270	191	191
query54	478	505	420	420
query55	81	76	77	76
query56	255	296	254	254
query57	1225	1237	1166	1166
query58	231	226	216	216
query59	3285	3272	3088	3088
query60	278	275	247	247
query61	109	114	107	107
query62	917	823	742	742
query63	232	194	189	189
query64	3106	1039	649	649
query65	3369	3292	3267	3267
query66	784	414	307	307
query67	16124	15789	15422	15422
query68	9920	747	518	518
query69	460	296	254	254
query70	1239	1165	1133	1133
query71	433	294	247	247
query72	6199	3736	3836	3736
query73	653	739	363	363
query74	10141	9334	8984	8984
query75	4584	3165	2679	2679
query76	5294	1187	767	767
query77	959	355	277	277
query78	10135	10317	9609	9609
query79	3424	892	582	582
query80	869	511	419	419
query81	488	266	243	243
query82	620	147	121	121
query83	198	160	202	160
query84	281	91	69	69
query85	779	377	300	300
query86	355	314	308	308
query87	4627	4389	4395	4389
query88	4239	2219	2216	2216
query89	418	328	304	304
query90	1888	187	195	187
query91	131	135	103	103
query92	68	54	53	53
query93	1797	899	526	526
query94	653	395	287	287
query95	331	269	256	256
query96	485	594	286	286
query97	2718	2850	2670	2670
query98	237	198	197	197
query99	1699	1531	1433	1433
Total cold run time: 298381 ms
Total hot run time: 197338 ms

@doris-robot

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

query1	0.03	0.03	0.03
query2	0.07	0.03	0.03
query3	0.24	0.08	0.07
query4	1.61	0.11	0.10
query5	0.40	0.40	0.42
query6	1.18	0.65	0.65
query7	0.02	0.02	0.02
query8	0.04	0.03	0.04
query9	0.60	0.49	0.52
query10	0.56	0.54	0.55
query11	0.14	0.10	0.12
query12	0.13	0.12	0.11
query13	0.62	0.61	0.59
query14	2.84	2.76	2.71
query15	0.90	0.83	0.83
query16	0.41	0.39	0.42
query17	1.01	1.00	1.05
query18	0.23	0.21	0.20
query19	1.92	1.90	1.98
query20	0.01	0.01	0.02
query21	15.37	0.86	0.58
query22	0.75	0.78	0.70
query23	15.28	1.44	0.61
query24	2.51	1.91	0.44
query25	0.20	0.14	0.22
query26	0.34	0.14	0.15
query27	0.05	0.05	0.05
query28	13.74	1.56	1.04
query29	12.59	4.15	3.39
query30	0.25	0.08	0.08
query31	2.81	0.58	0.39
query32	3.23	0.55	0.46
query33	3.11	3.16	3.04
query34	16.85	5.17	4.46
query35	4.47	4.51	4.46
query36	0.64	0.49	0.47
query37	0.10	0.07	0.06
query38	0.04	0.03	0.03
query39	0.04	0.03	0.02
query40	0.16	0.14	0.13
query41	0.08	0.02	0.03
query42	0.04	0.03	0.02
query43	0.04	0.03	0.02
Total cold run time: 105.65 s
Total hot run time: 30.95 s


@Override
public void doRun(ConnectContext ctx, StmtExecutor executor) throws Exception {
PropertyAnalyzer.checkCatalogProperties(newProperties, true);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think should call super class's validate method here. And please do same for AlterCatalogCommentCommand

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done - please review

@msridhar78

Copy link
Copy Markdown
Contributor Author

run buildall

@doris-robot

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

------ Round 1 ----------------------------------
q1	17594	6164	6035	6035
q2	2045	320	175	175
q3	10429	1273	769	769
q4	10222	1027	527	527
q5	7700	2440	2172	2172
q6	209	179	145	145
q7	903	757	611	611
q8	9267	1386	1139	1139
q9	5262	4916	4843	4843
q10	6882	2383	1920	1920
q11	479	280	252	252
q12	349	356	249	249
q13	17784	3673	3093	3093
q14	233	237	216	216
q15	574	530	522	522
q16	623	626	603	603
q17	572	875	331	331
q18	6949	6683	6472	6472
q19	2444	964	540	540
q20	296	319	185	185
q21	2818	2192	1945	1945
q22	371	340	310	310
Total cold run time: 104005 ms
Total hot run time: 33054 ms

----- Round 2, with runtime_filter_mode=off -----
q1	6306	6232	6210	6210
q2	252	328	237	237
q3	2302	2715	2367	2367
q4	1467	1856	1373	1373
q5	4353	4784	4915	4784
q6	189	177	139	139
q7	2071	1980	1785	1785
q8	2613	2848	2665	2665
q9	7335	7327	7239	7239
q10	3100	3255	2740	2740
q11	592	558	513	513
q12	670	787	613	613
q13	3532	3910	3312	3312
q14	281	316	291	291
q15	578	527	521	521
q16	636	697	647	647
q17	1207	1758	1309	1309
q18	7693	7468	7439	7439
q19	797	943	1171	943
q20	1991	2059	1912	1912
q21	5551	5146	5017	5017
q22	628	605	599	599
Total cold run time: 54144 ms
Total hot run time: 52655 ms

@doris-robot

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

query1	1311	961	910	910
query2	6298	2151	2082	2082
query3	10972	4577	4462	4462
query4	61386	34824	23428	23428
query5	5372	650	473	473
query6	364	211	194	194
query7	4992	509	305	305
query8	320	255	242	242
query9	6671	2791	2775	2775
query10	444	295	259	259
query11	15597	15539	15630	15539
query12	175	112	108	108
query13	1047	589	440	440
query14	11321	6961	6982	6961
query15	211	201	177	177
query16	6805	630	476	476
query17	1104	724	564	564
query18	1822	387	316	316
query19	196	183	150	150
query20	121	113	112	112
query21	210	122	108	108
query22	4409	4456	4485	4456
query23	34360	33444	33427	33427
query24	5518	2422	2386	2386
query25	502	488	425	425
query26	660	280	165	165
query27	1583	490	341	341
query28	4032	2545	2433	2433
query29	518	556	413	413
query30	213	187	154	154
query31	921	934	799	799
query32	124	55	58	55
query33	446	370	313	313
query34	726	868	531	531
query35	811	843	811	811
query36	1019	1102	965	965
query37	125	105	88	88
query38	4410	4480	4147	4147
query39	1501	1470	1462	1462
query40	204	113	101	101
query41	61	51	49	49
query42	128	106	109	106
query43	536	532	507	507
query44	1317	826	842	826
query45	183	174	174	174
query46	893	1061	671	671
query47	1918	1880	1839	1839
query48	377	432	325	325
query49	686	478	407	407
query50	679	664	401	401
query51	6988	6992	6983	6983
query52	108	117	96	96
query53	233	265	188	188
query54	495	527	438	438
query55	86	82	84	82
query56	259	270	254	254
query57	1229	1192	1122	1122
query58	254	250	241	241
query59	3285	3148	2862	2862
query60	274	265	260	260
query61	121	114	114	114
query62	801	798	712	712
query63	230	193	196	193
query64	1277	1074	658	658
query65	3304	3266	3172	3172
query66	737	390	309	309
query67	15926	15932	15669	15669
query68	4987	838	530	530
query69	516	311	261	261
query70	1228	1145	1144	1144
query71	412	287	254	254
query72	6083	3897	3832	3832
query73	814	759	364	364
query74	10179	8973	9148	8973
query75	3225	3207	2615	2615
query76	3787	1185	780	780
query77	481	377	284	284
query78	10098	10044	9237	9237
query79	2846	805	612	612
query80	1529	533	432	432
query81	557	287	237	237
query82	356	153	118	118
query83	269	170	161	161
query84	285	97	76	76
query85	767	370	305	305
query86	470	301	307	301
query87	4439	4429	4379	4379
query88	3679	2222	2179	2179
query89	410	325	288	288
query90	1600	189	194	189
query91	141	141	106	106
query92	75	56	56	56
query93	2200	873	538	538
query94	761	417	315	315
query95	349	280	307	280
query96	484	627	288	288
query97	2825	2888	2729	2729
query98	234	204	202	202
query99	1409	1519	1417	1417
Total cold run time: 308701 ms
Total hot run time: 195693 ms

@doris-robot

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

query1	0.03	0.03	0.04
query2	0.07	0.03	0.04
query3	0.24	0.07	0.07
query4	1.61	0.11	0.11
query5	0.42	0.42	0.39
query6	1.18	0.66	0.67
query7	0.03	0.02	0.01
query8	0.04	0.03	0.02
query9	0.58	0.53	0.50
query10	0.56	0.57	0.53
query11	0.14	0.11	0.10
query12	0.14	0.11	0.11
query13	0.61	0.59	0.61
query14	2.73	2.72	2.72
query15	0.91	0.83	0.82
query16	0.37	0.38	0.38
query17	1.02	1.05	1.03
query18	0.23	0.20	0.21
query19	1.86	1.88	2.02
query20	0.01	0.02	0.01
query21	15.38	0.97	0.62
query22	0.76	0.74	0.63
query23	15.48	1.36	0.58
query24	3.41	0.94	1.13
query25	0.19	0.15	0.09
query26	0.19	0.14	0.14
query27	0.06	0.05	0.04
query28	14.39	1.53	1.06
query29	12.60	3.96	3.22
query30	0.25	0.09	0.07
query31	2.83	0.57	0.39
query32	3.23	0.56	0.46
query33	3.09	3.10	3.05
query34	16.66	5.10	4.48
query35	4.56	4.49	4.54
query36	0.64	0.50	0.48
query37	0.09	0.06	0.06
query38	0.05	0.04	0.04
query39	0.03	0.02	0.02
query40	0.17	0.13	0.12
query41	0.08	0.02	0.02
query42	0.03	0.02	0.03
query43	0.04	0.03	0.02
Total cold run time: 106.99 s
Total hot run time: 31.23 s

@msridhar78

Copy link
Copy Markdown
Contributor Author

run buildall

@doris-robot

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

------ Round 1 ----------------------------------
q1	17618	5445	5343	5343
q2	2037	316	181	181
q3	10390	1198	723	723
q4	10209	986	527	527
q5	7510	2371	2142	2142
q6	189	164	130	130
q7	884	733	615	615
q8	9253	1367	1187	1187
q9	5301	4820	4796	4796
q10	6881	2342	1884	1884
q11	472	275	246	246
q12	342	348	212	212
q13	17764	3644	3096	3096
q14	243	220	211	211
q15	507	458	466	458
q16	619	607	590	590
q17	548	868	323	323
q18	6942	6519	6302	6302
q19	1847	1080	518	518
q20	297	312	183	183
q21	2767	2150	1944	1944
q22	365	337	312	312
Total cold run time: 102985 ms
Total hot run time: 31923 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5495	5453	5429	5429
q2	233	329	237	237
q3	2257	2604	2358	2358
q4	1464	1854	1383	1383
q5	4317	4790	4675	4675
q6	161	159	129	129
q7	1985	1940	1857	1857
q8	2661	2830	2710	2710
q9	7227	7156	7197	7156
q10	3032	3269	2795	2795
q11	571	514	495	495
q12	643	725	596	596
q13	3515	3944	3283	3283
q14	291	297	275	275
q15	519	491	468	468
q16	648	713	663	663
q17	1208	1737	1258	1258
q18	7574	7355	7271	7271
q19	772	1121	1076	1076
q20	1979	2048	1874	1874
q21	5756	5226	4892	4892
q22	682	633	598	598
Total cold run time: 52990 ms
Total hot run time: 51478 ms

@doris-robot

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

query1	1300	934	930	930
query2	6465	2100	2041	2041
query3	10979	4376	4421	4376
query4	60808	28727	23179	23179
query5	5610	592	448	448
query6	431	183	167	167
query7	5550	506	290	290
query8	321	226	224	224
query9	8154	2697	2681	2681
query10	450	312	253	253
query11	17559	15101	15387	15101
query12	161	107	109	107
query13	1468	552	422	422
query14	11027	7013	7575	7013
query15	232	202	185	185
query16	6809	683	470	470
query17	1161	782	605	605
query18	1372	407	334	334
query19	226	187	198	187
query20	122	117	106	106
query21	213	134	102	102
query22	4429	4469	4685	4469
query23	33867	33622	33561	33561
query24	5488	2237	2266	2237
query25	468	455	403	403
query26	656	280	152	152
query27	1683	479	334	334
query28	4088	2511	2446	2446
query29	524	555	431	431
query30	230	181	153	153
query31	911	900	835	835
query32	66	55	57	55
query33	461	361	291	291
query34	737	876	517	517
query35	807	850	748	748
query36	1011	1034	974	974
query37	121	97	80	80
query38	4255	4384	4166	4166
query39	1496	1427	1421	1421
query40	202	122	99	99
query41	50	50	49	49
query42	112	102	100	100
query43	517	520	507	507
query44	1345	812	802	802
query45	186	177	167	167
query46	875	1044	655	655
query47	1925	1938	1874	1874
query48	386	417	322	322
query49	717	490	427	427
query50	661	666	406	406
query51	7158	7040	6931	6931
query52	103	106	90	90
query53	229	249	188	188
query54	473	511	418	418
query55	88	83	74	74
query56	265	262	275	262
query57	1225	1194	1154	1154
query58	250	245	242	242
query59	3351	3253	2902	2902
query60	284	263	249	249
query61	114	113	111	111
query62	756	705	629	629
query63	218	188	188	188
query64	1293	1019	649	649
query65	3235	3124	3129	3124
query66	711	393	301	301
query67	16005	15758	15598	15598
query68	5043	820	545	545
query69	490	299	266	266
query70	1190	1181	1159	1159
query71	411	283	246	246
query72	6280	3875	3850	3850
query73	815	746	360	360
query74	10112	9184	8535	8535
query75	3166	3158	2680	2680
query76	3711	1134	754	754
query77	485	352	285	285
query78	10084	10005	9341	9341
query79	3323	802	587	587
query80	1696	533	449	449
query81	561	276	250	250
query82	519	159	121	121
query83	284	168	156	156
query84	287	92	71	71
query85	796	339	299	299
query86	474	319	317	317
query87	4520	4474	4303	4303
query88	4475	2217	2191	2191
query89	412	321	285	285
query90	1583	185	192	185
query91	135	140	105	105
query92	66	57	54	54
query93	2887	865	539	539
query94	797	402	300	300
query95	330	259	255	255
query96	495	611	286	286
query97	2839	2866	2752	2752
query98	233	200	192	192
query99	1282	1426	1298	1298
Total cold run time: 314231 ms
Total hot run time: 194028 ms

@doris-robot

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

query1	0.04	0.04	0.03
query2	0.07	0.03	0.04
query3	0.24	0.07	0.07
query4	1.62	0.10	0.10
query5	0.41	0.42	0.41
query6	1.16	0.65	0.66
query7	0.02	0.02	0.01
query8	0.04	0.03	0.03
query9	0.57	0.51	0.52
query10	0.55	0.55	0.55
query11	0.15	0.10	0.10
query12	0.14	0.11	0.12
query13	0.61	0.60	0.59
query14	2.81	2.71	2.72
query15	0.91	0.83	0.82
query16	0.40	0.39	0.38
query17	1.00	1.03	1.02
query18	0.23	0.21	0.21
query19	1.92	1.81	2.03
query20	0.02	0.01	0.02
query21	15.36	0.94	0.59
query22	0.75	0.86	0.77
query23	15.16	1.42	0.59
query24	2.71	1.32	1.58
query25	0.17	0.15	0.16
query26	0.29	0.14	0.14
query27	0.07	0.06	0.04
query28	14.05	0.99	0.43
query29	12.56	3.91	3.24
query30	0.25	0.09	0.05
query31	2.83	0.59	0.37
query32	3.23	0.55	0.46
query33	2.95	2.98	3.03
query34	16.30	5.15	4.49
query35	4.53	4.44	4.45
query36	0.62	0.50	0.48
query37	0.10	0.06	0.06
query38	0.04	0.04	0.04
query39	0.04	0.02	0.03
query40	0.16	0.13	0.12
query41	0.08	0.03	0.02
query42	0.04	0.02	0.02
query43	0.03	0.04	0.03
Total cold run time: 105.23 s
Total hot run time: 31 s

@msridhar78
msridhar78 force-pushed the alter_catalog_properties branch from 7d9ef95 to 750257b Compare February 6, 2025 14:02
@starocean999

Copy link
Copy Markdown
Contributor

run buildall

@doris-robot

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

------ Round 1 ----------------------------------
q1	17572	5168	5029	5029
q2	2048	318	170	170
q3	10449	1247	728	728
q4	10208	1034	527	527
q5	7544	2388	2352	2352
q6	189	168	130	130
q7	892	737	594	594
q8	9292	1288	1061	1061
q9	4886	4730	4505	4505
q10	6817	2324	1883	1883
q11	487	279	260	260
q12	350	350	215	215
q13	17754	3740	3056	3056
q14	233	229	204	204
q15	509	466	458	458
q16	626	626	590	590
q17	584	889	347	347
q18	6552	6338	6225	6225
q19	1205	954	562	562
q20	314	328	206	206
q21	2819	2199	1930	1930
q22	359	328	297	297
Total cold run time: 101689 ms
Total hot run time: 31329 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5095	5096	5094	5094
q2	239	323	229	229
q3	2166	2684	2252	2252
q4	1427	1823	1353	1353
q5	4251	4153	4215	4153
q6	211	165	126	126
q7	1901	1834	1648	1648
q8	2596	2638	2589	2589
q9	7250	7222	7141	7141
q10	3032	3204	2773	2773
q11	574	513	509	509
q12	698	775	602	602
q13	3543	3801	3301	3301
q14	295	288	257	257
q15	502	472	468	468
q16	645	695	635	635
q17	1147	1608	1339	1339
q18	7744	7449	7265	7265
q19	826	816	808	808
q20	1965	2004	1884	1884
q21	5377	4954	4708	4708
q22	599	622	530	530
Total cold run time: 52083 ms
Total hot run time: 49664 ms

@doris-robot

Copy link
Copy Markdown
TPC-DS: Total hot run time: 191486 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 750257bb027467bbc591af4a58aa3198fee828e2, data reload: false

query1	1319	960	960	960
query2	6220	1922	1902	1902
query3	11010	4442	4446	4442
query4	56552	25094	23358	23358
query5	5162	492	493	492
query6	376	197	187	187
query7	5136	503	294	294
query8	331	267	237	237
query9	6570	2505	2530	2505
query10	417	314	253	253
query11	15151	15183	14936	14936
query12	166	108	105	105
query13	1185	504	379	379
query14	10040	6748	6728	6728
query15	206	200	185	185
query16	7043	659	480	480
query17	1037	721	551	551
query18	1507	408	305	305
query19	194	217	170	170
query20	123	125	123	123
query21	203	121	105	105
query22	4313	4625	4430	4430
query23	33773	33675	33520	33520
query24	5766	2482	2438	2438
query25	455	466	403	403
query26	677	287	149	149
query27	1733	508	342	342
query28	2875	2449	2438	2438
query29	573	556	439	439
query30	208	183	160	160
query31	867	854	814	814
query32	76	65	64	64
query33	428	353	294	294
query34	747	889	514	514
query35	791	843	741	741
query36	973	1005	934	934
query37	126	100	82	82
query38	4298	4297	4268	4268
query39	1496	1461	1451	1451
query40	211	116	103	103
query41	52	58	51	51
query42	122	110	117	110
query43	525	512	504	504
query44	1363	815	822	815
query45	178	171	167	167
query46	899	1078	664	664
query47	1837	1877	1836	1836
query48	397	413	310	310
query49	707	497	448	448
query50	741	745	426	426
query51	4264	4294	4210	4210
query52	108	102	98	98
query53	237	271	198	198
query54	495	521	451	451
query55	84	83	82	82
query56	279	265	273	265
query57	1154	1211	1087	1087
query58	247	235	238	235
query59	2836	2861	2805	2805
query60	284	289	275	275
query61	139	140	142	140
query62	743	742	684	684
query63	230	197	198	197
query64	1583	1124	792	792
query65	3279	3277	3321	3277
query66	721	412	308	308
query67	15905	15550	15511	15511
query68	4628	788	575	575
query69	507	296	290	290
query70	1207	1125	1140	1125
query71	437	300	261	261
query72	6275	3671	3800	3671
query73	843	757	347	347
query74	8900	9247	8730	8730
query75	3320	3152	2732	2732
query76	3511	1177	757	757
query77	552	384	280	280
query78	10044	10074	9394	9394
query79	2726	823	600	600
query80	797	589	449	449
query81	534	279	232	232
query82	461	149	121	121
query83	178	173	157	157
query84	290	98	74	74
query85	778	356	304	304
query86	397	317	298	298
query87	4480	4601	4371	4371
query88	3785	2200	2180	2180
query89	410	318	293	293
query90	1870	190	195	190
query91	140	143	110	110
query92	79	61	56	56
query93	2713	1036	575	575
query94	655	421	307	307
query95	364	274	264	264
query96	490	581	269	269
query97	2812	2877	2763	2763
query98	229	206	202	202
query99	1352	1406	1282	1282
Total cold run time: 295507 ms
Total hot run time: 191486 ms

@doris-robot

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

query1	0.03	0.03	0.04
query2	0.07	0.03	0.03
query3	0.23	0.07	0.06
query4	1.62	0.10	0.10
query5	0.41	0.42	0.39
query6	1.16	0.66	0.66
query7	0.02	0.02	0.02
query8	0.03	0.03	0.03
query9	0.59	0.52	0.52
query10	0.58	0.58	0.56
query11	0.15	0.10	0.11
query12	0.14	0.11	0.11
query13	0.62	0.60	0.62
query14	2.82	2.74	2.68
query15	0.93	0.86	0.84
query16	0.37	0.37	0.38
query17	1.05	1.05	1.05
query18	0.21	0.19	0.20
query19	1.90	1.85	1.96
query20	0.01	0.01	0.02
query21	15.37	0.92	0.56
query22	0.76	1.04	0.81
query23	14.87	1.41	0.63
query24	7.33	1.49	1.20
query25	0.51	0.36	0.08
query26	0.51	0.16	0.13
query27	0.05	0.05	0.05
query28	9.85	0.85	0.43
query29	12.62	3.92	3.29
query30	0.24	0.08	0.06
query31	2.83	0.60	0.38
query32	3.23	0.55	0.46
query33	2.97	2.99	3.06
query34	15.68	5.08	4.54
query35	4.56	4.48	4.52
query36	0.67	0.52	0.49
query37	0.10	0.06	0.07
query38	0.05	0.04	0.03
query39	0.04	0.03	0.02
query40	0.17	0.14	0.13
query41	0.10	0.03	0.02
query42	0.04	0.02	0.02
query43	0.04	0.04	0.03
Total cold run time: 105.53 s
Total hot run time: 31.09 s

@msridhar78

Copy link
Copy Markdown
Contributor Author

run buildall

@doris-robot

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

------ Round 1 ----------------------------------
q1	17611	5230	5111	5111
q2	2050	303	170	170
q3	10405	1231	733	733
q4	10197	1033	530	530
q5	7499	2427	2308	2308
q6	204	168	133	133
q7	919	748	615	615
q8	9310	1307	1048	1048
q9	4898	4673	4726	4673
q10	6804	2296	1879	1879
q11	472	276	276	276
q12	348	354	233	233
q13	17786	3659	3100	3100
q14	230	233	206	206
q15	503	477	451	451
q16	628	617	581	581
q17	575	856	332	332
q18	6709	6156	6254	6156
q19	1447	940	549	549
q20	317	325	188	188
q21	3149	2143	1992	1992
q22	372	344	313	313
Total cold run time: 102433 ms
Total hot run time: 31577 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5208	5311	5179	5179
q2	243	341	234	234
q3	2254	2732	2379	2379
q4	1483	1873	1400	1400
q5	4332	4205	4270	4205
q6	214	163	124	124
q7	1854	1815	1767	1767
q8	2596	2617	2567	2567
q9	7180	7205	7148	7148
q10	3023	3199	2821	2821
q11	586	528	487	487
q12	720	786	624	624
q13	3524	3933	3306	3306
q14	267	303	276	276
q15	513	478	451	451
q16	652	668	638	638
q17	1196	1572	1383	1383
q18	7557	7361	7243	7243
q19	827	883	979	883
q20	1958	2085	1873	1873
q21	5502	5094	4786	4786
q22	638	599	522	522
Total cold run time: 52327 ms
Total hot run time: 50296 ms

@doris-robot

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

query1	1317	958	932	932
query2	6224	1846	1906	1846
query3	10957	4744	4522	4522
query4	53814	25849	22945	22945
query5	5141	573	538	538
query6	357	204	185	185
query7	4997	523	311	311
query8	341	258	239	239
query9	6315	2544	2550	2544
query10	430	325	256	256
query11	15181	15172	15208	15172
query12	157	118	111	111
query13	1123	530	369	369
query14	10734	7080	7174	7080
query15	210	196	179	179
query16	7073	681	495	495
query17	1103	736	579	579
query18	1507	424	317	317
query19	205	195	164	164
query20	128	126	137	126
query21	221	124	105	105
query22	4446	4312	4357	4312
query23	33764	33409	33484	33409
query24	5983	2473	2483	2473
query25	512	510	433	433
query26	684	289	164	164
query27	1971	522	341	341
query28	2774	2536	2450	2450
query29	599	573	435	435
query30	212	192	157	157
query31	857	833	847	833
query32	86	67	64	64
query33	458	374	321	321
query34	802	876	510	510
query35	839	854	755	755
query36	947	1014	928	928
query37	126	100	77	77
query38	4213	4254	4311	4254
query39	1505	1431	1471	1431
query40	214	120	109	109
query41	51	52	49	49
query42	126	102	102	102
query43	512	538	495	495
query44	1395	832	820	820
query45	183	180	167	167
query46	950	1106	698	698
query47	1858	1846	1765	1765
query48	400	436	317	317
query49	701	549	436	436
query50	848	825	446	446
query51	4328	4287	4229	4229
query52	120	106	99	99
query53	231	277	194	194
query54	490	527	432	432
query55	84	83	90	83
query56	295	296	270	270
query57	1165	1167	1081	1081
query58	257	255	246	246
query59	2783	2675	2734	2675
query60	298	287	283	283
query61	133	116	117	116
query62	773	750	720	720
query63	246	204	196	196
query64	1653	1070	701	701
query65	3429	3228	3299	3228
query66	730	403	313	313
query67	15915	15430	15416	15416
query68	5879	900	507	507
query69	534	318	279	279
query70	1215	1089	1109	1089
query71	453	303	268	268
query72	5773	3711	3891	3711
query73	1206	781	350	350
query74	9096	8945	9131	8945
query75	3197	3164	2744	2744
query76	3834	1183	784	784
query77	533	379	283	283
query78	10139	10158	9322	9322
query79	2413	856	594	594
query80	626	599	471	471
query81	512	285	244	244
query82	495	123	93	93
query83	175	167	157	157
query84	285	94	76	76
query85	798	365	325	325
query86	378	304	259	259
query87	4472	4539	4404	4404
query88	3459	2209	2197	2197
query89	410	325	300	300
query90	1744	195	194	194
query91	134	146	107	107
query92	77	62	57	57
query93	1781	1062	595	595
query94	725	411	308	308
query95	353	270	260	260
query96	498	585	271	271
query97	3303	3432	3279	3279
query98	229	209	205	205
query99	1330	1421	1392	1392
Total cold run time: 294537 ms
Total hot run time: 192118 ms

@doris-robot

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

query1	0.03	0.03	0.03
query2	0.07	0.03	0.03
query3	0.24	0.07	0.07
query4	1.60	0.10	0.11
query5	0.54	0.55	0.55
query6	1.19	0.71	0.71
query7	0.03	0.02	0.01
query8	0.04	0.03	0.03
query9	0.58	0.54	0.52
query10	0.56	0.57	0.56
query11	0.15	0.11	0.11
query12	0.15	0.12	0.12
query13	0.62	0.60	0.60
query14	2.72	2.71	2.83
query15	0.93	0.85	0.87
query16	0.38	0.40	0.40
query17	1.02	1.05	1.06
query18	0.22	0.20	0.20
query19	1.90	1.91	1.98
query20	0.02	0.01	0.01
query21	15.36	0.89	0.54
query22	0.75	1.22	0.72
query23	14.84	1.40	0.67
query24	7.43	1.36	1.05
query25	0.50	0.14	0.18
query26	0.56	0.16	0.14
query27	0.05	0.06	0.05
query28	9.09	0.84	0.43
query29	12.54	3.96	3.36
query30	0.25	0.10	0.06
query31	2.80	0.59	0.39
query32	3.22	0.54	0.46
query33	2.99	3.01	3.03
query34	15.80	5.11	4.52
query35	4.50	4.52	4.54
query36	0.68	0.49	0.49
query37	0.09	0.06	0.07
query38	0.04	0.04	0.04
query39	0.02	0.02	0.02
query40	0.16	0.13	0.13
query41	0.08	0.03	0.02
query42	0.04	0.03	0.02
query43	0.04	0.03	0.02
Total cold run time: 104.82 s
Total hot run time: 31.43 s

@github-actions github-actions Bot added the approved Indicates a PR has been approved by one committer. label Mar 4, 2025
@github-actions

github-actions Bot commented Mar 4, 2025

Copy link
Copy Markdown
Contributor

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

@github-actions

github-actions Bot commented Mar 4, 2025

Copy link
Copy Markdown
Contributor

PR approved by anyone and no changes requested.

@starocean999
starocean999 merged commit 5a93879 into apache:master Mar 4, 2025
koarz pushed a commit to koarz/doris that referenced this pull request Jun 4, 2025
morningman added a commit to morningman/doris that referenced this pull request Nov 6, 2026
…udit text

### Background

SHOW CREATE CATALOG, SHOW CATALOG, the `catalogs()` table function and the audit text of CREATE CATALOG replace a property value with `*XXX` when `DatasourcePrintableMap.isSensitiveKey` matches its key. Until now the keys came from a list in fe-core and from the keys filesystem plugins report at startup. A connector plugin marks its secret properties `sensitive = true`, but that mark only masks the connector's own log lines. A connector tells the engine about its security-relevant properties through `ConnectorProvider#securitySurface()`.

### What problem does this PR solve?

Issue Number: None
Related PR: apache#69588 (added the connector security surface this extends), apache#45164 (introduced the unmasked ALTER CATALOG audit text), apache#27115 (masked it for the statement apache#45164 replaced), apache#59502 (added `iceberg.jdbc.password`), apache#54523 (added the Paimon REST DLF keys), apache#65730 (branch-4.1's Lance catalog, whose REST secrets the Lance port will declare on this surface)
PR Type: Bugfix

Problem Summary:

Catalog secrets that only a connector knows are on no masking list, so SHOW CREATE CATALOG and the other renderings print them in clear: `iceberg.jdbc.password`, `paimon.jdbc.password`, the Paimon REST DLF key pair, `mc.access_key`, and credentials passed through under `trino.` or `adbc.`. Separately, `ALTER CATALOG ... SET PROPERTIES` is written to the audit log unmasked, whatever the key. Each connector now declares its secrets on its security surface, taken from its `sensitive` marks, and the surface can also declare a namespace of secret keys for options passed through unread; Fluss's lake options were hard-coded in fe-core for that reason. The engine masks the union, with fe-core's own list kept as the floor. ALTER CATALOG is masked like CREATE CATALOG.

### Details

- **Change map:** 42 files, +1035 −76 over two commits: production code +376 −48, tests +645 −24, the connector README +13 −3, the plugin API version in `fe/fe-connector/pom.xml`. The first commit adds secret keys to the surface (reviewed alone before). The second does the rest:
  1. Key namespaces on the SPI: `withSensitiveKeyPrefix` and `SensitiveKeyPrefix.covers`, which holds the matching rule; a collection form of `withSensitiveKeys` (`ConnectorSecuritySurface`, +130).
  2. Engine: `isSensitiveKey` matches registered namespaces, the Fluss rule becomes one of them; `ConnectorPluginManager` registers them and reads every surface before it publishes a provider (+70).
  3. Connectors: every provider declares its secrets; `MetaStoreProviders.sensitivePropertyKeys()` gives the union of a plugin's metastore backends; `IcebergJdbcMetaStoreProvider` reports its keys like its siblings; the keytab paths lose their `sensitive` mark (+140).
  4. ALTER CATALOG audit masking (+16).
- **Frequency:** Always. Create or alter a catalog that sets one of the keys above, then run SHOW CREATE CATALOG, SHOW CATALOG `<name>` or `select * from catalogs()`, or read the audit log after an ALTER CATALOG ... SET PROPERTIES.
- **Root cause:** `isSensitiveKey` consulted only fe-core's list and the filesystem providers' keys. A connector's `sensitive` marks fed only `toMaskedString`; `MetaStoreProvider.sensitivePropertyKeys()` existed for this, but nothing called it, and the Iceberg JDBC backend did not implement it. For ALTER CATALOG, `AlterCatalogPropertiesCommand` does not implement `NeedAuditEncryption` and `LogicalPlanBuilderForEncryption` has no `visitAlterCatalogProperties`, so `AuditLogHelper` records the original text; the statement it replaced in apache#45164 was masked by apache#27115.
- **Why existing tests missed it:** Unit tests: `DatasourcePrintableMapTest` checks fe-core's own keys, the provider surface tests checked only the SSRF and driver_url keys, and `EncryptSQLTest` and `RepositoryAuditEncryptionTest` cover CREATE CATALOG, repositories and resources but not ALTER CATALOG. Regression: `audit/test_external_catalog_credential_masking` creates only Iceberg REST catalogs, whose keys are on fe-core's list, and never alters one.
- **Fix:** The engine must not name a connector's properties, so the connectors declare their secrets, from the same `sensitive` marks that mask their logs; jdbc and es declare both spellings their legacy prefix allows, and trino and adbc declare the namespace they pass through, a key there being a secret when its rest names `key`, `secret`, `password`, `token` or `credential` (also `authorization` for ADBC). fe-core keeps the connector keys it lists, so a catalog whose plugin is not loaded masks what it masked before. A provider whose `securitySurface()` throws at startup is skipped, as a filesystem provider is, instead of stopping FE.
- **Other paths and branches:** Fixed here: every rendering above and FE's statement logging, which share `isSensitiveKey` and `NeedAuditEncryption`. Not covered, since a key name cannot express them safely: raw Iceberg SDK keys copied through (`token`, `credential`), Paimon options re-keyed from `paimon.*`, Hadoop `fs.*` keys, and secrets inside a URL. The ALTER CATALOG gap is on branch-4.0, 4.1 and 4.2 (from apache#45164); branch-3.1 still uses the masked statement. branch-4.1 and 4.2 also print the connector keys above in clear; without the connector SPI their fix differs and is tracked separately.
- **Behavior change:** The namespaces also mask non-secrets whose names carry those words, such as `trino.hive.s3.aws-access-key` or a keystore path. Keytab paths, which no release masks, are no longer masked in connector log lines: marked `sensitive`, `hadoop.kerberos.keytab` would be masked in every storage vault and resource.

### Testing

All runs were local (macOS), on master `f5c993f2c94` plus this change:

- Regression `audit/test_external_catalog_credential_masking`, extended with an Iceberg JDBC catalog: SHOW CREATE CATALOG masks `iceberg.jdbc.password`, and the audit texts of its CREATE CATALOG and of an ALTER CATALOG that sets the password and `s3.secret_key` hold only `*XXX`. Against the local cluster's FE without this change it fails at the first new check, SHOW CREATE CATALOG printing the password; with a FE built from this change it passes.
- fe-connector-spi: all 160 tests, with the refreshed surface baseline (+4 lines); the metastore modules: all tests; ten connector modules: 29 classes, 511 tests, including each connector's surface test, which checks real key names.
- fe-core: 26 classes, 341 tests, including `ConnectorPluginManagerTest`, `DatasourcePrintableMapTest`, `EncryptSQLTest` and the audit and plugin gate tests; 14 of them again after the last change to registration.
- Twenty mutations, each caught by its test: for example, reverting either half of the ALTER CATALOG fix (`EncryptSQLTest` sees the statement in clear), matching a marker anywhere in the key, an empty metastore union, or re-marking a keytab.

### Notes for Reviewers

- `SensitiveKeyPrefix.covers` lives on the SPI so that a connector's test can check its declaration against real key names and the engine applies the same rule; the Fluss floor in fe-core uses it too.
- The entries both fe-core and a connector declare are deliberate: the floor is frozen, as the comment in `DatasourcePrintableMap` says.
- The plugin API stays at 31.0, the first commit's bump. Hudi declares nothing: it owns no catalog properties.

### Release note

SHOW CREATE CATALOG, SHOW CATALOG, the `catalogs()` table function and the audit log now mask `iceberg.jdbc.password`, `paimon.jdbc.password`, `paimon.rest.dlf.access-key-id`, `paimon.rest.dlf.access-key-secret`, `mc.access_key`, and the `trino.*` and `adbc.*` properties whose names carry `key`, `secret`, `password`, `token` or `credential` (`authorization` too for `adbc.*`). ALTER CATALOG ... SET PROPERTIES statements are masked in the audit log like CREATE CATALOG.

### Check List (For Author)

- Behavior changed: Yes (see Details)
- Does this need documentation: No
- Pre-submission status: Ready

### AI Disclosure

- Tool: Claude Code (Claude Opus 5.5)
- Generated: the code, the tests, and this description
- Human review: not stated
- Prompts: The author first asked for a generic connector SPI to mask a connector's secret catalog properties instead of adding the Lance keys to fe-core's list. Then, in this PR: let the surface express prefix rules such as Fluss's, mask the union of the engine's and the connectors' keys, wire every connector, keep fe-core's existing entries as the floor, mask whatever is marked `sensitive` but stop marking keytab paths, and fix the unmasked ALTER CATALOG audit text on master only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.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. reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Enhancement] (nereids)implement alterCatalogPropertiesCommand in nereids

4 participants