RosterIn commented on a change in pull request #11220:
URL: https://github.com/apache/airflow/pull/11220#discussion_r562042389



##########
File path: airflow/providers/apache/hive/hooks/hive.py
##########
@@ -661,6 +661,19 @@ def get_partitions(
                 pnames = [p.name for p in table.partitionKeys]
                 return [dict(zip(pnames, p.values)) for p in parts]
 
+    def get_partition_by_name(self, db_name: str, tbl_name: str, part_name: 
str) -> Any:
+        """Get a metastore partition object
+
+        >>> hh = HiveMetastoreHook()
+        >>> tp = hh.get_partition_by_name(db_name='org_db', 
tbl_name='my_year_partitioned_table', part_name='year=2020')

Review comment:
       This line is too long which is why the test is failing
   `airflow/providers/apache/hive/hooks/hive.py:668:0: C0301: Line too long 
(120/110) (line-too-long)`




----------------------------------------------------------------
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:
[email protected]


Reply via email to