drin commented on PR #18648:
URL: https://github.com/apache/datafusion/pull/18648#issuecomment-4006140110
okay, I can do that.
just so we're clear, the first case can only capture when the right-hand
constant is aligned. I agree it's a clear win, but continuing with the
date_trunc('month', ...) example, it's applicable to 1 value for every 30
values, and that's not including time and timezone offsets. As far as I can
tell, date_trunc truncates time stamps to UTC so any other timezone will only
get the optimization if it's pre-normalized to UTC midnight.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]