This is an automated email from the ASF dual-hosted git repository. hugh pushed a commit to branch add-time-grains-pinot in repository https://gitbox.apache.org/repos/asf/superset.git
commit 9ea375a31c2b430f50a7b14a89d9653d4b81eb87 Author: hughhhh <[email protected]> AuthorDate: Thu Apr 14 14:03:01 2022 -0400 add new grains to pinot --- superset/db_engine_specs/pinot.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/superset/db_engine_specs/pinot.py b/superset/db_engine_specs/pinot.py index 051f42501f..1b384ac9b7 100644 --- a/superset/db_engine_specs/pinot.py +++ b/superset/db_engine_specs/pinot.py @@ -33,6 +33,10 @@ class PinotEngineSpec(BaseEngineSpec): # pylint: disable=abstract-method _time_grain_expressions: Dict[Optional[str], str] = { "PT1S": "1:SECONDS", "PT1M": "1:MINUTES", + "PT5M": "5:MINUTES", + "PT10M": "10:MINUTES", + "PT15M": "15:MINUTES", + "PT30M": "30:MINUTES", "PT1H": "1:HOURS", "P1D": "1:DAYS", "P1W": "week",
