Skip to content

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Jul 9, 2025

Cherry-picked from #52636

#52636)

### What problem does this PR solve?

Problem Summary:


**Set up two service addresses**
```
Doris > set global sql_converter_service_url = 'http://127.0.0.1:5001/api/v1/convert,http://127.0.0.1:5002/api/v1/convert';
Query OK, 0 rows affected (0.04 sec)

Doris > set sql_dialect = 'clickhouse';
Query OK, 0 rows affected (0.05 sec)

Doris > SELECT arrayElement(arr, 2) FROM (SELECT [1, 2, 3] AS arr);
+--------------------+
| ELEMENT_AT(arr, 2) |
+--------------------+
|                  2 |
+--------------------+
1 row in set (0.11 sec)
```

 **Stop one of the services**
```
Doris > SELECT arrayElement(arr, 2) FROM (SELECT [1, 2, 3] AS arr);
+--------------------+
| ELEMENT_AT(arr, 2) |
+--------------------+
|                  2 |
+--------------------+
1 row in set (0.14 sec)
```

**Stopping all services resulted in expected errors**
```
Doris > SELECT arrayElement(arr, 2) FROM (SELECT [1, 2, 3] AS arr);
ERROR 1105 (HY000): errCode = 2, detailMessage = 
Every derived table must have its own alias(line 1, pos 33)

== SQL ==
SELECT arrayElement(arr, 2) FROM (SELECT [1, 2, 3] AS arr)
---------------------------------^^^

Doris > SELECT arrayElement(arr, 2) FROM (SELECT [1, 2, 3] AS arr);
ERROR 1105 (HY000): errCode = 2, detailMessage = 
Every derived table must have its own alias(line 1, pos 33)
== SQL ==
SELECT arrayElement(arr, 2) FROM (SELECT [1, 2, 3] AS arr)
---------------------------------^^^
```

**Restart one of the services**
```
Doris > SELECT arrayElement(arr, 2) FROM (SELECT [1, 2, 3] AS arr);
+--------------------+
| ELEMENT_AT(arr, 2) |
+--------------------+
|                  2 |
+--------------------+
1 row in set (0.16 sec)
```
@github-actions github-actions bot requested a review from morrySnow as a code owner July 9, 2025 14:28
@Thearas
Copy link
Contributor

Thearas commented Jul 9, 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?

@dataroaring dataroaring closed this Jul 9, 2025
@dataroaring dataroaring reopened this Jul 9, 2025
@Thearas
Copy link
Contributor

Thearas commented Jul 9, 2025

run buildall

1 similar comment
@morrySnow
Copy link
Contributor

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17600	6915	6580	6580
q2	2057	180	186	180
q3	10594	1121	1184	1121
q4	10257	818	741	741
q5	7958	2819	2816	2816
q6	217	138	141	138
q7	1002	640	622	622
q8	9385	1909	2014	1909
q9	6660	6392	6373	6373
q10	7001	2268	2299	2268
q11	460	260	260	260
q12	430	220	218	218
q13	17786	3014	3012	3012
q14	228	208	210	208
q15	500	461	467	461
q16	490	384	391	384
q17	980	553	497	497
q18	7259	6685	6615	6615
q19	1313	1042	1018	1018
q20	481	197	200	197
q21	3905	2986	3069	2986
q22	1074	980	960	960
Total cold run time: 107637 ms
Total hot run time: 39564 ms

----- Round 2, with runtime_filter_mode=off -----
q1	6593	6620	6578	6578
q2	328	237	238	237
q3	2898	2888	2884	2884
q4	2015	1820	1847	1820
q5	5705	5728	5744	5728
q6	206	128	126	126
q7	2204	1820	1805	1805
q8	3380	3502	3474	3474
q9	8840	8849	8911	8849
q10	3568	3496	3530	3496
q11	593	498	502	498
q12	826	646	634	634
q13	8677	3226	3137	3137
q14	311	278	275	275
q15	513	480	462	462
q16	498	437	446	437
q17	1822	1606	1624	1606
q18	8141	7859	7734	7734
q19	1682	1558	1471	1471
q20	2054	1814	1833	1814
q21	5277	4919	5008	4919
q22	1144	1039	1031	1031
Total cold run time: 67275 ms
Total hot run time: 59015 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 196107 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 756e3e607f2cd85aa5def8b596e549f7aac6d218, data reload: false

query1	1306	960	914	914
query2	6343	1876	1882	1876
query3	10810	4162	4376	4162
query4	33239	23390	23346	23346
query5	3627	467	454	454
query6	283	184	205	184
query7	3990	320	326	320
query8	295	244	227	227
query9	9493	2573	2567	2567
query10	486	263	253	253
query11	18056	15428	15341	15341
query12	160	103	103	103
query13	1570	447	429	429
query14	9872	6848	7553	6848
query15	254	195	208	195
query16	8136	474	488	474
query17	1690	614	606	606
query18	2172	330	332	330
query19	378	168	165	165
query20	131	113	116	113
query21	206	107	109	107
query22	4691	4421	4463	4421
query23	34932	33842	34193	33842
query24	11786	3015	2967	2967
query25	678	401	420	401
query26	1847	169	171	169
query27	2933	361	356	356
query28	7537	2126	2142	2126
query29	1023	448	447	447
query30	270	159	166	159
query31	1053	826	823	823
query32	88	55	59	55
query33	764	325	292	292
query34	1026	519	532	519
query35	948	760	725	725
query36	1102	949	940	940
query37	273	67	67	67
query38	4126	3939	4006	3939
query39	1576	1475	1538	1475
query40	255	100	103	100
query41	49	46	45	45
query42	118	95	100	95
query43	533	498	476	476
query44	1232	810	805	805
query45	191	169	165	165
query46	1194	753	759	753
query47	2030	1924	1947	1924
query48	456	355	350	350
query49	1228	396	373	373
query50	831	450	430	430
query51	7361	7307	7231	7231
query52	99	93	93	93
query53	257	182	181	181
query54	1252	465	469	465
query55	87	82	79	79
query56	267	249	239	239
query57	1323	1205	1205	1205
query58	221	212	219	212
query59	3203	3026	2965	2965
query60	287	269	251	251
query61	111	108	121	108
query62	886	714	706	706
query63	228	194	192	192
query64	5132	659	725	659
query65	3389	3328	3283	3283
query66	1401	319	325	319
query67	16251	15458	15536	15458
query68	4891	610	578	578
query69	452	280	283	280
query70	1157	1090	1103	1090
query71	336	271	263	263
query72	6273	4301	4067	4067
query73	757	353	364	353
query74	10243	8766	9227	8766
query75	3402	2641	2634	2634
query76	2513	1035	1039	1035
query77	453	289	283	283
query78	10496	9610	9544	9544
query79	1548	601	591	591
query80	1116	428	440	428
query81	553	216	212	212
query82	909	90	86	86
query83	237	149	150	149
query84	237	77	81	77
query85	1349	292	284	284
query86	430	313	286	286
query87	4358	4190	4236	4190
query88	3445	2436	2397	2397
query89	416	287	291	287
query90	1918	186	187	186
query91	141	114	109	109
query92	65	52	50	50
query93	2034	557	560	557
query94	881	299	307	299
query95	357	250	250	250
query96	621	281	289	281
query97	3308	3098	3233	3098
query98	221	208	197	197
query99	1500	1301	1324	1301
Total cold run time: 305639 ms
Total hot run time: 196107 ms

@doris-robot
Copy link

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

query1	0.04	0.03	0.02
query2	0.07	0.03	0.03
query3	0.23	0.07	0.06
query4	1.62	0.11	0.10
query5	0.53	0.50	0.52
query6	1.12	0.73	0.73
query7	0.02	0.02	0.02
query8	0.04	0.03	0.04
query9	0.57	0.50	0.51
query10	0.57	0.55	0.59
query11	0.15	0.11	0.10
query12	0.14	0.11	0.12
query13	0.62	0.60	0.61
query14	0.78	0.78	0.79
query15	0.84	0.84	0.84
query16	0.38	0.39	0.40
query17	1.01	1.03	1.06
query18	0.24	0.22	0.22
query19	1.98	1.88	1.93
query20	0.02	0.01	0.01
query21	15.40	0.58	0.58
query22	2.53	2.24	1.05
query23	17.11	0.93	0.92
query24	2.98	0.82	1.46
query25	0.20	0.06	0.14
query26	0.41	0.14	0.14
query27	0.04	0.05	0.05
query28	10.29	0.50	0.49
query29	12.58	3.22	3.23
query30	0.25	0.07	0.06
query31	2.87	0.40	0.38
query32	3.24	0.46	0.46
query33	3.02	3.02	3.01
query34	16.93	4.52	4.52
query35	4.60	4.55	4.50
query36	0.68	0.48	0.48
query37	0.08	0.06	0.06
query38	0.04	0.03	0.04
query39	0.03	0.03	0.02
query40	0.17	0.13	0.14
query41	0.07	0.02	0.02
query42	0.04	0.02	0.02
query43	0.04	0.04	0.03
Total cold run time: 104.57 s
Total hot run time: 29.55 s

@morrySnow morrySnow merged commit 4b76b3e into branch-3.1 Jul 10, 2025
21 of 22 checks passed
@github-actions github-actions bot deleted the auto-pick-52636-branch-3.1 branch July 10, 2025 08:03
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.

5 participants