airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] kaxil commented on a change in pull request #3876: [AIRFLOW-2887] Add to BigQueryBaseCursor methods for insert dataset
Date Tue, 11 Sep 2018 19:17:04 GMT
kaxil commented on a change in pull request #3876: [AIRFLOW-2887] Add to BigQueryBaseCursor
methods for insert dataset
URL: https://github.com/apache/incubator-airflow/pull/3876#discussion_r216786431
 
 

 ##########
 File path: airflow/contrib/operators/bigquery_operator.py
 ##########
 @@ -569,3 +569,64 @@ def execute(self, context):
             project_id=self.project_id,
             dataset_id=self.dataset_id
         )
+
+
+class BigQueryInsertDatasetOperator(BaseOperator):
+    """"
+    This operator insert new dataset for your Project in Big query.
+    https://cloud.google.com/bigquery/docs/reference/rest/v2/datasets#resource
+    :param project_id: The name of the project where we want to insert a dataset.
+          Not need to provide, if projectId in dataset_resource.
+    :type project_id: str
+    :param dataset_id: The id of dataset. Not need to provide,
+           if datasetId in dataset_resource.
+    :type dataset_id: str
+    :param dataset_resource: Dataset resource that must be provided
+           with request body. More info:
+           https://cloud.google.com/bigquery/docs/reference/rest/v2/datasets#resource
+    :param dataset_resource: dict
 
 Review comment:
   `:type`

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

Mime
View raw message