You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by hu...@apache.org on 2022/04/14 18:03:46 UTC
[superset] branch add-time-grains-pinot created (now 9ea375a31c)
This is an automated email from the ASF dual-hosted git repository.
hugh pushed a change to branch add-time-grains-pinot
in repository https://gitbox.apache.org/repos/asf/superset.git
at 9ea375a31c add new grains to pinot
This branch includes the following new commits:
new 9ea375a31c add new grains to pinot
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[superset] 01/01: add new grains to pinot
Posted by hu...@apache.org.
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 <hu...@gmail.com>
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",