You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2020/03/27 16:39:13 UTC

[GitHub] [incubator-superset] bkyryliuk commented on a change in pull request #9353: Implement dttm config

bkyryliuk commented on a change in pull request #9353: Implement dttm config
URL: https://github.com/apache/incubator-superset/pull/9353#discussion_r399396469
 
 

 ##########
 File path: superset/connectors/sqla/models.py
 ##########
 @@ -1073,8 +1083,34 @@ def mutator(df: pd.DataFrame) -> None:
     def get_sqla_table_object(self) -> Table:
         return self.database.get_table(self.table_name, schema=self.schema)
 
-    def fetch_metadata(self, commit=True) -> None:
+    def fetch_metadata(
+        self,
+        commit=True,
+        dttm_config: Optional[Dict[str, Dict[str, str]]] = None,
+        main_dttm_col: Optional[str] = None,
+    ) -> None:
 
 Review comment:
   @villebro I have a slight preference towards a very lightweight model classes and not to depend on the superset app. A middle ground could be here to move this function outside of the models

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org