Skip to content

Conversation

@github-actions
Copy link
Contributor

Cherry-picked from #44747

### What problem does this PR solve?
Support mysql COM_RESET_CONNECTION command.
Doris server side reset default catalog and return
ctx.getState().setOk()

Python test code:
```
import mysql.connector

connection = mysql.connector.connect(
    host="172.20.32.136", 
    port=29030,
    user="root", 
    password="", 
    database=""
)
print(connection.cmd_reset_connection())
```

Issue Number: close #xxx

Related PR: #xxx

Problem Summary:

### Release note

None
@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.

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?

@dataroaring dataroaring reopened this Nov 29, 2024
@doris-robot
Copy link

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	18095	7510	7453	7453
q2	2935	180	152	152
q3	10915	1127	1209	1127
q4	10582	796	726	726
q5	8195	2850	2819	2819
q6	240	145	147	145
q7	977	614	604	604
q8	9782	2059	1994	1994
q9	6698	6370	6392	6370
q10	6994	2275	2302	2275
q11	463	266	264	264
q12	403	218	219	218
q13	17775	2981	2991	2981
q14	232	210	214	210
q15	619	519	503	503
q16	688	609	614	609
q17	959	600	579	579
q18	7310	6572	6566	6566
q19	1607	1108	869	869
q20	481	204	212	204
q21	3888	3206	3203	3203
q22	1113	953	970	953
Total cold run time: 110951 ms
Total hot run time: 40824 ms

----- Round 2, with runtime_filter_mode=off -----
q1	7343	7271	7279	7271
q2	319	230	228	228
q3	3151	2995	2883	2883
q4	1984	1760	1769	1760
q5	5618	5666	5594	5594
q6	222	140	140	140
q7	2162	1759	1761	1759
q8	3333	3484	3460	3460
q9	8758	8860	8834	8834
q10	3548	3522	3535	3522
q11	598	506	508	506
q12	765	587	596	587
q13	17175	3034	2937	2937
q14	279	251	263	251
q15	558	499	491	491
q16	691	647	650	647
q17	1782	1567	1559	1559
q18	7911	7465	7259	7259
q19	2922	1525	1487	1487
q20	1961	1782	1789	1782
q21	5087	4939	4971	4939
q22	1072	992	974	974
Total cold run time: 77239 ms
Total hot run time: 58870 ms

@doris-robot
Copy link

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

query1	977	369	370	369
query2	6551	2064	2012	2012
query3	6701	208	221	208
query4	34116	23342	23219	23219
query5	4291	436	432	432
query6	261	172	176	172
query7	4610	306	311	306
query8	278	229	220	220
query9	9611	2665	2651	2651
query10	488	279	247	247
query11	18062	15110	15127	15110
query12	156	104	98	98
query13	1628	417	422	417
query14	9999	6839	6768	6768
query15	217	178	180	178
query16	7963	523	474	474
query17	1630	570	551	551
query18	2063	305	296	296
query19	207	157	150	150
query20	115	110	107	107
query21	215	107	102	102
query22	4297	4053	4039	4039
query23	34725	33593	33813	33593
query24	12314	2815	2812	2812
query25	718	403	394	394
query26	1839	163	162	162
query27	2997	289	298	289
query28	8235	2485	2477	2477
query29	1086	453	433	433
query30	326	156	159	156
query31	1001	804	787	787
query32	101	56	58	56
query33	792	293	266	266
query34	1018	476	512	476
query35	824	709	714	709
query36	1092	929	956	929
query37	275	74	71	71
query38	3932	3852	3857	3852
query39	1473	1449	1452	1449
query40	284	102	101	101
query41	53	51	49	49
query42	110	97	94	94
query43	521	477	473	473
query44	1155	782	791	782
query45	181	169	166	166
query46	1136	726	696	696
query47	1902	1815	1789	1789
query48	463	384	365	365
query49	1313	392	383	383
query50	804	418	411	411
query51	7232	7142	7089	7089
query52	104	98	85	85
query53	271	188	183	183
query54	1345	478	458	458
query55	77	78	76	76
query56	274	247	247	247
query57	1180	1096	1103	1096
query58	239	227	242	227
query59	3157	2830	2963	2830
query60	281	248	253	248
query61	107	104	109	104
query62	851	665	675	665
query63	211	182	177	177
query64	5247	653	604	604
query65	3258	3173	3171	3171
query66	1446	310	303	303
query67	15855	15455	15302	15302
query68	4901	548	546	546
query69	415	255	256	255
query70	1139	1124	1120	1120
query71	445	249	250	249
query72	6349	4007	3933	3933
query73	776	334	332	332
query74	10137	8960	8831	8831
query75	3472	2636	2628	2628
query76	2867	1025	1017	1017
query77	437	257	258	257
query78	10665	9599	9466	9466
query79	9496	573	603	573
query80	2108	420	412	412
query81	569	232	236	232
query82	1388	116	111	111
query83	280	137	138	137
query84	288	79	77	77
query85	2382	306	296	296
query86	500	306	308	306
query87	4461	4225	4206	4206
query88	5781	2401	2413	2401
query89	557	284	294	284
query90	2236	178	184	178
query91	179	147	141	141
query92	65	49	47	47
query93	7565	551	557	551
query94	1003	283	288	283
query95	347	254	255	254
query96	646	283	281	281
query97	3318	3116	3121	3116
query98	222	197	193	193
query99	1794	1288	1289	1288
Total cold run time: 323029 ms
Total hot run time: 189212 ms

@Jibing-Li Jibing-Li merged commit 7780dda into branch-3.0 Dec 2, 2024
12 checks passed
@github-actions github-actions bot deleted the auto-pick-44747-branch-3.0 branch December 2, 2024 02:21
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