Skip to content

Conversation

@zclllyybb
Copy link
Contributor

@zclllyybb zclllyybb commented Jan 14, 2026

What problem does this PR solve?

Issue Number: close #xxx

Related PR: #xxx

Problem Summary:

join may generate null rows with unspecified nested value. may make some functions with use_default_implementation_of_null = true raise false positive alarm like errCode = 2, detailMessage = (172.20.56.1)[E-218]Operation date_trunc of out of range.

this fix relates to some functions:

date_trunc
last_day
to_monday
unix_timestamp
from_seconds
from_milliseconds
from_microseconds

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

@zclllyybb
Copy link
Contributor Author

run buildall

@Thearas
Copy link
Contributor

Thearas commented Jan 14, 2026

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?

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	18391	4127	4077	4077
q2	2199	348	239	239
q3	10278	1271	710	710
q4	10394	788	301	301
q5	7551	2040	1834	1834
q6	187	177	141	141
q7	913	770	655	655
q8	9609	1311	1113	1113
q9	5020	4626	4534	4534
q10	7014	1794	1378	1378
q11	671	296	279	279
q12	909	729	598	598
q13	18116	3804	3025	3025
q14	291	292	282	282
q15	585	510	494	494
q16	681	665	632	632
q17	646	785	519	519
q18	6571	6378	6287	6287
q19	1104	999	596	596
q20	387	366	256	256
q21	2941	2485	2223	2223
q22	1051	1025	949	949
Total cold run time: 105509 ms
Total hot run time: 31122 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4109	4032	4037	4032
q2	319	407	321	321
q3	2053	2567	2181	2181
q4	1331	1732	1298	1298
q5	4043	3954	3987	3954
q6	217	171	129	129
q7	1853	2221	1883	1883
q8	2549	2503	2415	2415
q9	7165	7113	7151	7113
q10	2516	2737	2423	2423
q11	587	508	460	460
q12	764	786	611	611
q13	3763	4140	3555	3555
q14	287	309	279	279
q15	546	503	498	498
q16	633	641	632	632
q17	1135	1181	1257	1181
q18	7875	7777	7698	7698
q19	875	795	840	795
q20	2005	2063	1879	1879
q21	4725	4531	4227	4227
q22	1066	1042	990	990
Total cold run time: 50416 ms
Total hot run time: 48554 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 173020 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 767f990e2b3cb2022e1521b12544486264ba2ba8, data reload: false

query5	4495	615	483	483
query6	331	221	209	209
query7	4220	451	268	268
query8	382	250	235	235
query9	8689	2830	2805	2805
query10	474	406	345	345
query11	15109	15118	14872	14872
query12	172	112	107	107
query13	1235	472	391	391
query14	6217	2949	2703	2703
query14_1	2657	2625	2637	2625
query15	200	196	173	173
query16	3378	503	464	464
query17	1117	675	571	571
query18	2295	438	345	345
query19	222	225	204	204
query20	119	115	115	115
query21	581	155	118	118
query22	4180	4154	3863	3863
query23	16026	15642	15332	15332
query23_1	15500	15569	15506	15506
query24	7157	1528	1163	1163
query24_1	1169	1153	1148	1148
query25	560	486	429	429
query26	1233	267	158	158
query27	2740	437	279	279
query28	4546	2128	2123	2123
query29	786	558	451	451
query30	404	241	214	214
query31	812	638	565	565
query32	82	77	76	76
query33	556	367	307	307
query34	878	867	525	525
query35	719	807	682	682
query36	881	899	822	822
query37	183	99	91	91
query38	2770	2706	2653	2653
query39	810	744	759	744
query39_1	721	740	713	713
query40	361	135	121	121
query41	70	73	68	68
query42	110	108	105	105
query43	409	448	416	416
query44	1289	735	742	735
query45	191	185	194	185
query46	839	952	575	575
query47	1364	1480	1420	1420
query48	319	345	241	241
query49	865	439	352	352
query50	606	275	207	207
query51	3782	3787	3776	3776
query52	111	111	101	101
query53	300	325	273	273
query54	315	294	275	275
query55	84	82	75	75
query56	325	321	323	321
query57	1006	1031	942	942
query58	287	301	251	251
query59	2066	2073	1969	1969
query60	383	317	316	316
query61	169	154	151	151
query62	419	359	314	314
query63	295	267	268	267
query64	4614	1254	956	956
query65	3835	3768	3763	3763
query66	1341	425	302	302
query67	14804	14694	15304	14694
query68	7375	961	695	695
query69	631	344	317	317
query70	959	958	957	957
query71	353	307	284	284
query72	5672	3258	3365	3258
query73	777	705	312	312
query74	8799	8730	8625	8625
query75	2801	2863	2458	2458
query76	2858	1050	639	639
query77	555	365	302	302
query78	9611	9811	9169	9169
query79	1405	887	575	575
query80	611	575	478	478
query81	537	261	229	229
query82	214	146	107	107
query83	276	259	241	241
query84	444	118	95	95
query85	949	504	457	457
query86	340	296	272	272
query87	2867	2827	2724	2724
query88	3619	2570	2558	2558
query89	367	337	339	337
query90	2201	173	172	172
query91	171	154	139	139
query92	89	76	70	70
query93	1220	869	522	522
query94	592	339	307	307
query95	590	393	310	310
query96	640	492	230	230
query97	2335	2386	2310	2310
query98	219	202	193	193
query99	663	576	520	520
Total cold run time: 256365 ms
Total hot run time: 173020 ms

@zclllyybb zclllyybb changed the title [Fix](function) avoid false alarm of date_trunc [Fix](function) avoid false alarm of some datelike functions Jan 15, 2026
@zclllyybb zclllyybb added the p0_b label Jan 15, 2026
@zclllyybb
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17608	4293	4058	4058
q2	2021	357	240	240
q3	10169	1354	709	709
q4	10204	851	306	306
q5	7566	2070	1829	1829
q6	189	173	136	136
q7	961	786	651	651
q8	9264	1361	1087	1087
q9	5147	4599	4553	4553
q10	6802	1821	1404	1404
q11	548	295	275	275
q12	724	737	559	559
q13	17820	3890	3081	3081
q14	305	297	278	278
q15	597	516	505	505
q16	689	681	632	632
q17	657	795	494	494
q18	6656	6688	6502	6502
q19	1289	987	639	639
q20	397	365	252	252
q21	2969	2470	2283	2283
q22	1050	1013	999	999
Total cold run time: 103632 ms
Total hot run time: 31472 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4173	4055	4055	4055
q2	320	404	317	317
q3	2090	2617	2262	2262
q4	1331	1761	1328	1328
q5	4142	3977	4111	3977
q6	215	163	128	128
q7	1846	1810	1673	1673
q8	2495	2345	2352	2345
q9	6648	6689	6730	6689
q10	2292	2513	2104	2104
q11	565	471	445	445
q12	671	697	583	583
q13	3339	3818	3115	3115
q14	281	295	276	276
q15	532	489	503	489
q16	644	664	618	618
q17	1099	1281	1310	1281
q18	7298	7359	7333	7333
q19	832	815	815	815
q20	1891	1978	1820	1820
q21	4585	4242	4094	4094
q22	1064	1080	966	966
Total cold run time: 48353 ms
Total hot run time: 46713 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 174077 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 2c5c451e9ceed2dddef2fbcb7f00333343c935db, data reload: false

query5	5530	617	474	474
query6	332	233	212	212
query7	4238	446	255	255
query8	333	253	250	250
query9	8720	2857	2859	2857
query10	554	404	322	322
query11	15274	15219	14844	14844
query12	184	115	122	115
query13	1284	465	368	368
query14	6970	3034	2768	2768
query14_1	2650	2653	2661	2653
query15	204	195	182	182
query16	993	540	451	451
query17	1074	654	556	556
query18	2694	418	324	324
query19	218	211	185	185
query20	120	112	111	111
query21	210	145	122	122
query22	3939	4031	3895	3895
query23	15944	15815	15391	15391
query23_1	15626	15473	15493	15473
query24	6964	1530	1179	1179
query24_1	1168	1142	1172	1142
query25	531	445	386	386
query26	1233	267	148	148
query27	2743	459	267	267
query28	4610	2114	2145	2114
query29	754	515	415	415
query30	312	228	211	211
query31	816	626	541	541
query32	83	75	71	71
query33	522	357	303	303
query34	898	874	532	532
query35	742	773	671	671
query36	865	897	869	869
query37	175	97	87	87
query38	2696	2755	2637	2637
query39	776	758	731	731
query39_1	707	720	719	719
query40	213	137	119	119
query41	66	64	68	64
query42	102	103	102	102
query43	480	435	394	394
query44	1294	727	733	727
query45	188	182	172	172
query46	823	937	559	559
query47	1421	1448	1342	1342
query48	325	316	235	235
query49	623	431	343	343
query50	609	272	205	205
query51	3840	3868	3735	3735
query52	105	108	95	95
query53	289	320	273	273
query54	292	287	272	272
query55	85	83	76	76
query56	316	297	304	297
query57	994	1025	945	945
query58	285	261	259	259
query59	2165	2011	2057	2011
query60	335	309	320	309
query61	177	148	154	148
query62	376	370	306	306
query63	297	261	266	261
query64	4857	1278	978	978
query65	3808	3774	3806	3774
query66	1378	426	312	312
query67	15506	15073	15417	15073
query68	2674	1041	727	727
query69	469	356	322	322
query70	973	966	932	932
query71	321	299	290	290
query72	5640	3577	3537	3537
query73	583	711	324	324
query74	8710	8792	8570	8570
query75	2769	2824	2486	2486
query76	2427	1042	666	666
query77	361	385	307	307
query78	9878	9750	9245	9245
query79	1073	918	587	587
query80	1432	628	521	521
query81	558	265	232	232
query82	1019	155	117	117
query83	385	263	290	263
query84	251	113	102	102
query85	945	512	504	504
query86	446	276	320	276
query87	2864	2829	2737	2737
query88	3489	2589	2556	2556
query89	384	347	331	331
query90	1912	186	177	177
query91	179	154	137	137
query92	80	70	73	70
query93	981	894	521	521
query94	661	334	302	302
query95	562	382	317	317
query96	657	513	229	229
query97	2368	2383	2360	2360
query98	204	202	197	197
query99	707	559	543	543
Total cold run time: 250042 ms
Total hot run time: 174077 ms

@doris-robot
Copy link

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

query1	0.05	0.05	0.04
query2	0.10	0.04	0.04
query3	0.26	0.09	0.09
query4	1.60	0.12	0.11
query5	0.28	0.25	0.26
query6	1.14	0.67	0.64
query7	0.03	0.02	0.02
query8	0.05	0.04	0.04
query9	0.56	0.50	0.50
query10	0.57	0.54	0.54
query11	0.15	0.10	0.10
query12	0.15	0.11	0.11
query13	0.61	0.59	0.58
query14	0.95	0.95	0.93
query15	0.80	0.77	0.78
query16	0.40	0.39	0.39
query17	1.00	1.07	1.05
query18	0.23	0.21	0.21
query19	1.92	1.82	1.84
query20	0.02	0.01	0.01
query21	15.41	0.27	0.14
query22	5.14	0.05	0.04
query23	16.00	0.27	0.10
query24	1.53	0.37	0.48
query25	0.06	0.07	0.10
query26	0.14	0.13	0.12
query27	0.07	0.05	0.06
query28	4.59	1.07	0.88
query29	12.52	3.98	3.16
query30	0.27	0.13	0.12
query31	2.82	0.62	0.40
query32	3.24	0.55	0.45
query33	2.93	3.05	3.03
query34	16.20	5.07	4.40
query35	4.51	4.41	4.43
query36	0.66	0.50	0.50
query37	0.14	0.07	0.07
query38	0.08	0.04	0.04
query39	0.07	0.03	0.03
query40	0.17	0.15	0.13
query41	0.10	0.03	0.03
query42	0.05	0.02	0.02
query43	0.04	0.04	0.03
Total cold run time: 97.61 s
Total hot run time: 26.83 s

@zclllyybb
Copy link
Contributor Author

run beut

@zclllyybb
Copy link
Contributor Author

run buildall

Copy link
Contributor

@linrrzqqq linrrzqqq 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
Copy link
Contributor

PR approved by anyone and no changes requested.

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17672	4142	4070	4070
q2	2050	345	245	245
q3	10150	1260	717	717
q4	10221	908	318	318
q5	7498	2099	1885	1885
q6	189	175	137	137
q7	948	786	677	677
q8	9290	1424	1101	1101
q9	5122	4601	4572	4572
q10	6805	1794	1393	1393
q11	532	299	293	293
q12	717	730	599	599
q13	17780	3805	3093	3093
q14	285	307	269	269
q15	600	525	495	495
q16	673	678	633	633
q17	654	785	491	491
q18	7116	6557	6726	6557
q19	1210	966	642	642
q20	389	354	239	239
q21	2988	2402	2246	2246
q22	1023	1018	944	944
Total cold run time: 103912 ms
Total hot run time: 31616 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4135	4023	4060	4023
q2	328	384	303	303
q3	2096	2596	2222	2222
q4	1295	1732	1327	1327
q5	4069	3985	4006	3985
q6	208	173	128	128
q7	1812	1778	1788	1778
q8	2722	2521	2467	2467
q9	7275	7385	7117	7117
q10	2518	2665	2357	2357
q11	568	475	453	453
q12	705	756	582	582
q13	3595	4155	3596	3596
q14	378	296	270	270
q15	558	504	499	499
q16	649	682	656	656
q17	1133	1495	1437	1437
q18	8136	7669	7888	7669
q19	871	839	828	828
q20	2012	2018	1956	1956
q21	4859	4324	4174	4174
q22	1073	1009	1003	1003
Total cold run time: 50995 ms
Total hot run time: 48830 ms

@doris-robot
Copy link

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

query5	4468	619	489	489
query6	314	244	209	209
query7	4213	448	246	246
query8	332	248	262	248
query9	8693	2821	2840	2821
query10	450	359	331	331
query11	15141	15178	14839	14839
query12	167	117	112	112
query13	1250	478	371	371
query14	6191	3021	2721	2721
query14_1	2663	2582	2607	2582
query15	193	188	168	168
query16	965	462	467	462
query17	1070	640	531	531
query18	2421	420	328	328
query19	213	213	189	189
query20	119	111	111	111
query21	220	139	112	112
query22	4090	4066	3990	3990
query23	15940	15459	15234	15234
query23_1	15419	15429	15395	15395
query24	7206	1518	1181	1181
query24_1	1148	1152	1139	1139
query25	565	475	428	428
query26	1240	263	154	154
query27	2775	448	281	281
query28	4575	2107	2101	2101
query29	781	544	443	443
query30	315	238	205	205
query31	816	619	554	554
query32	87	72	74	72
query33	541	363	316	316
query34	898	866	531	531
query35	746	762	677	677
query36	888	922	767	767
query37	127	99	86	86
query38	2653	2664	2656	2656
query39	760	747	740	740
query39_1	741	710	714	710
query40	224	144	127	127
query41	73	73	67	67
query42	105	100	100	100
query43	426	455	407	407
query44	1309	730	728	728
query45	186	182	175	175
query46	829	939	570	570
query47	1458	1473	1299	1299
query48	315	323	245	245
query49	623	431	364	364
query50	617	291	207	207
query51	3783	3777	3746	3746
query52	104	109	94	94
query53	285	320	275	275
query54	303	273	287	273
query55	82	81	78	78
query56	321	322	316	316
query57	1024	997	956	956
query58	277	273	270	270
query59	2129	1991	2137	1991
query60	340	345	325	325
query61	237	156	153	153
query62	388	356	316	316
query63	287	267	269	267
query64	4876	1259	956	956
query65	3788	3704	3801	3704
query66	1462	397	312	312
query67	15429	15525	15437	15437
query68	2436	1070	734	734
query69	442	341	320	320
query70	985	943	940	940
query71	328	312	300	300
query72	5408	3151	3300	3151
query73	586	688	313	313
query74	8801	8716	8472	8472
query75	2699	2800	2449	2449
query76	2272	1032	648	648
query77	340	358	298	298
query78	9579	9817	9165	9165
query79	1309	881	570	570
query80	1266	566	472	472
query81	536	261	232	232
query82	965	141	110	110
query83	317	256	243	243
query84	258	111	103	103
query85	904	490	439	439
query86	409	299	323	299
query87	2844	2822	2775	2775
query88	3455	2573	2535	2535
query89	382	342	338	338
query90	2002	171	162	162
query91	170	158	135	135
query92	73	75	67	67
query93	1072	876	517	517
query94	651	326	311	311
query95	566	383	316	316
query96	649	496	228	228
query97	2338	2363	2305	2305
query98	212	196	199	196
query99	598	570	528	528
Total cold run time: 246804 ms
Total hot run time: 173259 ms

@doris-robot
Copy link

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

query1	0.05	0.05	0.05
query2	0.09	0.05	0.04
query3	0.25	0.09	0.08
query4	1.60	0.11	0.11
query5	0.27	0.26	0.25
query6	1.15	0.65	0.65
query7	0.02	0.02	0.03
query8	0.05	0.04	0.04
query9	0.56	0.51	0.51
query10	0.54	0.55	0.54
query11	0.14	0.09	0.10
query12	0.14	0.11	0.10
query13	0.59	0.57	0.58
query14	0.93	0.93	0.97
query15	0.78	0.76	0.78
query16	0.39	0.39	0.40
query17	0.95	1.06	1.07
query18	0.22	0.21	0.21
query19	1.91	1.85	1.77
query20	0.02	0.01	0.01
query21	15.45	0.24	0.13
query22	5.36	0.06	0.04
query23	16.18	0.27	0.09
query24	1.55	0.72	0.23
query25	0.12	0.06	0.04
query26	0.14	0.14	0.14
query27	0.07	0.04	0.05
query28	4.52	1.05	0.89
query29	12.55	3.87	3.19
query30	0.28	0.14	0.11
query31	2.82	0.65	0.39
query32	3.25	0.55	0.47
query33	3.08	3.00	3.02
query34	15.92	5.14	4.39
query35	4.50	4.51	4.41
query36	0.64	0.50	0.50
query37	0.12	0.06	0.07
query38	0.07	0.04	0.04
query39	0.05	0.03	0.03
query40	0.16	0.15	0.13
query41	0.10	0.03	0.03
query42	0.04	0.03	0.02
query43	0.04	0.04	0.03
Total cold run time: 97.66 s
Total hot run time: 26.58 s

@hello-stephen
Copy link
Contributor

BE UT Coverage Report

Increment line coverage 6.73% (7/104) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 53.01% (19000/35844)
Line Coverage 39.03% (175976/450822)
Region Coverage 33.63% (136346/405394)
Branch Coverage 34.66% (58918/169992)

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes false alarm errors in date-related functions when processing NULL values from LEFT JOIN operations. When joins generate NULL rows with unspecified nested values, functions with use_default_implementation_of_null = true could raise spurious "out of range" errors. The fix changes these functions to handle nulls manually, avoiding validation on invalid default values.

Changes:

  • Modified multiple date functions to set use_default_implementation_for_nulls() = false and handle NULL values manually
  • Added manual NULL map handling for date_trunc, last_day, to_monday, unix_timestamp, from_seconds, from_milliseconds, and from_microseconds
  • Added regression test to verify NULL handling with LEFT JOIN operations

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
be/src/vec/functions/function_other_types_to_date.cpp Removed error checking in date_trunc, modified unix_timestamp implementations to handle nulls manually, and updated last_day/to_monday to process NULL maps before validating data
be/src/vec/functions/function_date_or_datetime_computation.h Updated from_second/from_millisecond/from_microsecond functions to manually handle NULL values
regression-test/suites/correctness_p0/test_date_trunc_error.groovy Added test case with LEFT JOIN to verify date functions handle NULL values without errors
regression-test/data/correctness_p0/test_date_trunc_error.out Expected output showing NULL values propagate correctly through date functions

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Jan 15, 2026
@github-actions
Copy link
Contributor

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

@hello-stephen
Copy link
Contributor

BE Regression && UT Coverage Report

Increment line coverage 94.23% (98/104) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 72.21% (25364/35127)
Line Coverage 58.91% (265252/450237)
Region Coverage 53.60% (219699/409902)
Branch Coverage 55.31% (94443/170753)

@zclllyybb zclllyybb merged commit d6854ba into apache:master Jan 15, 2026
36 of 38 checks passed
@zclllyybb zclllyybb deleted the fix_date_trunc branch January 15, 2026 10:49
github-actions bot pushed a commit that referenced this pull request Jan 15, 2026
join may generate null rows with unspecified nested value. may make some
functions with `use_default_implementation_of_null = true` raise false
positive alarm like `errCode = 2, detailMessage =
(172.20.56.1)[E-218]Operation date_trunc of out of range`.

this fix relates to some functions:
```
date_trunc
last_day
to_monday
unix_timestamp
from_seconds
from_milliseconds
from_microseconds
```
yiguolei pushed a commit that referenced this pull request Jan 16, 2026
…ons #59897 (#59931)

Cherry-picked from #59897

Co-authored-by: zclllyybb <zhaochangle@selectdb.com>
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. dev/4.0.3-merged p0_b reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants