tylercb commented on issue #31446:
URL: https://github.com/apache/superset/issues/31446#issuecomment-2566601710
I've also experienced this issue after a recent Preset change. In my case, I
have an aggregate table with a Custom SQL dimension using the `time_grain`
passed in from a dashboard Time grain filter. Previously, this worked
perfectly, but recently the value is always `None`.
```sql
date_trunc(
case '{{ time_grain }}'
when 'P1Y' then 'year'
when 'P3M' then 'quarter'
when 'P1M' then 'month'
when 'P1W' then 'week'
when 'P1D' then 'day'
end,
cohort_start_date_pacific
)
```

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]