Open jjspratt opened 2 months ago
What happened: Query failure on $__timeGroup(column, $Granularity) when Quarter selected.
Granularity defined as
Week = 1w, Month = 1M, Quarter = 1Q
What you expected to happen: I expect to see results similar to date_trunc('quarter', column). This is what I experience when selected Week or Month.
How to reproduce it (as minimally and precisely as possible):
Week : 1w, Month : 1M, Quarter : 1Q
with time as (select GETDATE() as "test") select time.test ,$__timeGroup(time.test, $Granularity) from time
Could not apply macros: error parsing interval 1Q
-->
Screenshots
If applicable, add screenshots to help explain your problem. -->
Anything else we need to know?:
Environment:
This does look like a gap in our plugin sdk. I'll bring this up with the team next week and we'll see about getting it into the backlog. Thanks!
What happened: Query failure on $__timeGroup(column, $Granularity) when Quarter selected.
Granularity defined as
Week = 1w, Month = 1M, Quarter = 1Q
What you expected to happen: I expect to see results similar to date_trunc('quarter', column). This is what I experience when selected Week or Month.
How to reproduce it (as minimally and precisely as possible):
Week : 1w, Month : 1M, Quarter : 1Q
Could not apply macros: error parsing interval 1Q
-->
Screenshots
If applicable, add screenshots to help explain your problem. -->
Anything else we need to know?:
Environment: