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 2022/02/11 00:13:26 UTC

[GitHub] [airflow] pingzh commented on a change in pull request #21504: Set larger limit get_partitions_by_filter in HiveMetastoreHook

pingzh commented on a change in pull request #21504:
URL: https://github.com/apache/airflow/pull/21504#discussion_r804257340



##########
File path: airflow/providers/apache/hive/hooks/hive.py
##########
@@ -556,7 +556,9 @@ def check_for_partition(self, schema: str, table: str, partition: str) -> bool:
         True
         """
         with self.metastore as client:
-            partitions = client.get_partitions_by_filter(schema, table, partition, 1)
+            partitions = client.get_partitions_by_filter(
+                schema, table, partition, HiveMetastoreHook.MAX_PART_COUNT

Review comment:
       good call. it isn't a breaking change since it is invoked inside `check_for_partition`, which returns `bool`.




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

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org