Because of daylight savings time, a given number of days doesn't correspond to a fixed number of seconds. Currently, Trino's interval type represents interval '1' day as equivalent to interval '86400' second. This gives incorrect results around DST changes:
Because of daylight savings time, a given number of days doesn't correspond to a fixed number of seconds. Currently, Trino's interval type represents
interval '1' day
as equivalent tointerval '86400' second
. This gives incorrect results around DST changes:Compare e.g. postgres: