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

[Fix](Nereids) fix date and date time arithmatic #40745

Merged
merged 4 commits into from
Sep 25, 2024

Conversation

LiBinfeng-01
Copy link
Collaborator

@LiBinfeng-01 LiBinfeng-01 commented Sep 12, 2024

fix date and time arithmatic of: hours_add, minutes_add, seconds_add, to_days

@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

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

@LiBinfeng-01
Copy link
Collaborator Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	18318	4347	4275	4275
q2	2719	188	200	188
q3	10955	1478	1400	1400
q4	10272	946	1008	946
q5	8174	3219	3183	3183
q6	228	141	141	141
q7	1048	633	618	618
q8	9455	1990	2008	1990
q9	6712	6277	6236	6236
q10	7023	2507	2499	2499
q11	430	253	257	253
q12	411	231	223	223
q13	17754	3044	3052	3044
q14	285	252	259	252
q15	526	483	476	476
q16	514	427	444	427
q17	989	946	947	946
q18	7444	6821	6901	6821
q19	1396	1229	1217	1217
q20	604	342	333	333
q21	3930	3542	3534	3534
q22	1055	1007	1020	1007
Total cold run time: 110242 ms
Total hot run time: 40009 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4250	4188	4207	4188
q2	336	235	244	235
q3	2909	2882	2875	2875
q4	1957	1979	1948	1948
q5	5450	5392	5439	5392
q6	221	130	132	130
q7	2034	1682	1661	1661
q8	3251	3315	3339	3315
q9	8454	8409	8430	8409
q10	3369	3420	3429	3420
q11	562	467	473	467
q12	792	581	598	581
q13	6072	3058	3043	3043
q14	304	263	279	263
q15	535	493	495	493
q16	485	448	455	448
q17	1765	1722	1694	1694
q18	7938	7835	7509	7509
q19	1704	1699	1693	1693
q20	2056	1776	1799	1776
q21	5681	5386	5436	5386
q22	1072	1026	994	994
Total cold run time: 61197 ms
Total hot run time: 55920 ms

@doris-robot
Copy link

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

query1	910	409	375	375
query2	6486	1826	1783	1783
query3	6652	212	219	212
query4	26356	23732	23974	23732
query5	5154	541	523	523
query6	268	176	166	166
query7	4585	303	310	303
query8	270	219	234	219
query9	8471	2476	2452	2452
query10	458	306	287	287
query11	16121	15486	15467	15467
query12	156	107	101	101
query13	1679	407	390	390
query14	11529	6764	6643	6643
query15	235	168	177	168
query16	7607	482	477	477
query17	1572	582	582	582
query18	1974	296	292	292
query19	195	148	150	148
query20	121	114	116	114
query21	208	106	103	103
query22	4370	4351	4284	4284
query23	34354	33812	33522	33522
query24	9421	3157	3133	3133
query25	680	415	430	415
query26	1186	164	159	159
query27	2483	286	285	285
query28	6711	2046	2010	2010
query29	967	441	431	431
query30	302	158	163	158
query31	995	770	814	770
query32	103	60	58	58
query33	753	306	310	306
query34	912	475	480	475
query35	858	732	732	732
query36	1045	904	914	904
query37	167	87	86	86
query38	4194	3894	3936	3894
query39	1449	1456	1407	1407
query40	208	120	118	118
query41	52	53	50	50
query42	127	99	108	99
query43	485	448	466	448
query44	1250	789	755	755
query45	199	173	175	173
query46	1117	824	841	824
query47	1903	1782	1789	1782
query48	372	292	294	292
query49	1124	464	452	452
query50	918	443	453	443
query51	7088	7027	6999	6999
query52	105	92	94	92
query53	266	190	185	185
query54	831	477	489	477
query55	80	80	75	75
query56	299	277	291	277
query57	1240	1071	1066	1066
query58	245	232	257	232
query59	2716	2583	2617	2583
query60	310	284	281	281
query61	125	226	102	102
query62	922	674	685	674
query63	223	193	191	191
query64	5311	701	658	658
query65	3305	3174	3176	3174
query66	1436	345	349	345
query67	16087	15990	15508	15508
query68	3175	888	862	862
query69	447	332	338	332
query70	1151	1122	1162	1122
query71	357	355	348	348
query72	5901	3355	3464	3355
query73	596	593	585	585
query74	9235	9297	8979	8979
query75	3165	3039	3082	3039
query76	1932	885	885	885
query77	439	413	418	413
query78	9360	9277	9431	9277
query79	933	909	893	893
query80	869	871	849	849
query81	444	261	270	261
query82	271	271	271	271
query83	193	198	197	197
query84	233	108	107	107
query85	645	434	395	395
query86	328	320	325	320
query87	4362	4428	4441	4428
query88	4175	4083	4123	4083
query89	381	372	373	372
query90	1299	325	324	324
query91	133	128	127	127
query92	79	80	80	80
query93	1087	1140	1079	1079
query94	621	378	402	378
query95	487	432	439	432
query96	487	476	477	476
query97	3144	3099	3119	3099
query98	230	237	232	232
query99	1555	1347	1332	1332
Total cold run time: 278015 ms
Total hot run time: 194853 ms

@doris-robot
Copy link

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

query1	0.04	0.05	0.04
query2	0.07	0.04	0.04
query3	0.22	0.05	0.05
query4	1.68	0.07	0.07
query5	0.50	0.50	0.50
query6	1.13	0.74	0.73
query7	0.01	0.01	0.01
query8	0.06	0.05	0.04
query9	0.56	0.51	0.50
query10	0.56	0.57	0.56
query11	0.18	0.12	0.12
query12	0.16	0.13	0.13
query13	0.62	0.62	0.61
query14	1.48	1.50	1.46
query15	0.91	0.87	0.87
query16	0.36	0.37	0.36
query17	1.06	1.04	1.02
query18	0.22	0.21	0.20
query19	1.99	1.80	1.87
query20	0.01	0.01	0.02
query21	15.42	0.66	0.66
query22	4.15	8.81	1.09
query23	17.77	1.27	1.32
query24	2.25	0.23	0.23
query25	0.18	0.08	0.08
query26	0.29	0.18	0.19
query27	0.08	0.08	0.07
query28	13.18	1.01	0.98
query29	12.54	3.36	3.29
query30	0.24	0.06	0.05
query31	2.90	0.42	0.42
query32	3.22	0.49	0.51
query33	3.02	3.02	3.05
query34	15.44	4.30	4.31
query35	4.34	4.37	4.34
query36	0.69	0.49	0.49
query37	0.19	0.17	0.16
query38	0.15	0.15	0.14
query39	0.05	0.04	0.04
query40	0.16	0.13	0.14
query41	0.10	0.05	0.05
query42	0.05	0.05	0.06
query43	0.05	0.04	0.04
Total cold run time: 108.28 s
Total hot run time: 30.69 s

@LiBinfeng-01
Copy link
Collaborator Author

run buildall

@LiBinfeng-01
Copy link
Collaborator Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17628	7355	7296	7296
q2	2053	160	155	155
q3	10576	1162	1198	1162
q4	10223	672	760	672
q5	7728	3139	3057	3057
q6	233	154	154	154
q7	1003	616	616	616
q8	9427	2062	2070	2062
q9	6795	6421	6401	6401
q10	7018	2281	2291	2281
q11	434	254	258	254
q12	407	220	218	218
q13	17773	2975	3017	2975
q14	248	213	226	213
q15	586	530	510	510
q16	669	618	597	597
q17	983	815	781	781
q18	7357	6729	6653	6653
q19	1390	1046	1043	1043
q20	582	309	277	277
q21	3962	3187	3189	3187
q22	1105	1005	1018	1005
Total cold run time: 108180 ms
Total hot run time: 41569 ms

----- Round 2, with runtime_filter_mode=off -----
q1	7223	7204	7203	7203
q2	329	234	227	227
q3	2930	2815	2814	2814
q4	1920	1723	1725	1723
q5	5452	5427	5416	5416
q6	223	143	144	143
q7	2105	1717	1724	1717
q8	3174	3310	3319	3310
q9	8440	8411	8398	8398
q10	3395	3340	3344	3340
q11	576	469	476	469
q12	768	578	592	578
q13	8269	3029	3045	3029
q14	293	258	254	254
q15	563	512	508	508
q16	713	675	656	656
q17	1760	1548	1550	1548
q18	7652	7294	7318	7294
q19	1686	1557	1604	1557
q20	2022	1823	1812	1812
q21	5431	5122	5038	5038
q22	1109	1028	1009	1009
Total cold run time: 66033 ms
Total hot run time: 58043 ms

@doris-robot
Copy link

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

query1	945	387	388	387
query2	6532	2061	2006	2006
query3	6701	217	219	217
query4	34369	23486	23469	23469
query5	4361	499	474	474
query6	275	176	176	176
query7	4637	298	298	298
query8	295	230	248	230
query9	9902	2658	2657	2657
query10	482	308	293	293
query11	18302	15247	15213	15213
query12	155	97	98	97
query13	1632	406	394	394
query14	10885	7497	7611	7497
query15	271	176	182	176
query16	7433	452	454	452
query17	1779	579	572	572
query18	2019	306	308	306
query19	364	150	154	150
query20	118	107	108	107
query21	214	103	103	103
query22	4596	4246	4263	4246
query23	34609	33775	33979	33775
query24	11218	2887	2824	2824
query25	633	426	410	410
query26	1175	160	163	160
query27	2384	290	290	290
query28	7779	2480	2454	2454
query29	813	425	424	424
query30	328	162	158	158
query31	987	793	805	793
query32	104	59	58	58
query33	766	290	300	290
query34	967	495	502	495
query35	878	720	734	720
query36	1081	949	928	928
query37	151	92	92	92
query38	3986	3926	3932	3926
query39	1470	1410	1384	1384
query40	208	97	97	97
query41	52	48	50	48
query42	116	98	97	97
query43	529	495	497	495
query44	1249	826	809	809
query45	197	164	169	164
query46	1144	751	783	751
query47	1889	1769	1804	1769
query48	474	359	378	359
query49	1151	431	412	412
query50	808	414	419	414
query51	7114	6847	6901	6847
query52	101	92	87	87
query53	254	195	184	184
query54	1359	468	478	468
query55	82	79	79	79
query56	293	370	266	266
query57	1169	1070	1045	1045
query58	244	239	246	239
query59	3179	2863	2847	2847
query60	292	264	293	264
query61	107	105	98	98
query62	834	665	667	665
query63	222	187	189	187
query64	5277	646	637	637
query65	3332	3243	3179	3179
query66	1445	308	302	302
query67	16048	15667	15655	15655
query68	3486	874	862	862
query69	449	344	353	344
query70	1209	1176	1198	1176
query71	342	341	333	333
query72	6117	3391	3395	3391
query73	598	588	580	580
query74	9696	9004	8924	8924
query75	3122	2892	2902	2892
query76	1945	876	874	874
query77	419	365	370	365
query78	9455	9314	9228	9228
query79	930	878	878	878
query80	603	612	606	606
query81	451	257	253	253
query82	239	231	233	231
query83	168	156	162	156
query84	236	106	111	106
query85	680	379	374	374
query86	305	313	333	313
query87	4483	4401	4393	4393
query88	4763	4078	4054	4054
query89	373	358	360	358
query90	1478	313	309	309
query91	166	166	185	166
query92	76	74	72	72
query93	904	912	904	904
query94	557	385	384	384
query95	427	414	413	413
query96	492	490	487	487
query97	3132	3086	3123	3086
query98	236	225	234	225
query99	1437	1300	1273	1273
Total cold run time: 293739 ms
Total hot run time: 195175 ms

@doris-robot
Copy link

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

query1	0.04	0.04	0.04
query2	0.07	0.03	0.02
query3	0.24	0.06	0.06
query4	1.65	0.10	0.10
query5	0.50	0.48	0.51
query6	1.12	0.72	0.74
query7	0.02	0.01	0.02
query8	0.04	0.03	0.02
query9	0.55	0.49	0.51
query10	0.55	0.56	0.54
query11	0.15	0.11	0.11
query12	0.15	0.11	0.11
query13	0.60	0.59	0.58
query14	2.98	3.04	2.98
query15	0.89	0.82	0.81
query16	0.38	0.38	0.39
query17	1.03	1.06	1.05
query18	0.20	0.20	0.20
query19	1.98	1.94	1.93
query20	0.01	0.01	0.01
query21	15.38	0.58	0.55
query22	2.71	3.37	1.39
query23	17.24	0.85	0.93
query24	2.81	1.24	0.46
query25	0.16	0.22	0.09
query26	0.39	0.14	0.14
query27	0.05	0.05	0.04
query28	11.28	1.08	1.06
query29	12.55	3.27	3.23
query30	0.24	0.06	0.06
query31	2.88	0.39	0.38
query32	3.26	0.45	0.45
query33	2.99	3.00	3.04
query34	17.00	4.39	4.33
query35	4.42	4.41	4.41
query36	0.68	0.49	0.47
query37	0.08	0.06	0.06
query38	0.04	0.04	0.03
query39	0.03	0.03	0.02
query40	0.16	0.13	0.12
query41	0.07	0.03	0.01
query42	0.03	0.02	0.02
query43	0.03	0.03	0.03
Total cold run time: 107.63 s
Total hot run time: 31.84 s

@LiBinfeng-01
Copy link
Collaborator Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17589	7341	7278	7278
q2	2045	161	172	161
q3	11201	1184	1157	1157
q4	10811	862	804	804
q5	8115	3156	3121	3121
q6	248	155	160	155
q7	1039	627	620	620
q8	9498	2059	2091	2059
q9	6946	6549	6527	6527
q10	7566	2302	2330	2302
q11	441	251	244	244
q12	414	222	215	215
q13	17784	2974	3042	2974
q14	245	235	220	220
q15	582	522	503	503
q16	667	619	616	616
q17	971	782	787	782
q18	7266	6673	6835	6673
q19	1405	1074	958	958
q20	583	292	284	284
q21	3952	3694	3198	3198
q22	1125	1020	1009	1009
Total cold run time: 110493 ms
Total hot run time: 41860 ms

----- Round 2, with runtime_filter_mode=off -----
q1	7223	7226	7227	7226
q2	314	229	225	225
q3	2932	2810	2826	2810
q4	1953	1796	1756	1756
q5	5386	5378	5446	5378
q6	235	146	141	141
q7	2103	1697	1723	1697
q8	3148	3324	3300	3300
q9	8430	8427	8379	8379
q10	3386	3362	3341	3341
q11	565	475	498	475
q12	773	568	590	568
q13	6554	3039	2988	2988
q14	280	269	261	261
q15	556	506	501	501
q16	718	668	667	667
q17	1757	1548	1548	1548
q18	7732	7398	7440	7398
q19	1659	1501	1504	1501
q20	2052	1786	1797	1786
q21	5339	5198	5118	5118
q22	1107	1022	1013	1013
Total cold run time: 64202 ms
Total hot run time: 58077 ms

@doris-robot
Copy link

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

query1	954	365	367	365
query2	6537	2092	2025	2025
query3	6702	214	224	214
query4	34400	23463	23434	23434
query5	4328	485	475	475
query6	272	177	177	177
query7	4628	298	293	293
query8	303	228	223	223
query9	9957	2620	2633	2620
query10	468	270	260	260
query11	18306	15139	15340	15139
query12	152	94	97	94
query13	1609	393	396	393
query14	10406	6927	6842	6842
query15	288	180	174	174
query16	7996	449	487	449
query17	1622	572	556	556
query18	2090	306	299	299
query19	224	146	150	146
query20	118	109	114	109
query21	219	110	105	105
query22	4476	4322	4388	4322
query23	34854	34070	33914	33914
query24	11213	2846	2883	2846
query25	646	402	411	402
query26	1160	158	162	158
query27	2737	281	286	281
query28	8187	2451	2427	2427
query29	837	429	422	422
query30	315	153	163	153
query31	1030	781	803	781
query32	99	56	58	56
query33	777	294	293	293
query34	984	495	505	495
query35	877	749	718	718
query36	1102	939	925	925
query37	155	96	89	89
query38	3949	3977	3976	3976
query39	1519	1407	1411	1407
query40	216	100	102	100
query41	52	50	49	49
query42	123	99	98	98
query43	534	493	485	485
query44	1264	817	796	796
query45	195	169	166	166
query46	1137	749	746	746
query47	1918	1810	1830	1810
query48	494	370	363	363
query49	1185	425	390	390
query50	823	405	413	405
query51	7020	6877	6886	6877
query52	96	84	84	84
query53	254	181	178	178
query54	1239	461	442	442
query55	79	78	77	77
query56	283	242	245	242
query57	1221	1092	1109	1092
query58	245	222	261	222
query59	3197	3101	2940	2940
query60	284	266	268	266
query61	102	99	103	99
query62	850	662	646	646
query63	221	184	181	181
query64	5335	694	634	634
query65	3248	3231	3175	3175
query66	1414	289	304	289
query67	16020	15548	15331	15331
query68	3121	570	572	570
query69	438	279	289	279
query70	1147	1111	1139	1111
query71	321	264	261	261
query72	5898	4001	4087	4001
query73	762	333	332	332
query74	9576	9031	8903	8903
query75	3368	2660	2674	2660
query76	2229	989	949	949
query77	421	292	292	292
query78	9962	9425	9382	9382
query79	951	898	889	889
query80	631	594	595	594
query81	515	253	254	253
query82	254	228	233	228
query83	158	153	159	153
query84	246	114	108	108
query85	744	375	359	359
query86	324	333	288	288
query87	4399	4398	4348	4348
query88	4834	4096	4076	4076
query89	362	360	360	360
query90	1894	316	313	313
query91	158	167	164	164
query92	75	73	73	73
query93	916	918	906	906
query94	765	346	364	346
query95	466	411	410	410
query96	492	489	487	487
query97	3193	3105	3107	3105
query98	226	229	222	222
query99	1425	1316	1271	1271
Total cold run time: 295816 ms
Total hot run time: 193933 ms

@doris-robot
Copy link

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

query1	0.04	0.04	0.04
query2	0.06	0.03	0.02
query3	0.23	0.06	0.06
query4	1.65	0.10	0.10
query5	0.52	0.50	0.50
query6	1.12	0.72	0.71
query7	0.02	0.02	0.02
query8	0.04	0.03	0.03
query9	0.57	0.51	0.51
query10	0.55	0.53	0.55
query11	0.14	0.11	0.11
query12	0.14	0.10	0.10
query13	0.60	0.60	0.58
query14	3.02	2.99	3.03
query15	0.90	0.81	0.82
query16	0.38	0.37	0.40
query17	0.99	1.07	1.06
query18	0.22	0.22	0.19
query19	1.95	1.76	1.94
query20	0.01	0.01	0.01
query21	15.36	0.59	0.58
query22	2.81	2.14	1.95
query23	17.22	0.93	0.84
query24	2.32	1.55	0.96
query25	0.23	0.07	0.19
query26	0.41	0.13	0.14
query27	0.04	0.04	0.04
query28	10.69	1.09	1.06
query29	12.55	3.30	3.29
query30	0.26	0.06	0.05
query31	2.89	0.39	0.37
query32	3.27	0.46	0.46
query33	2.99	3.02	3.06
query34	16.99	4.37	4.33
query35	4.46	4.44	4.39
query36	0.69	0.50	0.48
query37	0.08	0.06	0.06
query38	0.05	0.03	0.04
query39	0.03	0.02	0.02
query40	0.16	0.12	0.13
query41	0.08	0.02	0.03
query42	0.03	0.02	0.02
query43	0.03	0.03	0.03
Total cold run time: 106.79 s
Total hot run time: 32.82 s

@LiBinfeng-01
Copy link
Collaborator Author

run buildall

@LiBinfeng-01
Copy link
Collaborator Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17629	7330	7311	7311
q2	2036	177	163	163
q3	10946	1099	1236	1099
q4	10566	688	778	688
q5	7742	3060	3073	3060
q6	236	146	149	146
q7	998	622	609	609
q8	9623	2064	2055	2055
q9	6776	6443	6425	6425
q10	7068	2264	2317	2264
q11	451	251	252	251
q12	409	214	224	214
q13	17777	2955	2979	2955
q14	239	213	223	213
q15	563	522	521	521
q16	708	618	619	618
q17	990	850	823	823
q18	7176	6619	6675	6619
q19	1401	1032	980	980
q20	576	287	288	287
q21	4203	3324	3156	3156
q22	1115	1014	1024	1014
Total cold run time: 109228 ms
Total hot run time: 41471 ms

----- Round 2, with runtime_filter_mode=off -----
q1	7239	7251	7268	7251
q2	326	228	225	225
q3	3042	3000	2945	2945
q4	2075	1864	1803	1803
q5	5566	5580	5643	5580
q6	233	144	145	144
q7	2228	1777	1793	1777
q8	3350	3455	3415	3415
q9	8770	8875	8819	8819
q10	3451	3493	3493	3493
q11	565	491	485	485
q12	805	580	617	580
q13	9929	3210	3202	3202
q14	304	296	281	281
q15	594	535	536	535
q16	708	687	688	687
q17	1794	1597	1624	1597
q18	8117	7697	7886	7697
q19	1702	1521	1664	1521
q20	2141	1876	1865	1865
q21	5592	5388	5400	5388
q22	1187	1096	1035	1035
Total cold run time: 69718 ms
Total hot run time: 60325 ms

@doris-robot
Copy link

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

query1	1297	880	912	880
query2	6369	2026	2003	2003
query3	10815	3716	3931	3716
query4	63992	28676	23612	23612
query5	5019	496	472	472
query6	401	165	161	161
query7	5443	300	293	293
query8	309	237	228	228
query9	8252	2692	2669	2669
query10	456	289	304	289
query11	17141	15246	15761	15246
query12	158	105	105	105
query13	1510	405	425	405
query14	10689	7516	7547	7516
query15	203	189	177	177
query16	6782	514	472	472
query17	1173	625	620	620
query18	1510	302	311	302
query19	218	158	163	158
query20	132	113	120	113
query21	212	109	104	104
query22	4829	4449	4853	4449
query23	34408	33992	34058	33992
query24	6019	2919	2967	2919
query25	510	394	416	394
query26	624	162	161	161
query27	1606	281	284	281
query28	4270	2463	2425	2425
query29	667	432	439	432
query30	240	158	160	158
query31	927	768	796	768
query32	73	52	56	52
query33	385	300	299	299
query34	882	509	492	492
query35	846	774	732	732
query36	1090	960	944	944
query37	151	84	87	84
query38	4026	3917	3889	3889
query39	1448	1452	1516	1452
query40	203	96	96	96
query41	50	48	45	45
query42	112	99	105	99
query43	522	485	480	480
query44	1148	821	805	805
query45	198	162	170	162
query46	1130	744	800	744
query47	1932	1813	1800	1800
query48	456	363	367	363
query49	695	416	412	412
query50	839	423	431	423
query51	7024	6831	6897	6831
query52	98	89	84	84
query53	251	176	178	176
query54	581	469	463	463
query55	77	74	80	74
query56	274	247	260	247
query57	1186	1086	1091	1086
query58	214	236	271	236
query59	3230	3011	2973	2973
query60	292	272	268	268
query61	106	106	109	106
query62	751	644	672	644
query63	219	191	183	183
query64	1291	668	633	633
query65	3235	3173	3181	3173
query66	683	295	296	295
query67	16085	15654	15438	15438
query68	1262	851	538	538
query69	455	302	302	302
query70	1231	1135	1086	1086
query71	319	271	280	271
query72	6229	3975	3973	3973
query73	760	325	329	325
query74	9260	9052	9125	9052
query75	3287	2701	2650	2650
query76	1417	915	861	861
query77	494	291	292	291
query78	10107	9617	9456	9456
query79	1021	904	860	860
query80	827	581	566	566
query81	508	259	249	249
query82	693	231	232	231
query83	156	171	166	166
query84	290	109	104	104
query85	748	368	354	354
query86	333	315	318	315
query87	4353	4470	4381	4381
query88	4380	4080	4072	4072
query89	380	362	355	355
query90	1733	312	308	308
query91	160	165	165	165
query92	78	73	74	73
query93	948	903	905	903
query94	706	357	379	357
query95	448	416	410	410
query96	492	483	492	483
query97	3158	3113	3114	3113
query98	227	228	235	228
query99	1448	1278	1269	1269
Total cold run time: 305872 ms
Total hot run time: 199570 ms

@doris-robot
Copy link

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

query1	0.05	0.04	0.04
query2	0.06	0.02	0.03
query3	0.23	0.06	0.06
query4	1.65	0.10	0.10
query5	0.50	0.51	0.51
query6	1.14	0.74	0.74
query7	0.02	0.02	0.02
query8	0.04	0.03	0.03
query9	0.56	0.50	0.52
query10	0.54	0.54	0.54
query11	0.14	0.11	0.11
query12	0.14	0.11	0.11
query13	0.62	0.60	0.59
query14	3.04	2.95	2.93
query15	0.89	0.82	0.82
query16	0.40	0.38	0.37
query17	1.08	1.09	1.02
query18	0.20	0.20	0.20
query19	1.88	1.82	2.05
query20	0.01	0.01	0.01
query21	15.36	0.58	0.61
query22	2.79	3.09	1.36
query23	17.31	0.85	0.71
query24	3.18	0.80	1.00
query25	0.22	0.08	0.14
query26	0.57	0.13	0.13
query27	0.04	0.04	0.05
query28	10.90	1.10	1.07
query29	12.57	3.27	3.21
query30	0.25	0.06	0.06
query31	2.88	0.40	0.38
query32	3.25	0.46	0.47
query33	2.94	3.01	3.04
query34	16.64	4.38	4.34
query35	4.43	4.48	4.43
query36	0.66	0.48	0.49
query37	0.08	0.05	0.06
query38	0.05	0.03	0.03
query39	0.03	0.02	0.03
query40	0.17	0.13	0.13
query41	0.08	0.02	0.02
query42	0.03	0.02	0.02
query43	0.03	0.02	0.02
Total cold run time: 107.65 s
Total hot run time: 31.97 s

starocean999
starocean999 previously approved these changes Sep 19, 2024
@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Sep 19, 2024
Copy link
Contributor

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

Copy link
Contributor

PR approved by anyone and no changes requested.

Copy link
Contributor

@morrySnow morrySnow left a comment

Choose a reason for hiding this comment

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

add ut and regression test case please

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17596	7329	7234	7234
q2	2014	297	279	279
q3	12405	1060	1141	1060
q4	10563	697	745	697
q5	7771	2794	2796	2794
q6	246	154	151	151
q7	970	616	611	611
q8	9400	1963	1942	1942
q9	6548	6348	6404	6348
q10	6993	2303	2333	2303
q11	443	247	246	246
q12	407	222	224	222
q13	17793	2967	3011	2967
q14	254	212	224	212
q15	598	534	531	531
q16	681	638	641	638
q17	974	631	627	627
q18	7115	6610	6588	6588
q19	1407	1000	1135	1000
q20	564	289	275	275
q21	4026	3097	3160	3097
q22	1117	1001	965	965
Total cold run time: 109885 ms
Total hot run time: 40787 ms

----- Round 2, with runtime_filter_mode=off -----
q1	7239	7226	7199	7199
q2	326	231	235	231
q3	3009	2923	2978	2923
q4	2023	1851	1781	1781
q5	5639	5666	5567	5567
q6	226	141	150	141
q7	2211	1804	1823	1804
q8	3330	3574	3520	3520
q9	8838	8990	8868	8868
q10	3618	3537	3546	3537
q11	611	505	488	488
q12	829	594	646	594
q13	10703	3115	3153	3115
q14	311	273	272	272
q15	585	532	535	532
q16	715	689	699	689
q17	1798	1614	1600	1600
q18	8183	7771	7820	7771
q19	1697	1462	1589	1462
q20	2140	1910	1870	1870
q21	5633	5190	5477	5190
q22	1137	1072	1020	1020
Total cold run time: 70801 ms
Total hot run time: 60174 ms

@doris-robot
Copy link

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

query1	938	377	388	377
query2	6408	2054	1955	1955
query3	8683	195	201	195
query4	33809	23630	23557	23557
query5	3520	475	460	460
query6	276	175	167	167
query7	4184	311	320	311
query8	305	226	224	224
query9	9422	2671	2660	2660
query10	479	283	281	281
query11	18048	15392	15321	15321
query12	151	100	100	100
query13	1546	450	417	417
query14	9997	7098	7428	7098
query15	245	169	181	169
query16	8066	485	504	485
query17	1657	622	577	577
query18	2118	323	314	314
query19	368	153	151	151
query20	124	117	121	117
query21	220	105	103	103
query22	4655	4685	4486	4486
query23	36189	34884	34469	34469
query24	10922	2869	2836	2836
query25	542	406	441	406
query26	733	160	166	160
query27	2177	303	318	303
query28	7243	2444	2460	2444
query29	676	438	439	438
query30	262	154	159	154
query31	1006	801	768	768
query32	94	54	59	54
query33	752	305	305	305
query34	902	521	497	497
query35	895	736	738	736
query36	1098	937	950	937
query37	148	87	93	87
query38	4011	3964	4032	3964
query39	1488	1422	1482	1422
query40	209	99	101	99
query41	50	46	49	46
query42	124	95	94	94
query43	546	491	491	491
query44	1231	825	794	794
query45	198	167	170	167
query46	1145	713	723	713
query47	1922	1792	1836	1792
query48	478	406	378	378
query49	883	396	395	395
query50	821	421	405	405
query51	7023	6961	6962	6961
query52	99	86	87	86
query53	264	185	178	178
query54	1162	468	485	468
query55	80	76	78	76
query56	297	261	253	253
query57	1213	1104	1076	1076
query58	223	261	259	259
query59	3138	2918	2857	2857
query60	285	269	272	269
query61	107	101	102	101
query62	831	664	679	664
query63	226	197	183	183
query64	3949	648	620	620
query65	3269	3240	3217	3217
query66	757	307	314	307
query67	15889	15673	15386	15386
query68	4575	571	569	569
query69	612	303	309	303
query70	1165	1137	1138	1137
query71	429	285	285	285
query72	7269	3970	4080	3970
query73	765	351	347	347
query74	10393	9001	9029	9001
query75	3588	2661	2704	2661
query76	3484	931	986	931
query77	588	302	300	300
query78	10110	9404	9619	9404
query79	1788	601	625	601
query80	1458	450	470	450
query81	584	243	241	241
query82	601	144	139	139
query83	290	138	136	136
query84	273	81	83	81
query85	1574	292	291	291
query86	458	312	293	293
query87	4478	4356	4333	4333
query88	3277	2473	2416	2416
query89	403	288	294	288
query90	2096	191	193	191
query91	179	140	143	140
query92	70	48	48	48
query93	1866	548	552	548
query94	1147	297	301	297
query95	360	262	253	253
query96	609	288	283	283
query97	3218	3164	3111	3111
query98	232	201	199	199
query99	1658	1323	1288	1288
Total cold run time: 300373 ms
Total hot run time: 192375 ms

@doris-robot
Copy link

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

query1	0.05	0.05	0.04
query2	0.07	0.03	0.03
query3	0.23	0.06	0.06
query4	1.64	0.10	0.10
query5	0.51	0.51	0.50
query6	1.14	0.72	0.72
query7	0.02	0.01	0.01
query8	0.04	0.04	0.03
query9	0.57	0.49	0.49
query10	0.54	0.58	0.54
query11	0.13	0.10	0.11
query12	0.14	0.11	0.11
query13	0.61	0.59	0.60
query14	2.95	2.90	3.02
query15	0.91	0.83	0.83
query16	0.38	0.36	0.38
query17	0.99	1.00	0.99
query18	0.20	0.19	0.20
query19	1.91	1.79	2.03
query20	0.01	0.01	0.01
query21	15.35	0.60	0.59
query22	3.02	1.83	1.93
query23	17.36	0.91	0.85
query24	2.82	0.74	1.48
query25	0.10	0.16	0.28
query26	0.45	0.14	0.15
query27	0.03	0.04	0.04
query28	10.63	1.07	1.06
query29	12.58	3.21	3.22
query30	0.26	0.06	0.06
query31	2.88	0.38	0.39
query32	3.26	0.47	0.46
query33	3.00	3.02	2.98
query34	16.98	4.44	4.45
query35	4.56	4.49	4.51
query36	0.67	0.48	0.50
query37	0.09	0.06	0.05
query38	0.04	0.03	0.03
query39	0.03	0.02	0.02
query40	0.15	0.13	0.13
query41	0.07	0.02	0.02
query42	0.03	0.02	0.02
query43	0.04	0.02	0.03
Total cold run time: 107.44 s
Total hot run time: 32.59 s

@LiBinfeng-01
Copy link
Collaborator Author

run external

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

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

@starocean999 starocean999 merged commit f8a40ad into apache:master Sep 25, 2024
25 of 28 checks passed
LiBinfeng-01 added a commit to LiBinfeng-01/doris that referenced this pull request Sep 25, 2024
fix date and time arithmatic of: hours_add, minutes_add, seconds_add,
to_days
LiBinfeng-01 added a commit to LiBinfeng-01/doris that referenced this pull request Oct 8, 2024
fix date and time arithmatic of: hours_add, minutes_add, seconds_add,
to_days
LiBinfeng-01 added a commit to LiBinfeng-01/doris that referenced this pull request Oct 8, 2024
fix date and time arithmatic of: hours_add, minutes_add, seconds_add,
to_days
LiBinfeng-01 added a commit to LiBinfeng-01/doris that referenced this pull request Oct 8, 2024
fix date and time arithmatic of: hours_add, minutes_add, seconds_add,
to_days
LiBinfeng-01 added a commit to LiBinfeng-01/doris that referenced this pull request Oct 11, 2024
fix date and time arithmatic of: hours_add, minutes_add, seconds_add,
to_days
LiBinfeng-01 added a commit to LiBinfeng-01/doris that referenced this pull request Oct 16, 2024
fix date and time arithmatic of: hours_add, minutes_add, seconds_add,
to_days
morrySnow pushed a commit that referenced this pull request Oct 21, 2024
cherry-pick from master #40745
fix date and time arithmatic of: hours_add, minutes_add, seconds_add,
to_days
morrySnow pushed a commit that referenced this pull request Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants