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/08/23 17:02:54 UTC

[GitHub] [incubator-superset] etr2460 commented on a change in pull request #8098: [Hive Engine Spec] Fix latest partition logic

etr2460 commented on a change in pull request #8098: [Hive Engine Spec] Fix latest partition logic
URL: https://github.com/apache/incubator-superset/pull/8098#discussion_r317220450
 
 

 ##########
 File path: superset/db_engine_specs/hive.py
 ##########
 @@ -321,10 +324,10 @@ def latest_sub_partition(cls, table_name, schema, database, **kwargs):
         pass
 
     @classmethod
-    def _latest_partition_from_df(cls, df):
+    def _latest_partition_from_df(cls, df) -> Optional[List[str]]:
         """Hive partitions look like ds={partition name}"""
         if not df.empty:
-            return df.ix[:, 0].max().split("=")[1]
+            return [df.ix[:, 0].max().split("=")[1]]
 
 Review comment:
   done

----------------------------------------------------------------
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