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
We can unwrap some specific functions on DataType/TimestampType used in comparison with a literal, so that we can further push down the predicate to connectors.
Expected Behavior or Use Case
Take function date() for example, we can unwrap date() for a timestamp parameter t as follows:
filter(date(t) = date `1984-01-08`) --> filter(t >= timestamp '1984-01-08 00:00:00.000' and t < timestamp '1984-01-09 00:00:00.000')
The same goes for function date_trunc(), year(), month(), day(), hour() etc. To be further supplemented.
We can unwrap some specific functions on DataType/TimestampType used in comparison with a literal, so that we can further push down the predicate to connectors.
Expected Behavior or Use Case
Take function
date()
for example, we can unwrapdate()
for a timestamp parametert
as follows:The same goes for function
date_trunc()
,year()
,month()
,day()
,hour()
etc. To be further supplemented.Presto Component, Service, or Connector
Possible Implementation
Refer to: #16106, #14011, #14161, #7806
Context
The text was updated successfully, but these errors were encountered: