You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Non-constant DATE_TRUNC expression regression for values before epoch #18334
changed the title [-]Non-constant `DATE_TRUNC` expression regression[/-][+]Non-constant `DATE_TRUNC` expression regression for values before epoch[/+]on Oct 29, 2025
Activity
sadboy commentedon Oct 28, 2025
Also exists on
mainas of commit e9431fcsadboy commentedon Oct 28, 2025
Caused by #16859 -- removing
datafusion/datafusion/functions/src/datetime/date_trunc.rs
Lines 192 to 216 in 7909909
cc @waynexia @findepi
comphead commentedon Oct 28, 2025
Thanks @sadboy appreciate if you also add a regression test
Revert "speedup `date_trunc` (~7x faster) in some cases (apache#16859)"
alamb commentedon Oct 29, 2025
FYI @mhilton has 🦸 us and has a proposed fix:
[-]Non-constant `DATE_TRUNC` expression regression[/-][+]Non-constant `DATE_TRUNC` expression regression for values before epoch[/+]fix: correct date_trunc for times before the epoch (#18356)
fix: correct date_trunc for times before the epoch (apache#18356)
fix: correct date_trunc for times before the epoch (apache#18356)
Revert "speedup `date_trunc` (~7x faster) in some cases (apache#16859)"