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
Add Date32 and Date64 to the supported numeric types in the existing
unwrap_cast_in_comparison optimizer. This allows filters like
CAST(CAST(col AS Int32) AS Date32) >= Date32("2013-07-01")
to be simplified to
col >= UInt16(15887)
eliminating per-row CAST operations. Date32 is internally i32 (days
since epoch) and Date64 is i64 (ms since epoch), so they participate
in numeric comparisons the same way as their integer counterparts.
This affects ClickBench Q36-Q42, which all filter on EventDate
(stored as UInt16, viewed as Date32). Each query previously evaluated
4 CAST operations per row; now it does 0.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments