Skip to content

Conversation

@zclllyybb
Copy link
Contributor

@zclllyybb zclllyybb commented Sep 8, 2025

What problem does this PR solve?

Issue Number: close #xxx

Related PR: #xxx

Problem Summary:

support this:

mysql> select cast('2020-12-12:12:12:12' as datetime);
+-----------------------------------------+
| cast('2020-12-12:12:12:12' as datetime) |
+-----------------------------------------+
| 2020-12-12 12:12:12                     |
+-----------------------------------------+

Release note

None

Check List (For Author)

Check List (For Reviewer who merge this PR)

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

@zclllyybb
Copy link
Contributor Author

run buildall

@hello-stephen
Copy link
Contributor

FE UT Coverage Report

Increment line coverage 100% (0/0) 🎉
Increment coverage report
Complete coverage report

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17598	5168	5070	5070
q2	2029	330	219	219
q3	10227	1376	739	739
q4	10234	1038	530	530
q5	7510	2459	2362	2362
q6	189	165	136	136
q7	928	756	624	624
q8	9342	1331	1092	1092
q9	7154	5153	5188	5153
q10	6902	2430	1995	1995
q11	480	295	274	274
q12	355	372	225	225
q13	17795	3665	3112	3112
q14	252	255	222	222
q15	568	493	492	492
q16	1008	1015	959	959
q17	604	888	373	373
q18	7833	7190	7212	7190
q19	1092	960	569	569
q20	350	337	231	231
q21	3989	2596	2366	2366
q22	1100	1031	1005	1005
Total cold run time: 107539 ms
Total hot run time: 34938 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5111	5084	5079	5079
q2	243	338	231	231
q3	2219	2695	2320	2320
q4	1360	1803	1352	1352
q5	4238	4648	4622	4622
q6	223	182	135	135
q7	2067	1966	1912	1912
q8	2688	2673	2646	2646
q9	7526	7737	7225	7225
q10	3124	3276	2890	2890
q11	603	525	502	502
q12	697	805	670	670
q13	3596	3942	3292	3292
q14	307	305	311	305
q15	523	483	481	481
q16	1143	1136	1037	1037
q17	1197	1583	1394	1394
q18	7838	7788	7466	7466
q19	866	861	933	861
q20	1999	2077	2019	2019
q21	5116	4415	4350	4350
q22	1094	1044	996	996
Total cold run time: 53778 ms
Total hot run time: 51785 ms

@doris-robot
Copy link

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

query1	1072	443	405	405
query2	6571	1681	1661	1661
query3	6758	227	228	227
query4	26245	24059	22963	22963
query5	4880	669	544	544
query6	363	263	245	245
query7	4687	526	305	305
query8	319	273	255	255
query9	8701	2924	2954	2924
query10	525	359	291	291
query11	16411	14964	14840	14840
query12	189	122	126	122
query13	1672	563	420	420
query14	11466	9147	9302	9147
query15	201	199	177	177
query16	7663	667	486	486
query17	1166	784	627	627
query18	2068	437	340	340
query19	203	197	189	189
query20	139	126	124	124
query21	208	135	114	114
query22	4326	4050	4115	4050
query23	34187	33335	33233	33233
query24	8122	2393	2408	2393
query25	569	519	498	498
query26	1235	284	177	177
query27	2728	540	371	371
query28	4385	2295	2273	2273
query29	835	649	567	567
query30	290	235	198	198
query31	928	807	747	747
query32	91	83	81	81
query33	608	409	359	359
query34	790	856	545	545
query35	820	846	770	770
query36	986	1008	923	923
query37	132	113	91	91
query38	3571	3514	3493	3493
query39	1481	1451	1433	1433
query40	226	134	129	129
query41	64	60	63	60
query42	132	114	119	114
query43	512	528	456	456
query44	1360	875	862	862
query45	183	178	172	172
query46	875	1021	649	649
query47	1805	1837	1753	1753
query48	398	421	336	336
query49	736	528	418	418
query50	669	697	402	402
query51	3877	3870	3965	3870
query52	114	120	111	111
query53	250	271	198	198
query54	649	619	544	544
query55	102	94	101	94
query56	350	346	330	330
query57	1185	1211	1141	1141
query58	295	292	290	290
query59	2638	2690	2593	2593
query60	371	363	361	361
query61	171	162	164	162
query62	783	758	658	658
query63	241	203	208	203
query64	4454	1163	835	835
query65	4053	3999	3993	3993
query66	1092	440	366	366
query67	15757	15512	15233	15233
query68	7953	955	606	606
query69	557	331	310	310
query70	1356	1359	1202	1202
query71	529	363	336	336
query72	5854	4992	5084	4992
query73	674	630	367	367
query74	8875	9171	8749	8749
query75	3268	3270	2826	2826
query76	3266	1167	764	764
query77	519	435	345	345
query78	9689	9755	8827	8827
query79	2242	863	606	606
query80	726	634	518	518
query81	503	261	236	236
query82	313	165	142	142
query83	278	254	250	250
query84	255	114	93	93
query85	855	462	443	443
query86	388	318	302	302
query87	3676	3819	3599	3599
query88	2995	2239	2212	2212
query89	387	330	297	297
query90	1960	234	226	226
query91	164	168	140	140
query92	99	80	71	71
query93	2596	1031	639	639
query94	694	440	333	333
query95	421	340	336	336
query96	501	589	282	282
query97	2879	2984	2853	2853
query98	249	218	218	218
query99	1346	1418	1294	1294
Total cold run time: 277000 ms
Total hot run time: 189355 ms

@doris-robot
Copy link

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

query1	0.06	0.05	0.05
query2	0.09	0.06	0.06
query3	0.26	0.09	0.09
query4	1.60	0.12	0.12
query5	0.28	0.26	0.26
query6	1.16	0.67	0.65
query7	0.04	0.03	0.03
query8	0.05	0.05	0.05
query9	0.62	0.54	0.52
query10	0.58	0.58	0.59
query11	0.16	0.12	0.12
query12	0.15	0.12	0.12
query13	0.63	0.64	0.62
query14	1.04	1.04	1.04
query15	0.87	0.85	0.86
query16	0.40	0.39	0.39
query17	1.08	1.05	1.04
query18	0.22	0.22	0.20
query19	1.92	1.84	1.78
query20	0.02	0.01	0.01
query21	15.40	0.94	0.58
query22	0.75	1.15	0.79
query23	14.82	1.38	0.63
query24	6.81	2.57	0.41
query25	0.31	0.09	0.28
query26	0.65	0.17	0.14
query27	0.06	0.05	0.05
query28	9.40	0.89	0.43
query29	12.59	3.94	3.25
query30	0.29	0.13	0.11
query31	2.84	0.60	0.39
query32	3.26	0.55	0.48
query33	3.03	3.17	3.04
query34	16.15	5.46	4.83
query35	4.96	4.93	4.96
query36	0.72	0.52	0.51
query37	0.11	0.07	0.07
query38	0.06	0.04	0.05
query39	0.04	0.03	0.03
query40	0.19	0.14	0.14
query41	0.08	0.04	0.03
query42	0.04	0.03	0.02
query43	0.04	0.04	0.03
Total cold run time: 103.83 s
Total hot run time: 29.6 s

@github-actions
Copy link
Contributor

github-actions bot commented Sep 9, 2025

PR approved by anyone and no changes requested.

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Sep 9, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Sep 9, 2025

PR approved by at least one committer and no changes requested.

@hello-stephen hello-stephen merged commit f0a1063 into apache:master Sep 9, 2025
26 of 28 checks passed
@zclllyybb zclllyybb deleted the colon branch September 9, 2025 02:33
zclllyybb added a commit to apache/doris-website that referenced this pull request Sep 9, 2025
…tetime conversions (#2851)

doc of apache/doris#55785

## Versions 

- [x] dev
- [ ] 3.0
- [ ] 2.1
- [ ] 2.0

## Languages

- [x] Chinese
- [x] English

## Docs Checklist

- [ ] Checked by AI
- [ ] Test Cases Built
CalvinKirs pushed a commit to CalvinKirs/doris-website that referenced this pull request Sep 11, 2025
…tetime conversions (apache#2851)

doc of apache/doris#55785

## Versions 

- [x] dev
- [ ] 3.0
- [ ] 2.1
- [ ] 2.0

## Languages

- [x] Chinese
- [x] English

## Docs Checklist

- [ ] Checked by AI
- [ ] Test Cases Built
@zclllyybb zclllyybb changed the title [Enhancement](cast) Support colon as delimater between date and time [Enhancement](cast) Support colon as delimater between date and time cast Sep 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants