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/10/20 02:00:34 UTC

[GitHub] [airflow] nivaldoh opened a new pull request, #27156: Add documentation for BigQuery transfer operators

nivaldoh opened a new pull request, #27156:
URL: https://github.com/apache/airflow/pull/27156

   <!--
   Thank you for contributing! Please make sure that your code changes
   are covered with tests. And in case of new features or big changes
   remember to adjust the documentation.
   
   Feel free to ping committers for the review!
   
   In case of an existing issue, reference it using one of the following:
   
   closes: #ISSUE
   related: #ISSUE
   
   How to write a good git commit message:
   http://chris.beams.io/posts/git-commit/
   -->
   
   closes: #27093
   
   Adds documentation for the following Google Cloud transfer operators: BigQueryToBigQueryOperator, BigQueryToGCSOperator, BigQueryToMsSqlOperator, BigQueryToMySqlOperator, GCSToBigQueryOperator
   
   ---
   **^ Add meaningful description above**
   
   Read the **[Pull Request Guidelines](https://github.com/apache/airflow/blob/main/CONTRIBUTING.rst#pull-request-guidelines)** for more information.
   In case of fundamental code changes, an Airflow Improvement Proposal ([AIP](https://cwiki.apache.org/confluence/display/AIRFLOW/Airflow+Improvement+Proposals)) is needed.
   In case of a new dependency, check compliance with the [ASF 3rd Party License Policy](https://www.apache.org/legal/resolved.html#category-x).
   In case of backwards incompatible changes please leave a note in a newsfragment file, named `{pr_number}.significant.rst` or `{issue_number}.significant.rst`, in [newsfragments](https://github.com/apache/airflow/tree/main/newsfragments).
   


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


[GitHub] [airflow] eladkal commented on pull request #27156: Add documentation for BigQuery transfer operators

Posted by GitBox <gi...@apache.org>.
eladkal commented on PR #27156:
URL: https://github.com/apache/airflow/pull/27156#issuecomment-1333790231

   @nivaldoh can you please address the doc test failures?


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


[GitHub] [airflow] eladkal closed pull request #27156: Add documentation for BigQuery transfer operators

Posted by "eladkal (via GitHub)" <gi...@apache.org>.
eladkal closed pull request #27156: Add documentation for BigQuery transfer operators
URL: https://github.com/apache/airflow/pull/27156


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


[GitHub] [airflow] nivaldoh commented on a diff in pull request #27156: Add documentation for BigQuery transfer operators

Posted by GitBox <gi...@apache.org>.
nivaldoh commented on code in PR #27156:
URL: https://github.com/apache/airflow/pull/27156#discussion_r1002555561


##########
docs/apache-airflow-providers-google/operators/cloud/gcs.rst:
##########
@@ -32,22 +32,6 @@ Prerequisite Tasks
 Operators
 ^^^^^^^^^
 
-.. _howto/operator:GCSToBigQueryOperator:
-
-GCSToBigQueryOperator
----------------------
-
-Use the
-:class:`~airflow.providers.google.cloud.transfers.gcs_to_bigquery.GCSToBigQueryOperator`
-to execute a BigQuery load job.
-
-.. exampleinclude:: /../../tests/system/providers/google/cloud/gcs/example_gcs_to_bigquery.py
-    :language: python
-    :dedent: 4
-    :start-after: [START howto_operator_gcs_to_bigquery]
-    :end-before: [END howto_operator_gcs_to_bigquery]
-
-

Review Comment:
   Migrate the GCSToBigQueryOperator to its own page to maintain the established pattern for transfer operators.



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


[GitHub] [airflow] potiuk commented on pull request #27156: Add documentation for BigQuery transfer operators

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on PR #27156:
URL: https://github.com/apache/airflow/pull/27156#issuecomment-1400616833

   > @eladkal Please assign me
   
   You can just take the PR and start working on yours (and make reference to this PR). There is no need to assign it.


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


[GitHub] [airflow] nivaldoh commented on pull request #27156: Add documentation for BigQuery transfer operators

Posted by GitBox <gi...@apache.org>.
nivaldoh commented on PR #27156:
URL: https://github.com/apache/airflow/pull/27156#issuecomment-1287884707

   @turbaszek @mik-laj Ready for review at your earliest convenience.


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


[GitHub] [airflow] potiuk commented on pull request #27156: Add documentation for BigQuery transfer operators

Posted by GitBox <gi...@apache.org>.
potiuk commented on PR #27156:
URL: https://github.com/apache/airflow/pull/27156#issuecomment-1311072892

   docs are failing.


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


[GitHub] [airflow] potiuk commented on pull request #27156: Add documentation for BigQuery transfer operators

Posted by GitBox <gi...@apache.org>.
potiuk commented on PR #27156:
URL: https://github.com/apache/airflow/pull/27156#issuecomment-1296402438

   Let's see if CI passes.


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


[GitHub] [airflow] potiuk commented on pull request #27156: Add documentation for BigQuery transfer operators

Posted by GitBox <gi...@apache.org>.
potiuk commented on PR #27156:
URL: https://github.com/apache/airflow/pull/27156#issuecomment-1296414663

   Some static checks are failing - you need to solve and rebase.


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


[GitHub] [airflow] nivaldoh commented on a diff in pull request #27156: Add documentation for BigQuery transfer operators

Posted by GitBox <gi...@apache.org>.
nivaldoh commented on code in PR #27156:
URL: https://github.com/apache/airflow/pull/27156#discussion_r1002557621


##########
airflow/providers/google/cloud/transfers/bigquery_to_mysql.py:
##########
@@ -45,13 +48,15 @@ class BigQueryToMySqlOperator(BaseOperator):
         to MySQL
 
     **Example**: ::
-
+    
+       # [START howto_operator_bigquery_to_mysql]
        transfer_data = BigQueryToMySqlOperator(
             task_id='task_id',
             dataset_table='origin_bq_table',
             mysql_table='dest_table_name',
             replace=True,
         )
+        # [END howto_operator_bigquery_to_mysql]

Review Comment:
   Use example in the docstring as BigQueryToMySqlOperator doesn't have its own system test, and creating one may not be necessary.



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


[GitHub] [airflow] boring-cyborg[bot] commented on pull request #27156: Add documentation for BigQuery transfer operators

Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on PR #27156:
URL: https://github.com/apache/airflow/pull/27156#issuecomment-1284803847

   Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contribution Guide (https://github.com/apache/airflow/blob/main/CONTRIBUTING.rst)
   Here are some useful points:
   - Pay attention to the quality of your code (flake8, mypy and type annotations). Our [pre-commits]( https://github.com/apache/airflow/blob/main/STATIC_CODE_CHECKS.rst#prerequisites-for-pre-commit-hooks) will help you with that.
   - In case of a new feature add useful documentation (in docstrings or in `docs/` directory). Adding a new operator? Check this short [guide](https://github.com/apache/airflow/blob/main/docs/apache-airflow/howto/custom-operator.rst) Consider adding an example DAG that shows how users should use it.
   - Consider using [Breeze environment](https://github.com/apache/airflow/blob/main/BREEZE.rst) for testing locally, it's a heavy docker but it ships with a working Airflow and a lot of integrations.
   - Be patient and persistent. It might take some time to get a review or get the final approval from Committers.
   - Please follow [ASF Code of Conduct](https://www.apache.org/foundation/policies/conduct) for all communication including (but not limited to) comments on Pull Requests, Mailing list and Slack.
   - Be sure to read the [Airflow Coding style]( https://github.com/apache/airflow/blob/main/CONTRIBUTING.rst#coding-style-and-best-practices).
   Apache Airflow is a community-driven project and together we are making it better 🚀.
   In case of doubts contact the developers at:
   Mailing List: dev@airflow.apache.org
   Slack: https://s.apache.org/airflow-slack
   


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


[GitHub] [airflow] github-actions[bot] commented on pull request #27156: Add documentation for BigQuery transfer operators

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on PR #27156:
URL: https://github.com/apache/airflow/pull/27156#issuecomment-1397768482

   This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 5 days if no further activity occurs. Thank you for your contributions.


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


[GitHub] [airflow] eladkal commented on pull request #27156: Add documentation for BigQuery transfer operators

Posted by "eladkal (via GitHub)" <gi...@apache.org>.
eladkal commented on PR #27156:
URL: https://github.com/apache/airflow/pull/27156#issuecomment-1426701559

   resolved in https://github.com/apache/airflow/pull/29466


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


[GitHub] [airflow] shahar1 commented on pull request #27156: Add documentation for BigQuery transfer operators

Posted by "shahar1 (via GitHub)" <gi...@apache.org>.
shahar1 commented on PR #27156:
URL: https://github.com/apache/airflow/pull/27156#issuecomment-1400154592

   @eladkal Please assign me


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


[GitHub] [airflow] nivaldoh commented on pull request #27156: Add documentation for BigQuery transfer operators

Posted by GitBox <gi...@apache.org>.
nivaldoh commented on PR #27156:
URL: https://github.com/apache/airflow/pull/27156#issuecomment-1306618378

   Thanks for the review. All points have been addressed.


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


[GitHub] [airflow] potiuk commented on pull request #27156: Add documentation for BigQuery transfer operators

Posted by GitBox <gi...@apache.org>.
potiuk commented on PR #27156:
URL: https://github.com/apache/airflow/pull/27156#issuecomment-1318996438

   ?


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