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 2019/01/12 01:33:22 UTC

[GitHub] kaxil commented on a change in pull request #4299: [AIRFLOW-3490] BigQueryHook's Ability to Patch Table/View

kaxil commented on a change in pull request #4299: [AIRFLOW-3490] BigQueryHook's Ability to Patch Table/View
URL: https://github.com/apache/airflow/pull/4299#discussion_r247296811
 
 

 ##########
 File path: airflow/contrib/hooks/bigquery_hook.py
 ##########
 @@ -495,6 +495,116 @@ def create_external_table(self,
                 'BigQuery job failed. Error was: {}'.format(err.content)
             )
 
+    def patch_table(self,
+                    project_id,
+                    dataset_id,
+                    table_id,
+                    description=None,
+                    expiration_time=None,
+                    external_data_configuration=None,
+                    friendly_name=None,
+                    labels=None,
+                    schema=None,
+                    time_partitioning=None,
+                    view=None,
+                    require_partition_filter=None):
+        """
+        Patch information in an existing table.
+        It only updates fileds that are provided in the request object.
+
+        Reference: https://cloud.google.com/bigquery/docs/reference/rest/v2/tables/patch
+
+        :param project_id: The project containing the table to be patched.
+        :type project_id: str
+        :param dataset_id: The dataset containing the tableto be patched.
 
 Review comment:
   ```suggestion
           :param dataset_id: The dataset containing the table to be patched.
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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