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

branch-3.0: [opt](catalog) use table in db object return get db #46211 #46228

Merged
merged 1 commit into from
Jan 1, 2025

Conversation

github-actions[bot]
Copy link
Contributor

Cherry-picked from #46211

### What problem does this PR solve?

This pull request includes several changes across multiple files to
improve logging, add missing logic, and correct SQL syntax. The most
important changes include adding logging for synchronization actions,
setting the database if missing, and correcting SQL syntax for MySQL
queries.

Co-authored-by: morningman <[email protected]>
@morningman morningman closed this Dec 31, 2024
@morningman morningman reopened this Dec 31, 2024
@morningman
Copy link
Contributor

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	18054	7870	7369	7369
q2	2345	176	175	175
q3	11355	1167	1204	1167
q4	11260	764	824	764
q5	7797	2914	2894	2894
q6	247	152	152	152
q7	976	630	623	623
q8	9743	2002	2007	2002
q9	6710	6436	6414	6414
q10	7036	2268	2345	2268
q11	467	266	268	266
q12	411	213	212	212
q13	17791	3014	3029	3014
q14	240	213	207	207
q15	573	533	537	533
q16	696	608	620	608
q17	983	582	531	531
q18	7300	6664	6787	6664
q19	1385	1135	1072	1072
q20	483	204	201	201
q21	4024	3357	3259	3259
q22	1095	978	1000	978
Total cold run time: 110971 ms
Total hot run time: 41373 ms

----- Round 2, with runtime_filter_mode=off -----
q1	7344	7254	7264	7254
q2	342	245	242	242
q3	3153	2981	2957	2957
q4	2027	1805	1790	1790
q5	5695	5735	5710	5710
q6	223	139	141	139
q7	2276	1836	1778	1778
q8	3398	3538	3508	3508
q9	8882	8901	8850	8850
q10	3595	3530	3554	3530
q11	605	508	504	504
q12	841	612	591	591
q13	7152	3152	3081	3081
q14	278	253	263	253
q15	550	512	509	509
q16	708	643	658	643
q17	1806	1611	1525	1525
q18	7853	7414	7601	7414
q19	1640	1477	1582	1477
q20	2045	1818	1840	1818
q21	5356	5259	5245	5245
q22	1124	988	974	974
Total cold run time: 66893 ms
Total hot run time: 59792 ms

@doris-robot
Copy link

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

query1	964	374	363	363
query2	6528	2152	2136	2136
query3	6707	217	215	215
query4	33970	23471	23381	23381
query5	4297	447	430	430
query6	261	166	183	166
query7	4620	317	309	309
query8	286	227	219	219
query9	9411	2698	2685	2685
query10	481	266	255	255
query11	18208	15094	15223	15094
query12	156	97	103	97
query13	1629	441	446	441
query14	10376	7072	7183	7072
query15	266	170	180	170
query16	8136	463	501	463
query17	1628	584	550	550
query18	2144	323	314	314
query19	289	152	154	152
query20	115	107	107	107
query21	64	46	46	46
query22	4456	4168	4412	4168
query23	34942	33913	34072	33913
query24	11709	2806	2809	2806
query25	687	420	410	410
query26	1643	168	165	165
query27	2845	297	289	289
query28	8072	2467	2439	2439
query29	1001	444	438	438
query30	330	167	165	165
query31	1042	796	827	796
query32	99	61	56	56
query33	776	281	285	281
query34	968	502	494	494
query35	873	739	750	739
query36	1123	931	946	931
query37	137	77	71	71
query38	4030	3950	3849	3849
query39	1463	1428	1421	1421
query40	227	84	82	82
query41	51	47	52	47
query42	116	103	99	99
query43	550	517	487	487
query44	1286	806	807	806
query45	187	166	167	166
query46	1127	710	694	694
query47	1922	1829	1843	1829
query48	465	366	380	366
query49	1222	384	384	384
query50	797	392	394	392
query51	7081	7148	7121	7121
query52	105	83	85	83
query53	250	179	176	176
query54	1235	446	449	446
query55	79	75	79	75
query56	245	242	239	239
query57	1217	1135	1115	1115
query58	230	203	206	203
query59	3411	3202	3131	3131
query60	287	243	236	236
query61	106	106	113	106
query62	876	655	662	655
query63	214	189	182	182
query64	5422	654	655	654
query65	3313	3213	3192	3192
query66	1446	321	306	306
query67	16018	15824	15748	15748
query68	4801	590	606	590
query69	446	258	262	258
query70	1181	1135	1148	1135
query71	340	252	249	249
query72	6465	4137	4043	4043
query73	764	355	347	347
query74	10297	8987	8973	8973
query75	3394	2614	2727	2614
query76	2890	1152	1045	1045
query77	395	277	288	277
query78	10388	9601	9641	9601
query79	1096	586	593	586
query80	779	441	435	435
query81	523	236	238	236
query82	1271	124	110	110
query83	248	141	150	141
query84	237	83	80	80
query85	1118	300	285	285
query86	314	312	308	308
query87	4343	4313	4274	4274
query88	3765	2420	2388	2388
query89	400	291	297	291
query90	2092	188	187	187
query91	187	150	146	146
query92	61	51	51	51
query93	1041	550	539	539
query94	780	294	271	271
query95	355	247	255	247
query96	607	280	287	280
query97	3401	3163	3135	3135
query98	214	203	191	191
query99	1565	1318	1305	1305
Total cold run time: 301975 ms
Total hot run time: 191734 ms

@doris-robot
Copy link

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

query1	0.04	0.03	0.03
query2	0.06	0.04	0.03
query3	0.24	0.06	0.07
query4	1.61	0.10	0.10
query5	0.53	0.51	0.50
query6	1.13	0.73	0.73
query7	0.02	0.01	0.02
query8	0.04	0.03	0.03
query9	0.56	0.52	0.50
query10	0.55	0.55	0.56
query11	0.14	0.10	0.11
query12	0.14	0.11	0.11
query13	0.61	0.59	0.60
query14	2.95	2.98	3.14
query15	0.90	0.85	0.83
query16	0.39	0.36	0.38
query17	1.03	1.05	1.01
query18	0.24	0.22	0.22
query19	1.99	1.95	1.93
query20	0.01	0.01	0.01
query21	15.36	0.59	0.60
query22	2.53	2.08	3.02
query23	16.89	1.09	0.74
query24	3.27	1.10	1.64
query25	0.24	0.18	0.08
query26	0.43	0.13	0.14
query27	0.05	0.05	0.04
query28	10.02	1.11	1.07
query29	12.58	3.23	3.15
query30	0.24	0.06	0.06
query31	2.86	0.37	0.38
query32	3.27	0.46	0.46
query33	2.96	3.02	2.98
query34	16.97	4.43	4.48
query35	4.50	4.44	4.48
query36	0.65	0.50	0.48
query37	0.09	0.06	0.06
query38	0.04	0.04	0.03
query39	0.03	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.03
Total cold run time: 106.48 s
Total hot run time: 33.19 s

@yiguolei yiguolei merged commit fb2b67b into branch-3.0 Jan 1, 2025
21 checks passed
@github-actions github-actions bot deleted the auto-pick-46211-branch-3.0 branch January 1, 2025 00:01
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.

4 participants