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 2019/02/02 07:28:31 UTC

[GitHub] agrawaldevesh commented on a change in pull request #6719: [WIP] Adding support for Pinot

agrawaldevesh commented on a change in pull request #6719: [WIP] Adding support for Pinot
URL: https://github.com/apache/incubator-superset/pull/6719#discussion_r253257299
 
 

 ##########
 File path: superset/connectors/sqla/models.py
 ##########
 @@ -126,13 +130,23 @@ def datasource(self):
 
     def get_time_filter(self, start_dttm, end_dttm):
         col = self.get_sqla_col(label='__time')
+        start_dttm_text = None
+        end_dttm_text = None
+        if start_dttm:
+            start_dttm_text = text(self.dttm_sql_literal(start_dttm))
+        if end_dttm:
+            end_dttm_text = text(self.dttm_sql_literal(end_dttm))
         l = []  # noqa: E741
         if start_dttm:
-            l.append(col >= text(self.dttm_sql_literal(start_dttm)))
+            l.append(col >= start_dttm_text)
         if end_dttm:
-            l.append(col <= text(self.dttm_sql_literal(end_dttm)))
+            l.append(col <= end_dttm_text)
 
 Review comment:
   Reverted

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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