Add `quarter` to `INTERVAL` values
surister opened this issue · comments
Problem Statement
We cannot do: SELECT INTERVAL '1 quarter'
this is Ok in Postgres.
Possible Solutions
No response
Considered Alternatives
No response
After further research the Tableau test seems flawed, I don't think 'an interval of a quarter' makes much sense, is it just 4 months? quarters are context dependant, e.g: 1 Jan is Quarter 1, that's why SELECT EXTRACT(QUARTER FROM '1 JAN 2022'::date)
makes sense but interval doesn't.
For reference, SELECT INTERVAL '1' QUARTER
in postgres just returns 1.0 secs
.
Sorry for the noise.