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

[chore](profile) Add checker for profile level #48787

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

zhiqiang-hhhh
Copy link
Contributor

@zhiqiang-hhhh zhiqiang-hhhh commented Mar 6, 2025

What problem does this PR solve?

mysql> set profile_level=0;
--------------
set profile_level=0
--------------

ERROR 1105 (HY000): errCode = 2, detailMessage = Profile level can not be set to 0, it must be in the range of 1-3

Related PR: #47070

Problem Summary:

Release note

None

Check List (For Author)

  • Test

    • Regression test
    • Unit Test
    • Manual test (add detailed scripts or steps below)
    • No need to test or manual test. Explain why:
      • This is a refactor/code format and no logic has been changed.
      • Previous test can cover this change.
      • No code files have been changed.
      • Other reason
  • Behavior changed:

    • No.
    • Yes.
  • Does this need documentation?

    • No.
    • Yes.

Check List (For Reviewer who merge this PR)

  • Confirm the release note
  • Confirm test cases
  • Confirm document
  • Add branch pick label

@Thearas
Copy link
Contributor

Thearas commented Mar 6, 2025

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

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

@zhiqiang-hhhh
Copy link
Contributor Author

run buildall

@zhiqiang-hhhh
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17594	5262	5063	5063
q2	2056	300	166	166
q3	10397	1321	696	696
q4	10217	1019	533	533
q5	7514	2345	2378	2345
q6	190	167	133	133
q7	898	751	596	596
q8	9304	1308	1182	1182
q9	4881	4942	4735	4735
q10	6828	2331	1921	1921
q11	475	281	268	268
q12	349	364	224	224
q13	17763	3673	3089	3089
q14	229	235	218	218
q15	537	508	502	502
q16	625	622	589	589
q17	564	859	357	357
q18	6756	6401	6479	6401
q19	1074	939	555	555
q20	342	331	201	201
q21	2868	2117	1966	1966
q22	1055	1041	1002	1002
Total cold run time: 102516 ms
Total hot run time: 32742 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5095	5099	5085	5085
q2	243	329	241	241
q3	2155	2687	2338	2338
q4	1442	1821	1381	1381
q5	4264	4144	4114	4114
q6	208	161	121	121
q7	1876	1842	1753	1753
q8	2626	2709	2610	2610
q9	7206	7333	7066	7066
q10	2991	3251	2825	2825
q11	558	529	495	495
q12	705	757	599	599
q13	3503	3910	3324	3324
q14	277	294	281	281
q15	543	485	502	485
q16	666	694	642	642
q17	1141	1596	1363	1363
q18	7942	7646	7473	7473
q19	858	852	907	852
q20	2051	1991	1821	1821
q21	5298	4902	4805	4805
q22	1144	1061	1048	1048
Total cold run time: 52792 ms
Total hot run time: 50722 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 192510 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 1cd8150149dff6987534a7065a63d6f6fdb5b7db, data reload: false

query1	1389	1008	1013	1008
query2	5998	1981	1978	1978
query3	11125	4550	4609	4550
query4	54332	26213	23073	23073
query5	5107	555	497	497
query6	354	203	185	185
query7	4927	507	295	295
query8	361	245	240	240
query9	6089	2576	2628	2576
query10	446	306	254	254
query11	15272	15255	15190	15190
query12	164	110	113	110
query13	1081	504	400	400
query14	10182	6389	6932	6389
query15	213	200	185	185
query16	7135	661	518	518
query17	1087	750	575	575
query18	1593	413	324	324
query19	214	197	171	171
query20	129	131	129	129
query21	214	125	109	109
query22	4598	4653	4712	4653
query23	34027	33534	33529	33529
query24	5802	2389	2434	2389
query25	470	489	420	420
query26	713	276	153	153
query27	1799	496	335	335
query28	2735	2452	2433	2433
query29	598	555	430	430
query30	274	220	189	189
query31	859	871	831	831
query32	79	64	61	61
query33	455	388	349	349
query34	758	862	514	514
query35	776	842	746	746
query36	958	997	891	891
query37	127	110	78	78
query38	4294	4350	4377	4350
query39	1487	1471	1432	1432
query40	214	118	102	102
query41	52	52	54	52
query42	128	108	102	102
query43	518	543	501	501
query44	1307	826	823	823
query45	183	171	179	171
query46	878	1048	652	652
query47	1869	1886	1787	1787
query48	395	448	301	301
query49	704	500	424	424
query50	717	748	418	418
query51	4321	4243	4290	4243
query52	118	114	94	94
query53	232	260	210	210
query54	490	501	423	423
query55	88	84	76	76
query56	256	272	260	260
query57	1156	1204	1102	1102
query58	236	242	235	235
query59	2786	2697	2548	2548
query60	285	267	274	267
query61	124	118	120	118
query62	745	719	653	653
query63	218	184	184	184
query64	2157	1019	681	681
query65	4433	4319	4322	4319
query66	752	394	300	300
query67	15986	15476	15385	15385
query68	7012	895	506	506
query69	544	304	269	269
query70	1212	1130	1106	1106
query71	493	306	265	265
query72	5589	3612	3690	3612
query73	1440	697	345	345
query74	9152	9113	8901	8901
query75	3782	3152	2713	2713
query76	4330	1179	762	762
query77	631	352	281	281
query78	10013	10122	9269	9269
query79	2567	822	593	593
query80	693	521	455	455
query81	472	255	232	232
query82	544	122	94	94
query83	276	179	219	179
query84	278	98	67	67
query85	773	353	308	308
query86	439	335	281	281
query87	4501	4579	4250	4250
query88	3172	2257	2214	2214
query89	402	317	276	276
query90	1894	209	206	206
query91	138	141	108	108
query92	74	61	59	59
query93	1305	1062	595	595
query94	661	425	304	304
query95	346	267	254	254
query96	480	549	278	278
query97	3378	3371	3303	3303
query98	223	205	202	202
query99	1426	1417	1253	1253
Total cold run time: 297809 ms
Total hot run time: 192510 ms

@doris-robot
Copy link

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

query1	0.04	0.04	0.03
query2	0.07	0.03	0.03
query3	0.23	0.06	0.07
query4	1.63	0.10	0.10
query5	0.57	0.57	0.56
query6	1.21	0.73	0.71
query7	0.02	0.02	0.02
query8	0.04	0.04	0.04
query9	0.60	0.52	0.51
query10	0.58	0.58	0.58
query11	0.17	0.12	0.10
query12	0.14	0.12	0.11
query13	0.62	0.60	0.60
query14	2.67	2.81	2.81
query15	0.94	0.86	0.85
query16	0.39	0.38	0.37
query17	1.06	1.01	1.02
query18	0.21	0.20	0.20
query19	1.92	1.79	2.00
query20	0.01	0.01	0.01
query21	15.35	0.91	0.55
query22	0.76	1.17	0.71
query23	14.90	1.37	0.63
query24	6.64	2.28	1.47
query25	0.50	0.24	0.15
query26	0.50	0.16	0.14
query27	0.05	0.05	0.05
query28	10.66	0.80	0.43
query29	12.56	4.08	3.45
query30	0.25	0.09	0.06
query31	2.82	0.61	0.40
query32	3.25	0.57	0.46
query33	3.02	3.04	3.04
query34	15.82	5.22	4.52
query35	4.53	4.58	4.56
query36	0.67	0.50	0.48
query37	0.09	0.07	0.06
query38	0.05	0.04	0.03
query39	0.03	0.02	0.03
query40	0.16	0.13	0.13
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: 105.89 s
Total hot run time: 31.89 s

@zhiqiang-hhhh
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17642	5188	5085	5085
q2	2047	312	172	172
q3	10389	1316	727	727
q4	10210	1042	544	544
q5	7549	2438	2350	2350
q6	194	168	143	143
q7	919	757	605	605
q8	9307	1275	1100	1100
q9	4994	4956	4680	4680
q10	6842	2321	1911	1911
q11	472	280	250	250
q12	351	347	225	225
q13	17902	3732	3077	3077
q14	227	226	213	213
q15	542	505	470	470
q16	641	616	586	586
q17	562	865	354	354
q18	6939	6491	6353	6353
q19	1180	945	555	555
q20	325	339	203	203
q21	2848	2147	1965	1965
q22	1079	1016	979	979
Total cold run time: 103161 ms
Total hot run time: 32547 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5133	5164	5111	5111
q2	246	335	231	231
q3	2161	2701	2277	2277
q4	1431	1838	1401	1401
q5	4281	4142	4148	4142
q6	214	163	128	128
q7	1896	1952	1813	1813
q8	2630	2542	2506	2506
q9	7264	7114	7204	7114
q10	3017	3199	2765	2765
q11	577	509	496	496
q12	672	785	601	601
q13	3568	3934	3243	3243
q14	295	302	277	277
q15	524	497	479	479
q16	664	674	663	663
q17	1153	1584	1360	1360
q18	7783	7493	7498	7493
q19	814	859	1034	859
q20	1946	2032	1861	1861
q21	5437	4974	4910	4910
q22	1093	1027	995	995
Total cold run time: 52799 ms
Total hot run time: 50725 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 185645 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 89036e15fb070ed7b4ef7fab00e718d5fc356091, data reload: false

query1	977	382	394	382
query2	6573	1953	1973	1953
query3	6876	218	212	212
query4	26646	23732	23201	23201
query5	4303	645	492	492
query6	290	209	209	209
query7	4596	503	291	291
query8	289	222	211	211
query9	8605	2542	2524	2524
query10	436	303	241	241
query11	15741	15053	14861	14861
query12	155	105	105	105
query13	1651	501	381	381
query14	9621	6563	6819	6563
query15	223	192	173	173
query16	7054	639	471	471
query17	1172	709	534	534
query18	1174	353	286	286
query19	193	180	146	146
query20	120	113	112	112
query21	204	121	99	99
query22	4321	4407	4306	4306
query23	33835	32947	32879	32879
query24	7712	2356	2457	2356
query25	497	450	394	394
query26	1231	271	152	152
query27	2163	497	331	331
query28	3920	2421	2402	2402
query29	696	528	418	418
query30	279	218	192	192
query31	959	832	787	787
query32	68	64	62	62
query33	555	346	317	317
query34	791	867	489	489
query35	805	799	741	741
query36	974	1027	906	906
query37	122	96	79	79
query38	4250	4110	4241	4110
query39	1459	1410	1376	1376
query40	206	115	99	99
query41	51	51	54	51
query42	126	100	105	100
query43	505	527	499	499
query44	1275	789	786	786
query45	178	169	168	168
query46	840	1037	623	623
query47	1769	1809	1722	1722
query48	374	413	294	294
query49	779	505	416	416
query50	676	746	408	408
query51	4166	4208	4180	4180
query52	111	105	101	101
query53	226	250	181	181
query54	492	493	413	413
query55	90	81	83	81
query56	259	270	263	263
query57	1180	1153	1084	1084
query58	259	241	244	241
query59	2668	2903	2577	2577
query60	277	272	254	254
query61	117	114	114	114
query62	804	720	753	720
query63	231	185	178	178
query64	4318	1035	659	659
query65	4452	4324	4298	4298
query66	1111	407	312	312
query67	15840	15490	15404	15404
query68	5431	883	517	517
query69	466	297	262	262
query70	1198	1195	1081	1081
query71	400	300	250	250
query72	5499	3555	3740	3555
query73	729	732	339	339
query74	9229	8871	8782	8782
query75	3185	3202	2699	2699
query76	3266	1183	755	755
query77	476	354	286	286
query78	9910	10179	9289	9289
query79	1125	905	597	597
query80	684	548	491	491
query81	466	263	221	221
query82	197	133	105	105
query83	182	183	167	167
query84	249	100	88	88
query85	817	419	374	374
query86	330	303	288	288
query87	4492	4530	4366	4366
query88	2925	2231	2242	2231
query89	396	309	369	309
query90	1747	222	221	221
query91	140	150	113	113
query92	62	62	61	61
query93	1197	1040	586	586
query94	617	415	302	302
query95	358	277	265	265
query96	488	562	278	278
query97	3300	3450	3325	3325
query98	218	214	208	208
query99	1320	1391	1264	1264
Total cold run time: 266015 ms
Total hot run time: 185645 ms

@doris-robot
Copy link

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

query1	0.04	0.04	0.04
query2	0.07	0.03	0.04
query3	0.24	0.06	0.06
query4	1.62	0.10	0.11
query5	0.56	0.57	0.57
query6	1.19	0.71	0.72
query7	0.02	0.02	0.02
query8	0.04	0.03	0.04
query9	0.61	0.53	0.52
query10	0.60	0.61	0.57
query11	0.16	0.11	0.10
query12	0.15	0.11	0.12
query13	0.62	0.60	0.60
query14	2.79	2.83	2.71
query15	0.94	0.86	0.85
query16	0.38	0.38	0.37
query17	1.06	1.01	1.04
query18	0.21	0.20	0.20
query19	2.00	1.93	1.86
query20	0.01	0.02	0.01
query21	15.36	0.90	0.55
query22	0.75	1.22	0.67
query23	14.90	1.39	0.64
query24	7.58	0.82	0.70
query25	0.52	0.27	0.08
query26	0.61	0.16	0.13
query27	0.06	0.05	0.05
query28	9.10	0.89	0.45
query29	12.58	4.16	3.40
query30	0.27	0.10	0.07
query31	2.82	0.58	0.38
query32	3.22	0.55	0.46
query33	2.99	3.04	3.03
query34	15.85	5.18	4.53
query35	4.56	4.62	4.53
query36	0.68	0.49	0.49
query37	0.09	0.06	0.06
query38	0.05	0.04	0.04
query39	0.03	0.03	0.03
query40	0.18	0.14	0.13
query41	0.08	0.02	0.03
query42	0.03	0.02	0.03
query43	0.04	0.03	0.03
Total cold run time: 105.66 s
Total hot run time: 30.96 s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants