Skip to content

Conversation

@Mryange
Copy link
Contributor

@Mryange Mryange commented Mar 25, 2025

What problem does this PR solve?

In the past, we did not support time cast to datetime/date.
Here we add the support because time cast to date involves the current date, so most of the tests are BEUT.

  1. Support casting the time type to date/datetime.
  2. The time type can be implicitly converted to date/datetime.

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?

@Mryange
Copy link
Contributor Author

Mryange commented Mar 25, 2025

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	25993	5083	5058	5058
q2	2062	298	172	172
q3	10390	1276	696	696
q4	10228	1007	528	528
q5	7546	2373	2367	2367
q6	186	171	137	137
q7	919	745	628	628
q8	9336	1318	1133	1133
q9	6824	5114	5158	5114
q10	6815	2311	1882	1882
q11	463	275	247	247
q12	348	350	215	215
q13	17760	3743	3136	3136
q14	237	221	205	205
q15	528	480	493	480
q16	622	620	587	587
q17	597	862	349	349
q18	7651	7241	7131	7131
q19	1220	967	568	568
q20	317	331	195	195
q21	3907	3405	2369	2369
q22	1051	1010	968	968
Total cold run time: 115000 ms
Total hot run time: 34165 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5219	5159	5144	5144
q2	238	327	235	235
q3	2169	2689	2313	2313
q4	1439	1834	1434	1434
q5	4551	4540	4364	4364
q6	213	163	125	125
q7	1953	1891	1794	1794
q8	2607	2566	2608	2566
q9	7342	7180	7128	7128
q10	2981	3198	2739	2739
q11	576	512	492	492
q12	697	811	630	630
q13	3520	3901	3198	3198
q14	284	307	268	268
q15	538	468	468	468
q16	681	682	655	655
q17	1168	1662	1344	1344
q18	7793	7568	7581	7568
q19	817	828	942	828
q20	1989	2005	1840	1840
q21	5227	4663	4668	4663
q22	1073	1009	996	996
Total cold run time: 53075 ms
Total hot run time: 50792 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 186367 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 3cff2317c5399cdc88ff611b8ac0075f719c9d76, data reload: false

query1	1056	492	473	473
query2	6531	1966	1918	1918
query3	6808	223	217	217
query4	26272	23567	23286	23286
query5	4359	650	476	476
query6	297	195	198	195
query7	4606	483	268	268
query8	297	256	253	253
query9	8594	2578	2560	2560
query10	447	335	282	282
query11	15428	15149	14856	14856
query12	162	113	102	102
query13	1663	535	403	403
query14	9417	6199	6265	6199
query15	199	192	167	167
query16	7570	627	466	466
query17	1197	710	561	561
query18	2090	408	307	307
query19	195	182	161	161
query20	120	121	115	115
query21	208	119	107	107
query22	4163	4339	4332	4332
query23	34282	32955	33073	32955
query24	8459	2375	2361	2361
query25	544	442	377	377
query26	1233	263	139	139
query27	2749	500	312	312
query28	4327	2404	2400	2400
query29	724	549	416	416
query30	281	223	182	182
query31	957	869	784	784
query32	70	63	62	62
query33	580	383	301	301
query34	775	821	501	501
query35	800	897	745	745
query36	967	991	874	874
query37	119	104	72	72
query38	4096	4223	4142	4142
query39	1464	1420	1430	1420
query40	205	117	101	101
query41	54	52	52	52
query42	117	100	101	100
query43	497	511	471	471
query44	1272	779	778	778
query45	177	173	171	171
query46	849	1035	618	618
query47	1794	1816	1723	1723
query48	377	415	283	283
query49	774	537	398	398
query50	690	716	401	401
query51	4203	4224	4111	4111
query52	112	107	99	99
query53	220	250	177	177
query54	486	481	417	417
query55	80	80	84	80
query56	289	264	252	252
query57	1136	1154	1091	1091
query58	241	238	232	232
query59	2701	2915	2535	2535
query60	270	293	251	251
query61	128	136	164	136
query62	777	737	672	672
query63	233	182	177	177
query64	4313	1010	663	663
query65	4319	4306	4258	4258
query66	1116	407	295	295
query67	15766	15637	15413	15413
query68	8583	878	504	504
query69	466	297	260	260
query70	1222	1137	1101	1101
query71	455	297	275	275
query72	5686	4745	4788	4745
query73	695	604	337	337
query74	8840	8909	9012	8909
query75	4029	3237	2772	2772
query76	3697	1186	754	754
query77	797	370	281	281
query78	10134	10115	9332	9332
query79	1908	807	557	557
query80	597	518	434	434
query81	472	251	220	220
query82	485	129	97	97
query83	186	176	158	158
query84	241	95	71	71
query85	784	421	301	301
query86	387	299	279	279
query87	4390	4504	4326	4326
query88	3470	2216	2220	2216
query89	391	308	275	275
query90	1910	210	205	205
query91	139	138	109	109
query92	77	57	56	56
query93	1537	1067	582	582
query94	655	405	305	305
query95	362	270	261	261
query96	489	560	277	277
query97	3182	3216	3144	3144
query98	245	206	241	206
query99	1444	1397	1316	1316
Total cold run time: 275257 ms
Total hot run time: 186367 ms

@doris-robot
Copy link

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

query1	0.04	0.04	0.03
query2	0.12	0.10	0.10
query3	0.25	0.20	0.20
query4	1.60	0.19	0.18
query5	0.62	0.56	0.58
query6	1.21	0.73	0.71
query7	0.02	0.02	0.02
query8	0.05	0.04	0.03
query9	0.57	0.52	0.51
query10	0.57	0.59	0.56
query11	0.16	0.11	0.11
query12	0.15	0.11	0.11
query13	0.63	0.61	0.60
query14	2.65	2.72	2.80
query15	0.94	0.85	0.85
query16	0.37	0.37	0.38
query17	1.02	1.01	1.05
query18	0.21	0.19	0.20
query19	1.86	1.83	1.90
query20	0.01	0.01	0.01
query21	15.35	0.85	0.54
query22	0.75	1.24	0.74
query23	14.80	1.36	0.60
query24	7.50	0.93	0.80
query25	0.54	0.21	0.11
query26	0.68	0.16	0.14
query27	0.05	0.05	0.06
query28	9.12	0.90	0.45
query29	12.54	4.00	3.33
query30	0.24	0.08	0.06
query31	2.85	0.60	0.38
query32	3.22	0.55	0.47
query33	2.98	3.06	3.30
query34	15.81	5.11	4.51
query35	4.54	4.53	4.49
query36	0.65	0.49	0.47
query37	0.08	0.06	0.07
query38	0.05	0.04	0.04
query39	0.03	0.02	0.02
query40	0.17	0.13	0.12
query41	0.08	0.04	0.03
query42	0.04	0.02	0.02
query43	0.03	0.03	0.03
Total cold run time: 105.15 s
Total hot run time: 31.22 s

@doris-robot
Copy link

BE UT Coverage Report

Increment line coverage 95.24% (60/63) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 50.91% (13627/26765)
Line Coverage 40.31% (118346/293579)
Region Coverage 38.98% (60105/154214)
Branch Coverage 33.88% (30228/89220)

@Mryange Mryange force-pushed the cast-time-to-datetime branch from 3cff231 to 587c8e4 Compare March 26, 2025 03:54
@Mryange
Copy link
Contributor Author

Mryange commented Mar 26, 2025

run buildall

@Mryange Mryange marked this pull request as ready for review March 26, 2025 04:15
@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	25947	5098	5065	5065
q2	2063	289	167	167
q3	10492	1264	703	703
q4	10251	995	538	538
q5	7645	2408	2340	2340
q6	189	163	132	132
q7	928	752	623	623
q8	9313	1367	1148	1148
q9	6802	5109	5125	5109
q10	6860	2303	1898	1898
q11	491	272	248	248
q12	348	358	227	227
q13	17794	3682	3130	3130
q14	237	222	205	205
q15	545	504	485	485
q16	636	612	568	568
q17	603	859	338	338
q18	7600	7291	7059	7059
q19	2047	992	591	591
q20	340	319	189	189
q21	3989	2629	2384	2384
q22	1047	1036	981	981
Total cold run time: 116167 ms
Total hot run time: 34128 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5299	5088	5123	5088
q2	236	328	241	241
q3	2189	2692	2327	2327
q4	1453	1817	1493	1493
q5	4454	4454	4392	4392
q6	214	169	127	127
q7	2001	1909	1782	1782
q8	2594	2539	2582	2539
q9	7257	7298	7061	7061
q10	3029	3194	2730	2730
q11	576	500	492	492
q12	710	762	600	600
q13	3615	3920	3443	3443
q14	281	292	264	264
q15	512	487	468	468
q16	655	664	637	637
q17	1161	1760	1365	1365
q18	7728	7768	7545	7545
q19	813	822	920	822
q20	1893	1959	1847	1847
q21	5365	5010	4959	4959
q22	1109	1047	1024	1024
Total cold run time: 53144 ms
Total hot run time: 51246 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 192502 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 587c8e40184e0893685ec1616dac72534d5cb118, data reload: false

query1	1430	1071	1049	1049
query2	6092	1875	1916	1875
query3	11003	4591	4497	4497
query4	54314	24693	22947	22947
query5	4989	549	474	474
query6	373	218	190	190
query7	4993	506	274	274
query8	325	264	256	256
query9	5858	2585	2589	2585
query10	428	307	253	253
query11	15196	15211	14796	14796
query12	158	110	105	105
query13	1083	495	404	404
query14	10104	6314	6397	6314
query15	210	211	190	190
query16	7091	686	533	533
query17	1052	728	559	559
query18	1582	425	308	308
query19	200	186	169	169
query20	140	131	128	128
query21	206	126	110	110
query22	4370	4690	4427	4427
query23	33990	33490	33228	33228
query24	6595	2430	2404	2404
query25	450	462	400	400
query26	675	274	150	150
query27	2410	506	325	325
query28	3208	2487	2479	2479
query29	564	575	445	445
query30	271	217	192	192
query31	882	874	815	815
query32	72	61	61	61
query33	463	385	318	318
query34	750	848	540	540
query35	793	837	760	760
query36	951	1004	899	899
query37	121	104	78	78
query38	4111	4199	4146	4146
query39	1539	1599	1456	1456
query40	209	125	112	112
query41	58	58	54	54
query42	125	108	114	108
query43	501	497	481	481
query44	1305	822	821	821
query45	191	178	172	172
query46	844	1026	644	644
query47	1886	1900	1820	1820
query48	384	428	326	326
query49	704	499	439	439
query50	717	743	411	411
query51	4343	4362	4236	4236
query52	115	114	104	104
query53	214	248	177	177
query54	477	504	422	422
query55	88	85	89	85
query56	285	303	270	270
query57	1187	1191	1108	1108
query58	251	249	294	249
query59	2703	2807	2708	2708
query60	301	303	299	299
query61	131	141	130	130
query62	742	746	675	675
query63	224	183	188	183
query64	1492	1039	702	702
query65	4363	4317	4242	4242
query66	721	394	294	294
query67	16064	16000	15484	15484
query68	7387	858	502	502
query69	536	310	265	265
query70	1137	1126	1063	1063
query71	461	291	285	285
query72	6028	4952	4968	4952
query73	1267	725	344	344
query74	8867	9101	8605	8605
query75	3734	3227	2730	2730
query76	4050	1187	738	738
query77	615	367	277	277
query78	10107	10129	9308	9308
query79	2553	824	569	569
query80	659	509	443	443
query81	482	271	220	220
query82	523	132	94	94
query83	176	174	155	155
query84	294	92	75	75
query85	788	355	398	355
query86	367	299	270	270
query87	4387	4469	4316	4316
query88	3562	2288	2268	2268
query89	398	306	276	276
query90	1759	212	214	212
query91	148	135	106	106
query92	79	61	57	57
query93	2403	1062	571	571
query94	672	417	309	309
query95	354	267	269	267
query96	494	581	277	277
query97	3186	3208	3216	3208
query98	228	205	198	198
query99	1346	1455	1292	1292
Total cold run time: 298714 ms
Total hot run time: 192502 ms

@doris-robot
Copy link

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

query1	0.03	0.04	0.02
query2	0.13	0.10	0.10
query3	0.24	0.20	0.19
query4	1.58	0.20	0.19
query5	0.59	0.58	0.60
query6	1.18	0.72	0.72
query7	0.02	0.02	0.02
query8	0.05	0.04	0.04
query9	0.59	0.52	0.53
query10	0.57	0.58	0.59
query11	0.15	0.11	0.12
query12	0.15	0.11	0.12
query13	0.61	0.60	0.61
query14	2.67	2.72	2.69
query15	0.93	0.85	0.85
query16	0.38	0.39	0.39
query17	1.07	1.03	1.05
query18	0.21	0.20	0.19
query19	1.91	1.95	1.84
query20	0.01	0.01	0.02
query21	15.36	0.93	0.56
query22	0.76	1.16	0.70
query23	14.95	1.39	0.62
query24	6.68	1.34	0.77
query25	0.50	0.22	0.06
query26	0.50	0.16	0.14
query27	0.04	0.05	0.05
query28	9.40	0.89	0.43
query29	12.54	3.95	3.29
query30	0.26	0.09	0.06
query31	2.86	0.59	0.39
query32	3.22	0.55	0.48
query33	3.07	3.04	3.09
query34	15.71	5.12	4.48
query35	4.53	4.55	4.50
query36	0.67	0.50	0.48
query37	0.08	0.06	0.07
query38	0.05	0.04	0.04
query39	0.03	0.02	0.02
query40	0.16	0.14	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: 104.58 s
Total hot run time: 31.15 s

@Mryange
Copy link
Contributor Author

Mryange commented Mar 26, 2025

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	26090	5154	5128	5128
q2	2076	299	179	179
q3	10386	1280	696	696
q4	10241	1030	573	573
q5	7556	2402	2336	2336
q6	193	165	138	138
q7	910	757	616	616
q8	9327	1276	1097	1097
q9	6892	5080	5141	5080
q10	6833	2325	1892	1892
q11	473	280	273	273
q12	347	350	226	226
q13	17757	3725	3159	3159
q14	226	229	208	208
q15	531	487	493	487
q16	626	623	594	594
q17	575	864	340	340
q18	7751	7239	7202	7202
q19	1209	967	544	544
q20	322	326	196	196
q21	3960	3367	2477	2477
q22	1095	1050	973	973
Total cold run time: 115376 ms
Total hot run time: 34414 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5234	5144	5155	5144
q2	237	324	228	228
q3	2136	2675	2322	2322
q4	1470	1849	1540	1540
q5	4606	4437	4347	4347
q6	224	173	126	126
q7	2013	1930	1759	1759
q8	2578	2559	2555	2555
q9	7255	7163	7117	7117
q10	2990	3209	2734	2734
q11	581	531	518	518
q12	667	764	592	592
q13	3541	3925	3284	3284
q14	278	284	270	270
q15	522	476	478	476
q16	658	685	649	649
q17	1161	1558	1399	1399
q18	7737	7516	7274	7274
q19	786	803	781	781
q20	2009	1971	1792	1792
q21	5177	4749	4790	4749
q22	1061	1032	1006	1006
Total cold run time: 52921 ms
Total hot run time: 50662 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 185826 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 587c8e40184e0893685ec1616dac72534d5cb118, data reload: false

query1	1015	479	468	468
query2	6530	1913	1916	1913
query3	6822	220	219	219
query4	26918	23798	22999	22999
query5	4353	636	467	467
query6	292	206	199	199
query7	4611	491	277	277
query8	295	244	228	228
query9	8620	2594	2591	2591
query10	476	305	248	248
query11	15740	15345	14800	14800
query12	160	107	104	104
query13	1659	502	389	389
query14	9259	6176	6251	6176
query15	220	188	172	172
query16	7133	657	485	485
query17	1014	693	556	556
query18	1958	395	301	301
query19	180	179	147	147
query20	119	120	125	120
query21	214	119	103	103
query22	4189	4174	4136	4136
query23	33769	33166	32977	32977
query24	8053	2404	2415	2404
query25	523	455	388	388
query26	1239	267	147	147
query27	2686	512	328	328
query28	4432	2415	2416	2415
query29	763	566	427	427
query30	284	214	193	193
query31	916	839	763	763
query32	73	67	60	60
query33	561	404	336	336
query34	774	832	513	513
query35	794	815	727	727
query36	967	1022	890	890
query37	117	101	75	75
query38	4226	4036	4175	4036
query39	1455	1414	1376	1376
query40	209	117	102	102
query41	55	55	55	55
query42	118	104	102	102
query43	494	519	476	476
query44	1287	793	787	787
query45	173	170	165	165
query46	829	1029	635	635
query47	1776	1808	1741	1741
query48	384	408	307	307
query49	804	534	453	453
query50	673	741	412	412
query51	4215	4173	4156	4156
query52	109	111	99	99
query53	220	249	178	178
query54	499	495	435	435
query55	84	80	115	80
query56	267	285	263	263
query57	1116	1117	1075	1075
query58	245	242	233	233
query59	2512	2652	2610	2610
query60	303	288	252	252
query61	158	130	129	129
query62	770	778	661	661
query63	216	177	180	177
query64	4383	1003	667	667
query65	4340	4201	4234	4201
query66	1205	465	321	321
query67	16190	15748	15576	15576
query68	7922	876	504	504
query69	487	311	271	271
query70	1196	1045	1065	1045
query71	420	309	275	275
query72	5773	4885	4819	4819
query73	652	654	346	346
query74	8876	9238	8652	8652
query75	3242	3242	2698	2698
query76	3169	1184	742	742
query77	483	362	291	291
query78	10138	10199	9274	9274
query79	2665	829	561	561
query80	695	504	437	437
query81	491	253	215	215
query82	683	127	96	96
query83	174	169	161	161
query84	291	99	76	76
query85	785	348	320	320
query86	398	302	271	271
query87	4344	4432	4355	4355
query88	4099	2237	2220	2220
query89	384	303	273	273
query90	1890	206	210	206
query91	139	139	111	111
query92	74	59	59	59
query93	2546	1037	637	637
query94	696	403	301	301
query95	358	269	255	255
query96	488	558	275	275
query97	3140	3256	3128	3128
query98	233	196	200	196
query99	1367	1401	1255	1255
Total cold run time: 275341 ms
Total hot run time: 185826 ms

@doris-robot
Copy link

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

query1	0.04	0.05	0.03
query2	0.13	0.11	0.10
query3	0.24	0.19	0.19
query4	1.60	0.19	0.20
query5	0.59	0.57	0.60
query6	1.21	0.71	0.72
query7	0.03	0.02	0.02
query8	0.04	0.03	0.04
query9	0.59	0.53	0.51
query10	0.57	0.59	0.57
query11	0.15	0.10	0.11
query12	0.14	0.12	0.12
query13	0.62	0.61	0.61
query14	2.69	2.81	2.80
query15	0.94	0.86	0.86
query16	0.39	0.39	0.39
query17	1.00	1.03	1.06
query18	0.21	0.19	0.19
query19	1.91	1.97	1.76
query20	0.01	0.01	0.01
query21	15.35	0.88	0.55
query22	0.75	1.23	0.63
query23	14.98	1.36	0.62
query24	7.09	1.45	0.81
query25	0.50	0.12	0.06
query26	0.65	0.17	0.14
query27	0.05	0.04	0.05
query28	9.91	0.89	0.43
query29	12.54	3.98	3.29
query30	0.26	0.09	0.06
query31	2.82	0.59	0.39
query32	3.23	0.55	0.47
query33	3.03	3.02	3.07
query34	15.76	5.14	4.53
query35	4.53	4.56	4.53
query36	0.67	0.50	0.48
query37	0.09	0.06	0.06
query38	0.04	0.04	0.04
query39	0.03	0.03	0.02
query40	0.16	0.14	0.12
query41	0.08	0.02	0.02
query42	0.04	0.02	0.03
query43	0.03	0.03	0.03
Total cold run time: 105.69 s
Total hot run time: 31.15 s

@hello-stephen
Copy link
Contributor

BE UT Coverage Report

Increment line coverage 95.24% (60/63) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 50.91% (13626/26765)
Line Coverage 40.30% (118311/293603)
Region Coverage 38.96% (60094/154233)
Branch Coverage 33.87% (30225/89230)

jacktengg
jacktengg previously approved these changes Mar 28, 2025
@github-actions
Copy link
Contributor

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

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

PR approved by anyone and no changes requested.

@Mryange
Copy link
Contributor Author

Mryange commented Mar 28, 2025

run buildall

@github-actions github-actions bot removed the approved Indicates a PR has been approved by one committer. label Mar 28, 2025
@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	26102	5051	5017	5017
q2	2074	322	176	176
q3	10466	1249	682	682
q4	10239	991	529	529
q5	7787	2368	2383	2368
q6	188	166	132	132
q7	897	745	600	600
q8	9301	1298	1178	1178
q9	6835	5077	5190	5077
q10	6810	2277	1894	1894
q11	467	270	261	261
q12	344	354	212	212
q13	17764	3718	3053	3053
q14	223	246	210	210
q15	543	487	510	487
q16	626	624	594	594
q17	583	885	344	344
q18	7679	7330	7163	7163
q19	1567	949	564	564
q20	316	326	180	180
q21	3873	3341	2455	2455
q22	1085	1038	971	971
Total cold run time: 115769 ms
Total hot run time: 34147 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5173	5112	5127	5112
q2	241	328	237	237
q3	2204	2663	2350	2350
q4	1449	1836	1495	1495
q5	4578	4452	4358	4358
q6	214	165	124	124
q7	1975	1912	1763	1763
q8	2614	2549	2479	2479
q9	7203	7162	7305	7162
q10	2969	3162	2726	2726
q11	565	492	486	486
q12	691	769	636	636
q13	3468	3844	3260	3260
q14	275	314	273	273
q15	555	502	500	500
q16	654	676	616	616
q17	1139	1558	1370	1370
q18	7722	7483	7356	7356
q19	829	850	945	850
q20	1989	2023	1860	1860
q21	5013	4718	4608	4608
q22	1109	1044	991	991
Total cold run time: 52629 ms
Total hot run time: 50612 ms

@doris-robot
Copy link

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

query1	1019	524	468	468
query2	6558	1944	1949	1944
query3	6820	219	218	218
query4	26909	23568	23197	23197
query5	4353	656	496	496
query6	307	196	174	174
query7	4612	480	271	271
query8	293	233	219	219
query9	8631	2503	2519	2503
query10	465	316	254	254
query11	15954	15015	14900	14900
query12	168	109	104	104
query13	1661	527	417	417
query14	9765	6056	6047	6047
query15	199	199	170	170
query16	7293	638	499	499
query17	1169	726	537	537
query18	1968	393	313	313
query19	189	188	152	152
query20	123	122	115	115
query21	211	119	100	100
query22	4273	4220	4189	4189
query23	33845	32814	32918	32814
query24	8496	2368	2382	2368
query25	520	458	390	390
query26	1219	266	143	143
query27	2765	488	322	322
query28	4385	2395	2372	2372
query29	719	555	430	430
query30	287	215	188	188
query31	937	869	751	751
query32	76	65	65	65
query33	556	372	362	362
query34	769	838	500	500
query35	780	817	717	717
query36	958	972	902	902
query37	116	104	77	77
query38	4169	4222	4296	4222
query39	1437	1400	1424	1400
query40	208	112	150	112
query41	56	55	52	52
query42	117	105	105	105
query43	495	505	488	488
query44	1294	791	795	791
query45	177	173	166	166
query46	834	1020	623	623
query47	1781	1805	1752	1752
query48	367	417	305	305
query49	774	504	440	440
query50	678	720	410	410
query51	4185	4200	4069	4069
query52	102	101	99	99
query53	213	261	184	184
query54	477	489	410	410
query55	81	81	82	81
query56	278	300	252	252
query57	1151	1149	1093	1093
query58	241	235	235	235
query59	2730	2677	2587	2587
query60	301	278	256	256
query61	137	125	137	125
query62	777	735	654	654
query63	217	177	185	177
query64	4195	1086	691	691
query65	4334	4193	4288	4193
query66	1124	406	308	308
query67	15766	15573	15558	15558
query68	5539	882	513	513
query69	470	295	263	263
query70	1197	1129	1095	1095
query71	401	284	263	263
query72	5590	4846	4620	4620
query73	627	566	337	337
query74	8888	8927	8902	8902
query75	3205	3236	2720	2720
query76	3226	1191	820	820
query77	485	365	281	281
query78	9883	10187	9322	9322
query79	1622	813	562	562
query80	677	527	437	437
query81	479	256	221	221
query82	205	123	97	97
query83	184	174	159	159
query84	244	95	80	80
query85	793	358	313	313
query86	309	312	284	284
query87	4341	4558	4314	4314
query88	2814	2180	2207	2180
query89	384	315	285	285
query90	1766	209	206	206
query91	142	140	111	111
query92	65	59	57	57
query93	1129	1043	596	596
query94	635	433	325	325
query95	361	266	273	266
query96	481	555	270	270
query97	3117	3230	3151	3151
query98	225	212	200	200
query99	1362	1393	1272	1272
Total cold run time: 268910 ms
Total hot run time: 186048 ms

@doris-robot
Copy link

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

query1	0.04	0.03	0.03
query2	0.12	0.11	0.10
query3	0.25	0.19	0.19
query4	1.59	0.19	0.19
query5	0.59	0.57	0.59
query6	1.18	0.72	0.70
query7	0.03	0.02	0.02
query8	0.04	0.03	0.04
query9	0.59	0.52	0.54
query10	0.56	0.59	0.57
query11	0.16	0.11	0.11
query12	0.14	0.12	0.12
query13	0.60	0.60	0.60
query14	2.69	2.71	2.70
query15	0.91	0.85	0.87
query16	0.38	0.38	0.38
query17	0.98	1.01	1.02
query18	0.22	0.20	0.20
query19	1.89	1.87	1.91
query20	0.01	0.01	0.01
query21	15.35	0.90	0.53
query22	0.76	1.23	0.66
query23	14.93	1.40	0.66
query24	7.43	1.18	1.06
query25	0.49	0.32	0.05
query26	0.56	0.16	0.13
query27	0.06	0.06	0.05
query28	9.24	0.86	0.42
query29	12.55	3.99	3.32
query30	0.24	0.08	0.06
query31	2.83	0.60	0.39
query32	3.23	0.54	0.47
query33	3.06	2.99	3.03
query34	15.78	5.14	4.54
query35	4.58	4.56	4.52
query36	0.67	0.49	0.48
query37	0.08	0.06	0.06
query38	0.05	0.03	0.03
query39	0.03	0.02	0.02
query40	0.17	0.14	0.12
query41	0.08	0.02	0.02
query42	0.03	0.02	0.02
query43	0.04	0.03	0.04
Total cold run time: 105.21 s
Total hot run time: 31.4 s

Copy link
Contributor

@HappenLee HappenLee left a comment

Choose a reason for hiding this comment

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

LGTM

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

github-actions bot commented Apr 1, 2025

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

@BiteTheDDDDt BiteTheDDDDt merged commit 02f1810 into apache:master Apr 3, 2025
26 of 28 checks passed
koarz pushed a commit to koarz/doris that referenced this pull request Jun 4, 2025
### What problem does this PR solve?
In the past, we did not support time cast to datetime/date. 
Here we add the support because time cast to date involves the current
date, so most of the tests are BEUT.

1. Support casting the time type to date/datetime. 
2. The time type can be implicitly converted to date/datetime.

### Release note

None

### Check List (For Author)

- Test <!-- At least one of them must be included. -->
    - [ ] Regression test
    - [x] 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 <!-- Add your reason?  -->

- Behavior changed:
    - [x] No.
    - [ ] Yes. <!-- Explain the behavior change -->

- Does this need documentation?
    - [x] No.
- [ ] Yes. <!-- Add document PR link here. eg:
apache/doris-website#1214 -->

### Check List (For Reviewer who merge this PR)

- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR
should merge into -->
zclllyybb pushed a commit to zclllyybb/doris that referenced this pull request Jul 22, 2025
In the past, we did not support time cast to datetime/date.
Here we add the support because time cast to date involves the current
date, so most of the tests are BEUT.

1. Support casting the time type to date/datetime.
2. The time type can be implicitly converted to date/datetime.

None

- Test <!-- At least one of them must be included. -->
    - [ ] Regression test
    - [x] 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 <!-- Add your reason?  -->

- Behavior changed:
    - [x] No.
    - [ ] Yes. <!-- Explain the behavior change -->

- Does this need documentation?
    - [x] No.
- [ ] Yes. <!-- Add document PR link here. eg:
apache/doris-website#1214 -->

- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR
should merge into -->
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.

6 participants