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

[Feature](literal)Support TimeLiteral #47319

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

Conversation

koarz
Copy link
Contributor

@koarz koarz commented Jan 22, 2025

What problem does this PR solve?

Issue Number: close #xxx

Related PR: #xxx

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

@hello-stephen
Copy link
Contributor

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?

@koarz
Copy link
Contributor Author

koarz commented Jan 22, 2025

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17624	5579	5363	5363
q2	2069	321	192	192
q3	10455	1241	747	747
q4	10214	981	522	522
q5	7612	2382	2170	2170
q6	197	171	136	136
q7	906	753	602	602
q8	9250	1384	1164	1164
q9	5159	4945	4927	4927
q10	6820	2332	1900	1900
q11	483	281	260	260
q12	338	367	209	209
q13	17778	3681	3045	3045
q14	239	231	214	214
q15	524	482	459	459
q16	620	619	572	572
q17	561	871	322	322
q18	7075	6617	6448	6448
q19	1633	965	540	540
q20	312	321	190	190
q21	2979	2168	2011	2011
q22	372	343	307	307
Total cold run time: 103220 ms
Total hot run time: 32300 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5528	5626	5537	5537
q2	242	334	235	235
q3	2255	2694	2351	2351
q4	1422	1862	1367	1367
q5	4334	4772	4627	4627
q6	164	162	127	127
q7	2087	1960	1860	1860
q8	2665	2811	2680	2680
q9	7384	7233	7293	7233
q10	3022	3289	2773	2773
q11	572	508	484	484
q12	647	755	557	557
q13	3514	3928	3257	3257
q14	281	302	280	280
q15	522	471	485	471
q16	666	696	650	650
q17	1228	1747	1315	1315
q18	7818	7623	7391	7391
q19	803	1020	1117	1020
q20	2032	2044	1939	1939
q21	5770	5164	4956	4956
q22	609	612	576	576
Total cold run time: 53565 ms
Total hot run time: 51686 ms

@doris-robot
Copy link

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

query1	1311	973	940	940
query2	6323	2065	2012	2012
query3	10959	4618	4472	4472
query4	60748	31352	23004	23004
query5	5605	623	478	478
query6	439	202	188	188
query7	5567	518	310	310
query8	323	237	221	221
query9	8217	2669	2700	2669
query10	452	311	262	262
query11	17492	15475	15648	15475
query12	163	108	108	108
query13	1440	549	423	423
query14	11075	7350	6697	6697
query15	214	201	197	197
query16	7214	685	492	492
query17	1109	736	573	573
query18	1853	407	310	310
query19	200	190	160	160
query20	116	124	117	117
query21	212	123	104	104
query22	4541	4758	4439	4439
query23	34136	33321	33494	33321
query24	5568	2358	2375	2358
query25	513	517	440	440
query26	648	295	165	165
query27	1612	516	336	336
query28	4230	2506	2482	2482
query29	560	587	421	421
query30	220	189	156	156
query31	937	925	874	874
query32	67	58	58	58
query33	429	361	308	308
query34	771	862	529	529
query35	831	826	756	756
query36	1016	1059	964	964
query37	130	115	80	80
query38	4391	4356	4341	4341
query39	1484	1448	1446	1446
query40	220	123	105	105
query41	52	49	54	49
query42	118	106	99	99
query43	518	540	502	502
query44	1364	837	836	836
query45	182	179	170	170
query46	923	1079	670	670
query47	1872	1939	1822	1822
query48	401	425	356	356
query49	713	523	400	400
query50	716	700	407	407
query51	7141	7110	7057	7057
query52	106	100	95	95
query53	238	262	195	195
query54	501	519	441	441
query55	85	77	78	77
query56	278	286	277	277
query57	1278	1217	1101	1101
query58	240	237	248	237
query59	3188	3237	2979	2979
query60	285	268	252	252
query61	121	119	118	118
query62	732	708	640	640
query63	229	196	192	192
query64	1320	1025	670	670
query65	3283	3150	3158	3150
query66	762	391	305	305
query67	15885	15598	15461	15461
query68	4130	857	533	533
query69	490	301	264	264
query70	1206	1138	1159	1138
query71	412	356	264	264
query72	6028	3881	3968	3881
query73	700	778	378	378
query74	10656	8840	8915	8840
query75	3259	3162	2676	2676
query76	3273	1202	810	810
query77	489	366	285	285
query78	10158	10281	9400	9400
query79	2749	828	612	612
query80	1682	549	530	530
query81	564	276	233	233
query82	347	149	127	127
query83	267	173	149	149
query84	288	105	74	74
query85	783	345	305	305
query86	420	325	288	288
query87	4368	4456	4463	4456
query88	3357	2246	2184	2184
query89	411	322	295	295
query90	1542	199	196	196
query91	135	142	117	117
query92	63	59	55	55
query93	1821	876	540	540
query94	697	386	296	296
query95	346	275	258	258
query96	489	633	285	285
query97	2819	2883	2781	2781
query98	231	197	199	197
query99	1290	1364	1358	1358
Total cold run time: 311337 ms
Total hot run time: 195154 ms

@doris-robot
Copy link

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

query1	0.03	0.03	0.03
query2	0.09	0.04	0.05
query3	0.23	0.06	0.05
query4	1.64	0.08	0.08
query5	0.42	0.39	0.39
query6	1.16	0.67	0.67
query7	0.02	0.02	0.02
query8	0.05	0.04	0.05
query9	0.56	0.49	0.49
query10	0.56	0.56	0.56
query11	0.16	0.12	0.11
query12	0.16	0.13	0.14
query13	0.60	0.60	0.60
query14	2.82	2.83	2.75
query15	0.91	0.83	0.84
query16	0.37	0.38	0.38
query17	1.08	1.06	1.05
query18	0.19	0.18	0.20
query19	1.92	1.88	2.07
query20	0.02	0.01	0.01
query21	15.36	0.98	0.65
query22	0.79	0.79	0.71
query23	14.97	1.43	0.69
query24	2.27	0.39	0.22
query25	0.14	0.08	0.08
query26	0.28	0.19	0.17
query27	0.08	0.08	0.08
query28	13.46	1.24	0.56
query29	12.69	4.08	3.39
query30	0.24	0.08	0.06
query31	2.83	0.61	0.39
query32	3.22	0.59	0.47
query33	3.00	3.00	3.03
query34	16.63	5.19	4.57
query35	4.57	4.55	4.56
query36	0.82	0.47	0.48
query37	0.20	0.17	0.16
query38	0.16	0.16	0.15
query39	0.05	0.04	0.04
query40	0.17	0.13	0.13
query41	0.10	0.06	0.06
query42	0.07	0.05	0.06
query43	0.05	0.05	0.04
Total cold run time: 105.14 s
Total hot run time: 30.98 s

@koarz
Copy link
Contributor Author

koarz commented Jan 22, 2025

run p0

1 similar comment
@koarz
Copy link
Contributor Author

koarz commented Jan 23, 2025

run p0

@koarz
Copy link
Contributor Author

koarz commented Jan 23, 2025

run buildall

@koarz
Copy link
Contributor Author

koarz commented Jan 23, 2025

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17951	5545	5434	5434
q2	2055	317	168	168
q3	10661	1276	744	744
q4	10293	972	546	546
q5	9372	2444	2189	2189
q6	206	169	138	138
q7	903	759	632	632
q8	9228	1323	1190	1190
q9	5982	4968	4878	4878
q10	6859	2318	1887	1887
q11	473	271	255	255
q12	351	369	227	227
q13	17778	3707	3162	3162
q14	243	245	209	209
q15	517	490	482	482
q16	638	620	598	598
q17	561	865	325	325
q18	7055	6529	6480	6480
q19	2154	961	572	572
q20	324	321	188	188
q21	2875	2276	2046	2046
q22	394	346	319	319
Total cold run time: 106873 ms
Total hot run time: 32669 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5724	5541	5579	5541
q2	238	336	235	235
q3	2272	2656	2287	2287
q4	1439	1803	1381	1381
q5	4358	4733	4962	4733
q6	176	163	126	126
q7	2067	1978	1854	1854
q8	2625	2801	2682	2682
q9	7226	7310	7131	7131
q10	2984	3308	2760	2760
q11	593	514	495	495
q12	688	765	636	636
q13	3557	3962	3310	3310
q14	292	309	284	284
q15	529	465	469	465
q16	657	687	639	639
q17	1210	1728	1225	1225
q18	7765	7465	7495	7465
q19	837	1168	1095	1095
q20	1986	2084	1900	1900
q21	5858	5323	4849	4849
q22	610	578	604	578
Total cold run time: 53691 ms
Total hot run time: 51671 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 184397 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 518d3307e8b03429c3449c21d91515816e537daa, data reload: false

query1	955	381	397	381
query2	6546	2012	2010	2010
query3	6791	211	218	211
query4	33680	23509	23535	23509
query5	4384	636	458	458
query6	297	200	196	196
query7	4600	507	318	318
query8	292	232	230	230
query9	9456	2595	2547	2547
query10	460	312	239	239
query11	17762	15135	14935	14935
query12	148	107	101	101
query13	1654	501	378	378
query14	10311	6361	6306	6306
query15	217	189	182	182
query16	7919	625	480	480
query17	1565	711	551	551
query18	2046	394	297	297
query19	214	174	161	161
query20	112	107	105	105
query21	205	119	102	102
query22	4277	4601	4146	4146
query23	34121	32724	32974	32724
query24	6523	2210	2260	2210
query25	459	439	376	376
query26	1088	232	152	152
query27	2050	453	337	337
query28	5378	2429	2420	2420
query29	545	500	455	455
query30	232	192	162	162
query31	961	865	741	741
query32	76	62	60	60
query33	512	349	294	294
query34	757	831	484	484
query35	798	820	746	746
query36	987	1013	954	954
query37	133	103	85	85
query38	4128	4075	4107	4075
query39	1459	1401	1404	1401
query40	212	115	101	101
query41	52	51	53	51
query42	141	99	96	96
query43	505	530	488	488
query44	1324	806	809	806
query45	184	174	163	163
query46	840	1022	636	636
query47	1841	1861	1799	1799
query48	390	385	308	308
query49	772	485	403	403
query50	634	664	394	394
query51	4169	4351	4110	4110
query52	109	103	92	92
query53	239	255	184	184
query54	484	474	418	418
query55	81	76	87	76
query56	263	263	268	263
query57	1162	1171	1113	1113
query58	253	232	237	232
query59	2853	3070	2945	2945
query60	274	268	249	249
query61	115	113	113	113
query62	803	724	666	666
query63	224	191	185	185
query64	4151	1010	685	685
query65	3216	3158	3130	3130
query66	1094	438	330	330
query67	15924	15559	15576	15559
query68	2376	822	542	542
query69	411	310	282	282
query70	1184	1114	1133	1114
query71	312	299	261	261
query72	4972	3835	3771	3771
query73	629	743	364	364
query74	9744	8886	8952	8886
query75	3127	3156	2658	2658
query76	2211	1214	761	761
query77	337	359	280	280
query78	10138	10353	9347	9347
query79	997	888	598	598
query80	734	602	447	447
query81	511	267	232	232
query82	1231	159	126	126
query83	249	176	157	157
query84	240	92	77	77
query85	817	347	306	306
query86	344	319	302	302
query87	4373	4417	4362	4362
query88	3262	2232	2183	2183
query89	406	331	294	294
query90	1638	194	190	190
query91	134	143	109	109
query92	61	56	57	56
query93	929	859	536	536
query94	520	404	293	293
query95	332	268	256	256
query96	488	612	274	274
query97	2804	2865	2751	2751
query98	217	206	200	200
query99	1288	1415	1268	1268
Total cold run time: 273423 ms
Total hot run time: 184397 ms

@doris-robot
Copy link

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

query1	0.04	0.03	0.03
query2	0.07	0.04	0.04
query3	0.25	0.07	0.06
query4	1.62	0.10	0.10
query5	0.41	0.42	0.39
query6	1.14	0.68	0.65
query7	0.02	0.02	0.01
query8	0.04	0.03	0.03
query9	0.58	0.52	0.51
query10	0.56	0.56	0.56
query11	0.14	0.10	0.11
query12	0.13	0.10	0.12
query13	0.61	0.59	0.61
query14	2.72	2.85	2.85
query15	0.91	0.83	0.83
query16	0.39	0.38	0.38
query17	1.09	1.06	1.07
query18	0.24	0.22	0.21
query19	1.98	1.77	2.02
query20	0.02	0.01	0.01
query21	15.37	0.90	0.57
query22	0.76	1.02	0.66
query23	15.78	1.53	0.58
query24	2.62	0.73	2.26
query25	0.17	0.18	0.06
query26	0.25	0.15	0.13
query27	0.05	0.05	0.05
query28	14.19	0.97	0.43
query29	12.62	3.91	3.20
query30	0.25	0.09	0.06
query31	2.85	0.60	0.40
query32	3.23	0.54	0.46
query33	2.95	3.01	3.08
query34	16.65	5.16	4.52
query35	4.58	4.58	4.56
query36	0.64	0.50	0.48
query37	0.10	0.06	0.06
query38	0.05	0.03	0.04
query39	0.03	0.02	0.02
query40	0.17	0.13	0.13
query41	0.08	0.02	0.02
query42	0.03	0.03	0.02
query43	0.03	0.03	0.03
Total cold run time: 106.41 s
Total hot run time: 30.49 s

@@ -96,6 +96,9 @@ suite("test_cast") {
sql "select cast(true as date);"
result([[null]])
}

qt_test_cast_to_time "explain select cast('12:30:30' as time)"
Copy link
Contributor

Choose a reason for hiding this comment

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

for explain test we should just use explain and contains

@koarz
Copy link
Contributor Author

koarz commented Jan 25, 2025

run buildall

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 42.05% (10969/26083)
Line Coverage: 32.31% (92690/286839)
Region Coverage: 31.47% (47537/151055)
Branch Coverage: 27.51% (24079/87518)
Coverage Report: http://coverage.selectdb-in.cc/coverage/589606843828c8a7d376710ccd19e15f7dbe26b1_589606843828c8a7d376710ccd19e15f7dbe26b1/report/index.html

@koarz
Copy link
Contributor Author

koarz commented Jan 25, 2025

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17575	5485	5396	5396
q2	2058	299	166	166
q3	10617	1266	748	748
q4	10764	971	541	541
q5	9492	2391	2143	2143
q6	198	169	141	141
q7	898	763	627	627
q8	9240	1366	1218	1218
q9	5356	4737	4869	4737
q10	6822	2313	1881	1881
q11	488	291	258	258
q12	351	362	231	231
q13	17763	3675	3149	3149
q14	229	225	211	211
q15	527	461	469	461
q16	621	644	584	584
q17	570	864	329	329
q18	6928	6461	6430	6430
q19	1406	953	552	552
q20	319	329	194	194
q21	2874	2203	2018	2018
q22	361	345	300	300
Total cold run time: 105457 ms
Total hot run time: 32315 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5542	5488	5527	5488
q2	239	324	231	231
q3	2233	2610	2327	2327
q4	1415	1843	1362	1362
q5	4313	4732	4752	4732
q6	167	165	130	130
q7	2095	2011	1859	1859
q8	2644	2847	2741	2741
q9	7176	7197	7324	7197
q10	2994	3289	2794	2794
q11	567	505	491	491
q12	669	743	599	599
q13	3578	3970	3324	3324
q14	304	288	280	280
q15	517	505	471	471
q16	652	721	637	637
q17	1225	1754	1277	1277
q18	7651	7501	7200	7200
q19	811	1124	1066	1066
q20	2015	2025	1991	1991
q21	5901	5396	5086	5086
q22	606	613	559	559
Total cold run time: 53314 ms
Total hot run time: 51842 ms

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 42.06% (10971/26083)
Line Coverage: 32.33% (92734/286839)
Region Coverage: 31.48% (47555/151055)
Branch Coverage: 27.52% (24082/87518)
Coverage Report: http://coverage.selectdb-in.cc/coverage/6b6d272bafb084c78f41416678ac70d5ac6a1aa0_6b6d272bafb084c78f41416678ac70d5ac6a1aa0/report/index.html

@doris-robot
Copy link

TPC-DS: Total hot run time: 192714 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 6b6d272bafb084c78f41416678ac70d5ac6a1aa0, data reload: false

query1	1315	962	925	925
query2	6398	2026	1998	1998
query3	11011	4527	4559	4527
query4	60733	29542	23062	23062
query5	5542	593	459	459
query6	425	222	189	189
query7	5553	529	319	319
query8	345	246	242	242
query9	8344	2585	2593	2585
query10	460	318	256	256
query11	17811	15182	15521	15182
query12	171	118	110	110
query13	1482	572	425	425
query14	11327	7372	7558	7372
query15	217	220	203	203
query16	7430	630	464	464
query17	1124	752	615	615
query18	1903	421	315	315
query19	202	191	162	162
query20	119	121	114	114
query21	204	120	104	104
query22	4552	4669	4476	4476
query23	34128	33436	33665	33436
query24	5538	2356	2340	2340
query25	483	466	411	411
query26	651	298	159	159
query27	1541	496	351	351
query28	4462	2465	2442	2442
query29	551	559	432	432
query30	250	194	161	161
query31	927	879	838	838
query32	72	56	58	56
query33	448	357	312	312
query34	746	880	561	561
query35	820	884	787	787
query36	1005	1041	986	986
query37	129	108	79	79
query38	4401	4297	4243	4243
query39	1525	1426	1455	1426
query40	216	119	106	106
query41	51	50	47	47
query42	122	107	114	107
query43	538	558	503	503
query44	1498	825	821	821
query45	185	179	168	168
query46	921	1079	680	680
query47	1879	1917	1833	1833
query48	389	423	326	326
query49	699	512	411	411
query50	624	670	405	405
query51	4486	4380	4285	4285
query52	104	104	97	97
query53	248	280	201	201
query54	487	494	416	416
query55	81	82	83	82
query56	278	274	272	272
query57	1201	1248	1114	1114
query58	252	235	251	235
query59	3013	3216	3129	3129
query60	287	272	261	261
query61	141	138	166	138
query62	696	720	667	667
query63	234	193	192	192
query64	1262	1021	655	655
query65	3310	3215	3180	3180
query66	790	394	299	299
query67	15928	15643	15508	15508
query68	4233	855	532	532
query69	497	298	269	269
query70	1196	1137	1104	1104
query71	399	299	255	255
query72	5979	3925	3854	3854
query73	711	765	365	365
query74	9953	9011	8824	8824
query75	3273	3238	2726	2726
query76	3317	1191	794	794
query77	547	381	274	274
query78	10163	10019	9382	9382
query79	2525	825	622	622
query80	1638	546	439	439
query81	560	331	239	239
query82	343	160	118	118
query83	268	189	157	157
query84	290	93	74	74
query85	776	349	296	296
query86	463	321	307	307
query87	4535	4491	4398	4398
query88	3839	2191	2173	2173
query89	396	336	312	312
query90	1635	193	196	193
query91	137	144	106	106
query92	63	60	53	53
query93	2697	914	545	545
query94	753	411	300	300
query95	340	264	260	260
query96	483	615	277	277
query97	2737	2887	2736	2736
query98	219	195	199	195
query99	1255	1372	1273	1273
Total cold run time: 310485 ms
Total hot run time: 192714 ms

@doris-robot
Copy link

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

query1	0.03	0.03	0.03
query2	0.08	0.05	0.05
query3	0.24	0.06	0.05
query4	1.64	0.08	0.09
query5	0.42	0.41	0.39
query6	1.16	0.67	0.65
query7	0.02	0.01	0.01
query8	0.05	0.05	0.05
query9	0.55	0.49	0.49
query10	0.55	0.56	0.56
query11	0.18	0.12	0.12
query12	0.16	0.13	0.13
query13	0.62	0.60	0.61
query14	2.83	2.76	2.69
query15	0.91	0.84	0.83
query16	0.38	0.37	0.38
query17	1.06	1.06	1.07
query18	0.20	0.19	0.20
query19	1.98	1.82	1.98
query20	0.02	0.01	0.02
query21	15.36	0.98	0.66
query22	0.79	0.80	0.69
query23	14.97	1.48	0.68
query24	2.20	0.36	0.22
query25	0.15	0.09	0.09
query26	0.29	0.18	0.17
query27	0.08	0.08	0.08
query28	13.39	1.35	0.55
query29	12.63	4.16	3.40
query30	0.25	0.08	0.05
query31	2.84	0.64	0.41
query32	3.23	0.59	0.49
query33	2.98	3.01	3.09
query34	16.30	5.16	4.51
query35	4.59	4.56	4.61
query36	0.63	0.48	0.48
query37	0.19	0.17	0.16
query38	0.16	0.15	0.15
query39	0.05	0.04	0.04
query40	0.16	0.13	0.13
query41	0.09	0.06	0.05
query42	0.07	0.05	0.05
query43	0.04	0.04	0.04
Total cold run time: 104.52 s
Total hot run time: 30.85 s

@koarz
Copy link
Contributor Author

koarz commented Jan 25, 2025

run buildall

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 42.06% (10971/26083)
Line Coverage: 32.33% (92749/286839)
Region Coverage: 31.49% (47560/151055)
Branch Coverage: 27.52% (24082/87518)
Coverage Report: http://coverage.selectdb-in.cc/coverage/f33fec591abf5ca166717f4f3e76c300724f0051_f33fec591abf5ca166717f4f3e76c300724f0051/report/index.html

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17833	5503	5372	5372
q2	2054	326	175	175
q3	10669	1231	754	754
q4	10301	983	561	561
q5	8951	2381	2178	2178
q6	199	177	137	137
q7	921	747	606	606
q8	9248	1368	1186	1186
q9	5155	4906	4955	4906
q10	6832	2342	1903	1903
q11	461	284	258	258
q12	349	357	224	224
q13	17770	3728	3096	3096
q14	245	218	215	215
q15	536	452	471	452
q16	639	602	589	589
q17	564	872	333	333
q18	7068	6452	6470	6452
q19	2259	949	550	550
q20	310	326	189	189
q21	2912	2192	2040	2040
q22	375	339	316	316
Total cold run time: 105651 ms
Total hot run time: 32492 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5571	5478	5467	5467
q2	236	332	237	237
q3	2218	2683	2359	2359
q4	1437	1833	1388	1388
q5	4275	4735	4787	4735
q6	179	167	132	132
q7	2074	2026	1815	1815
q8	2645	2851	2716	2716
q9	7354	7220	7269	7220
q10	2984	3308	2741	2741
q11	558	514	482	482
q12	648	728	612	612
q13	3602	3991	3279	3279
q14	283	301	279	279
q15	509	480	469	469
q16	679	703	631	631
q17	1231	1739	1296	1296
q18	7727	7383	7294	7294
q19	827	1141	1088	1088
q20	2000	2026	1891	1891
q21	5792	5286	5013	5013
q22	618	608	564	564
Total cold run time: 53447 ms
Total hot run time: 51708 ms

@doris-robot
Copy link

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

query1	1307	952	936	936
query2	6199	2096	2040	2040
query3	11210	4568	4613	4568
query4	61125	29136	23069	23069
query5	5440	608	460	460
query6	416	204	199	199
query7	5513	516	305	305
query8	342	248	226	226
query9	8037	2624	2602	2602
query10	448	316	249	249
query11	17517	15195	16064	15195
query12	168	106	118	106
query13	1463	552	438	438
query14	11052	6853	6527	6527
query15	216	222	196	196
query16	7241	662	470	470
query17	1121	762	589	589
query18	1814	408	320	320
query19	192	174	156	156
query20	113	115	110	110
query21	222	124	107	107
query22	4599	4951	4326	4326
query23	33969	33660	33496	33496
query24	5595	2337	2308	2308
query25	491	460	397	397
query26	665	272	158	158
query27	1641	472	332	332
query28	3872	2462	2465	2462
query29	544	612	422	422
query30	219	192	159	159
query31	937	895	818	818
query32	95	57	58	57
query33	448	363	307	307
query34	763	850	513	513
query35	796	877	759	759
query36	1015	1050	993	993
query37	120	102	84	84
query38	4315	4407	4213	4213
query39	1502	1464	1435	1435
query40	215	118	103	103
query41	52	53	49	49
query42	119	114	106	106
query43	525	536	491	491
query44	1342	830	851	830
query45	192	183	181	181
query46	909	1075	658	658
query47	1895	1915	1843	1843
query48	389	403	323	323
query49	711	488	412	412
query50	666	684	417	417
query51	4295	4261	4269	4261
query52	111	107	98	98
query53	234	264	223	223
query54	489	507	420	420
query55	83	83	79	79
query56	273	285	249	249
query57	1179	1204	1125	1125
query58	242	236	229	229
query59	3166	3371	2982	2982
query60	297	281	251	251
query61	117	114	117	114
query62	742	735	656	656
query63	234	192	191	191
query64	1238	1021	688	688
query65	3245	3219	3169	3169
query66	742	390	299	299
query67	15928	15439	15564	15439
query68	2440	862	551	551
query69	482	313	268	268
query70	1191	1148	1118	1118
query71	372	295	260	260
query72	6256	3851	3905	3851
query73	634	773	382	382
query74	9889	8788	8845	8788
query75	3203	3156	2689	2689
query76	2767	1184	791	791
query77	498	370	280	280
query78	10149	10179	9380	9380
query79	1089	802	589	589
query80	1600	529	454	454
query81	547	280	260	260
query82	338	145	121	121
query83	287	178	156	156
query84	283	87	75	75
query85	768	371	304	304
query86	377	308	304	304
query87	4399	4507	4407	4407
query88	3885	2189	2170	2170
query89	393	325	296	296
query90	1584	194	188	188
query91	132	140	105	105
query92	60	57	55	55
query93	1456	866	537	537
query94	673	390	314	314
query95	335	275	260	260
query96	473	618	285	285
query97	2823	2888	2759	2759
query98	221	199	192	192
query99	1271	1398	1273	1273
Total cold run time: 303247 ms
Total hot run time: 191455 ms

@doris-robot
Copy link

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

query1	0.03	0.03	0.03
query2	0.09	0.04	0.04
query3	0.23	0.06	0.06
query4	1.64	0.09	0.09
query5	0.43	0.39	0.41
query6	1.15	0.66	0.66
query7	0.02	0.02	0.02
query8	0.06	0.05	0.05
query9	0.54	0.49	0.50
query10	0.55	0.56	0.56
query11	0.16	0.11	0.12
query12	0.16	0.13	0.14
query13	0.61	0.60	0.60
query14	2.73	2.73	2.71
query15	0.91	0.84	0.83
query16	0.38	0.38	0.38
query17	1.02	0.99	1.02
query18	0.20	0.19	0.21
query19	1.85	1.84	2.01
query20	0.01	0.01	0.02
query21	15.37	0.96	0.65
query22	0.78	0.82	0.70
query23	14.95	1.51	0.68
query24	2.26	0.35	0.22
query25	0.15	0.09	0.09
query26	0.29	0.19	0.17
query27	0.09	0.09	0.09
query28	13.39	1.30	0.56
query29	12.70	4.12	3.39
query30	0.24	0.09	0.06
query31	2.86	0.62	0.39
query32	3.24	0.58	0.50
query33	2.99	3.07	3.06
query34	16.60	5.20	4.59
query35	4.63	4.58	4.56
query36	0.81	0.52	0.50
query37	0.20	0.17	0.15
query38	0.15	0.15	0.16
query39	0.05	0.04	0.04
query40	0.17	0.13	0.13
query41	0.10	0.06	0.05
query42	0.07	0.05	0.04
query43	0.04	0.04	0.05
Total cold run time: 104.9 s
Total hot run time: 30.99 s

@koarz
Copy link
Contributor Author

koarz commented Jan 26, 2025

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17876	5605	5449	5449
q2	2058	301	177	177
q3	10530	1243	759	759
q4	10222	978	536	536
q5	7883	2422	2168	2168
q6	199	172	135	135
q7	911	788	601	601
q8	9243	1393	1195	1195
q9	5281	4861	4931	4861
q10	6831	2369	1906	1906
q11	483	277	257	257
q12	358	355	222	222
q13	17797	3777	3107	3107
q14	230	242	212	212
q15	521	465	470	465
q16	637	606	594	594
q17	594	906	330	330
q18	7109	6487	6531	6487
q19	2111	984	559	559
q20	301	315	185	185
q21	2875	2175	2011	2011
q22	386	354	316	316
Total cold run time: 104436 ms
Total hot run time: 32532 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5608	5562	5519	5519
q2	237	327	230	230
q3	2278	2702	2340	2340
q4	1421	1827	1368	1368
q5	4359	4807	4760	4760
q6	171	160	131	131
q7	2086	1980	1826	1826
q8	2634	2871	2760	2760
q9	7274	7266	7405	7266
q10	3008	3331	2768	2768
q11	580	504	487	487
q12	661	715	596	596
q13	3583	3995	3327	3327
q14	288	295	281	281
q15	518	470	472	470
q16	658	681	650	650
q17	1274	1744	1265	1265
q18	7779	7589	7389	7389
q19	843	1168	1100	1100
q20	2019	2057	1895	1895
q21	5798	5224	4838	4838
q22	592	600	591	591
Total cold run time: 53669 ms
Total hot run time: 51857 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 191213 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 01ae7efdf495056e22d96045d91a69b2c9ea34a2, data reload: false

query1	1326	957	912	912
query2	6163	2041	2088	2041
query3	10995	4507	4454	4454
query4	60979	29144	23162	23162
query5	5411	586	442	442
query6	413	186	173	173
query7	5578	522	301	301
query8	334	232	226	226
query9	8401	2715	2700	2700
query10	463	311	256	256
query11	17791	15025	15765	15025
query12	165	113	108	108
query13	1476	543	390	390
query14	10937	6346	6511	6346
query15	213	207	189	189
query16	7289	637	471	471
query17	1125	723	560	560
query18	1940	420	304	304
query19	208	184	152	152
query20	127	113	115	113
query21	198	119	101	101
query22	4472	4511	4265	4265
query23	35037	34157	33537	33537
query24	5736	2326	2334	2326
query25	459	460	399	399
query26	645	261	156	156
query27	1688	463	336	336
query28	4325	2562	2484	2484
query29	541	563	448	448
query30	222	196	157	157
query31	930	885	855	855
query32	69	59	58	58
query33	422	356	290	290
query34	750	936	543	543
query35	823	837	807	807
query36	996	1021	964	964
query37	123	100	71	71
query38	4325	4255	4267	4255
query39	1489	1440	1458	1440
query40	205	117	96	96
query41	52	48	51	48
query42	126	103	106	103
query43	514	535	505	505
query44	1321	872	851	851
query45	188	180	172	172
query46	883	1060	663	663
query47	1832	1914	1860	1860
query48	392	398	337	337
query49	690	492	410	410
query50	658	670	400	400
query51	4351	4364	4230	4230
query52	111	105	95	95
query53	230	258	194	194
query54	495	491	413	413
query55	85	82	80	80
query56	267	270	244	244
query57	1200	1203	1153	1153
query58	262	250	243	243
query59	3109	3205	3233	3205
query60	298	289	274	274
query61	162	119	121	119
query62	714	779	699	699
query63	234	194	194	194
query64	1309	1033	641	641
query65	3289	3166	3146	3146
query66	675	403	299	299
query67	15756	15299	15334	15299
query68	1911	783	549	549
query69	423	313	267	267
query70	1177	1173	1151	1151
query71	346	285	262	262
query72	6133	3896	3933	3896
query73	635	773	369	369
query74	9744	8861	8752	8752
query75	3136	3245	2689	2689
query76	1949	1187	776	776
query77	339	360	281	281
query78	10230	10236	9299	9299
query79	1006	902	598	598
query80	617	524	482	482
query81	499	272	241	241
query82	392	156	131	131
query83	188	180	161	161
query84	284	101	71	71
query85	717	351	293	293
query86	313	325	293	293
query87	4378	4566	4456	4456
query88	3576	2201	2196	2196
query89	401	340	290	290
query90	1835	187	189	187
query91	128	143	109	109
query92	63	54	57	54
query93	980	863	544	544
query94	479	410	295	295
query95	340	275	253	253
query96	495	624	287	287
query97	2809	2816	2748	2748
query98	218	211	193	193
query99	1269	1357	1250	1250
Total cold run time: 301002 ms
Total hot run time: 191213 ms

@doris-robot
Copy link

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

query1	0.03	0.03	0.03
query2	0.09	0.04	0.04
query3	0.24	0.05	0.07
query4	1.63	0.09	0.10
query5	0.43	0.44	0.39
query6	1.16	0.66	0.66
query7	0.02	0.02	0.02
query8	0.05	0.05	0.05
query9	0.54	0.49	0.48
query10	0.56	0.58	0.55
query11	0.16	0.12	0.12
query12	0.16	0.13	0.13
query13	0.61	0.59	0.60
query14	2.85	2.77	2.74
query15	0.91	0.84	0.84
query16	0.37	0.38	0.38
query17	1.07	1.07	1.06
query18	0.19	0.18	0.19
query19	1.85	1.87	2.04
query20	0.02	0.01	0.01
query21	15.36	0.96	0.65
query22	0.78	0.78	0.71
query23	14.96	1.55	0.69
query24	2.19	0.36	0.22
query25	0.13	0.09	0.08
query26	0.29	0.19	0.19
query27	0.09	0.08	0.08
query28	13.47	1.24	0.54
query29	12.62	4.12	3.35
query30	0.24	0.08	0.05
query31	2.83	0.61	0.41
query32	3.23	0.57	0.49
query33	3.01	3.04	3.06
query34	16.47	5.17	4.53
query35	4.54	4.60	4.56
query36	0.61	0.51	0.47
query37	0.20	0.16	0.16
query38	0.16	0.15	0.16
query39	0.05	0.04	0.04
query40	0.16	0.14	0.13
query41	0.10	0.06	0.05
query42	0.07	0.05	0.05
query43	0.05	0.05	0.05
Total cold run time: 104.55 s
Total hot run time: 30.97 s

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 42.06% (10971/26083)
Line Coverage: 32.33% (92740/286852)
Region Coverage: 31.47% (47546/151061)
Branch Coverage: 27.52% (24083/87520)
Coverage Report: http://coverage.selectdb-in.cc/coverage/01ae7efdf495056e22d96045d91a69b2c9ea34a2_01ae7efdf495056e22d96045d91a69b2c9ea34a2/report/index.html

check_fold_consistency "cast(cast('11:11:11' as time) as float);"
check_fold_consistency "cast(cast('11:11:11' as time) as int);"
check_fold_consistency "cast(cast('11:11:11' as time) as integer);"
check_fold_consistency "cast(cast('11:11:11' as time) as json);"
Copy link
Contributor

Choose a reason for hiding this comment

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

what's the behaviour of casting to json? as an element? for all check_fold_consistency we should also add a qt_sql command for result consistency.

qt_sql "select cast(1111111 as time);"
qt_sql "select cast('839:00:00' as time);"
qt_sql "select cast('8385959' as time);"
qt_sql "select cast(cast('838:59:59' as variant) as time);"
Copy link
Contributor

Choose a reason for hiding this comment

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

also add some value out of bound

Copy link
Contributor

@zclllyybb zclllyybb left a comment

Choose a reason for hiding this comment

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

we should support it in Nereids

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