Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix BigQuery data extraction in BigQueryToMySqlOperator #18073

Conversation

wolfier
Copy link
Contributor

@wolfier wolfier commented Sep 7, 2021

closes: #17198

Uses the list_rows function from BigQueryHook to query data.

If there no more rows, job is finished.

@wolfier wolfier requested a review from turbaszek as a code owner September 7, 2021 21:52
@boring-cyborg boring-cyborg bot added area:providers provider:google Google (including GCP) related issues labels Sep 7, 2021
@mik-laj
Copy link
Member

mik-laj commented Sep 7, 2021

Can you also update tests?

@wolfier wolfier force-pushed the remove-deprecated-method-for-bigquerytomysql-operator branch from c1bdabf to 6e56b40 Compare September 7, 2021 23:53
@wolfier
Copy link
Contributor Author

wolfier commented Sep 7, 2021

Good call! I have updated the test and made sure it works locally

@mik-laj
Copy link
Member

mik-laj commented Sep 8, 2021

@wolfier Static checks are sad 😿

tests/providers/google/cloud/transfers/test_bigquery_to_mysql.py:43:17: E126 continuation line over-indented for hanging indent
tests/providers/google/cloud/transfers/test_bigquery_to_mysql.py:48:13: E121 continuation line under-indented for hanging indent

@wolfier wolfier force-pushed the remove-deprecated-method-for-bigquerytomysql-operator branch from 6e56b40 to 0986933 Compare September 8, 2021 00:38
@wolfier wolfier force-pushed the remove-deprecated-method-for-bigquerytomysql-operator branch from 0986933 to 8d4f76e Compare September 8, 2021 01:00
@wolfier
Copy link
Contributor Author

wolfier commented Sep 8, 2021

My bad! The tests I ran skipped the flake8 test for some reason :( I made sure to run the test for the test file explicitly and it did pass 🤞

@kaxil kaxil requested a review from mik-laj September 8, 2021 10:35
@github-actions github-actions bot added the okay to merge It's ok to merge this PR as it does not require more tests label Sep 8, 2021
@github-actions
Copy link

github-actions bot commented Sep 8, 2021

The PR is likely OK to be merged with just subset of tests for default Python and Database versions without running the full matrix of tests, because it does not modify the core of Airflow. If the committers decide that the full tests matrix is needed, they will add the label 'full tests needed'. Then you should rebase to the latest main or amend the last commit of the PR, and push it with --force-with-lease.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:providers okay to merge It's ok to merge this PR as it does not require more tests provider:google Google (including GCP) related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BigQueryToMySqlOperator uses deprecated method and doesn't use keyword arguments
3 participants