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
SELECT
CURRENT_TIMESTAMP AS now,
CURRENT_TIMESTAMP - INTERVAL '7' DAYS AS last_week_correct,
CURRENT_TIMESTAMP - INTERVAL '1' WEEK AS last_week_wrong
```
I can repro on Druid 34.0.0 — INTERVAL '1' WEEK resolves to PT1H instead of P7D. Looks like the WEEK unit is missing from the Calcite-to-Druid interval conversion (most other units land in the day path but WEEK falls through to hours). Going to dig in and send a PR with a SqlIntervalArithmeticTest covering WEEK alongside the existing DAY/MONTH cases.
Activity
[-]INTERVAL 1 WEEK in Druid is wrong interval[/-][+]INTERVAL 1 WEEK in SQL is wrong interval[/+]christian-schlichtherle commentedon Feb 10, 2026
Just ran into the same problem on Druid 34.0.0:
barry3406 commentedon Apr 11, 2026
I can repro on Druid 34.0.0 —
INTERVAL '1' WEEKresolves toPT1Hinstead ofP7D. Looks like the WEEK unit is missing from the Calcite-to-Druid interval conversion (most other units land in the day path but WEEK falls through to hours). Going to dig in and send a PR with a SqlIntervalArithmeticTest covering WEEK alongside the existing DAY/MONTH cases.fix: INTERVAL n WEEK in SQL resolves to seven days instead of one hour