turbaszek commented on a change in pull request #9472:
URL: https://github.com/apache/airflow/pull/9472#discussion_r448915752



##########
File path: airflow/providers/apache/hive/hooks/hive.py
##########
@@ -775,6 +775,23 @@ def table_exists(self, table_name, db='default'):
         except Exception:  # pylint: disable=broad-except
             return False
 
+    def drop_partitions(self, table_name, part_vals, delete_data=False, 
db='default'):
+        """
+        Drop partitions matching param_names input
+        >>> hh = HiveMetastoreHook()
+        >>> hh.drop_partitions(db='airflow', table_name='static_babynames',
+        part_vals="['2020-05-01']")
+        True

Review comment:
       Please add arguments information using `:param xxx:` and `:type xxx:`




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