You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/05/03 01:02:32 UTC

[GitHub] [airflow] Acehaidrey commented on a change in pull request #8598: make hive macros py3 compatible with decoded string return type

Acehaidrey commented on a change in pull request #8598:
URL: https://github.com/apache/airflow/pull/8598#discussion_r419029059



##########
File path: airflow/providers/apache/hive/hooks/hive.py
##########
@@ -708,7 +708,11 @@ def _get_max_partition_from_part_specs(part_specs, partition_key, filter_map):
         if not candidates:
             return None
         else:
-            return max(candidates).encode('utf-8')
+            max_val = max(candidates).encode('utf-8')
+            # check is for python3 to keep same behavior or returning a string type

Review comment:
       you are right! fixed :) 




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