-
Notifications
You must be signed in to change notification settings - Fork 133
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
feat: Allow Users to Supply Their Own BigQuery Client #474
Conversation
f083579
to
8951bfb
Compare
18eff97
to
14acbfb
Compare
14acbfb
to
22d13a8
Compare
Please implement this! Will really help with Airflow use cases |
@chalmerlowe Please could you take a look? |
I will look at this and provide some feedback. |
README.rst
Outdated
|
||
engine = create_engine( | ||
'bigquery://some-project/some-dataset?user_supplied_client=True', | ||
connect_args={'client': bq_client}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bq_client
should be custom_bq_client
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed!
Just a heads up. I've tested the functionality of this PR and it seems to work. No issues found so far. |
- Add a flag 'user_supplied_client' which prevents the library from attempting to create a BigQuery client. - Document the use of `connect_args` for suppling their own BigQuery client to the dbapi
22d13a8
to
bdac92c
Compare
Anything I can help with to get this moving? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thank you for you assistance in getting this over the finish line. |
Revert "docs: fix changelog header to consistent size (googleapis#461)" This reverts commit 177e70a. Revert "chore: test minimum dependencies in python 3.7 (googleapis#463)" This reverts commit acc9274. Revert "chore(main): release 1.4.4 (googleapis#462)" This reverts commit 06c0270. Revert "fix: require python 3.7+ (googleapis#468)" This reverts commit 52ec808. Revert "chore(python): fix prerelease session [autoapprove] (googleapis#476)" This reverts commit e894dfa. Revert "chore: add hashes to requirements.txt' (googleapis#483)" This reverts commit cc13fe3. Revert "chore(python): exclude `grpcio==1.49.0rc1` in tests (googleapis#484)" This reverts commit 484d524. Revert "ci(python): fix path to requirements.txt in release script (googleapis#485)" This reverts commit 4f90d90. Revert "chore(python): update .kokoro/requirements.txt (googleapis#486)" This reverts commit 4b37fed. Revert "chore(python): exclude setup.py in renovate config (googleapis#487)" This reverts commit 9ffc736. Revert "chore(deps): update all dependencies (googleapis#488)" This reverts commit 189af9b. Revert "chore: detect samples tests in nested directories (googleapis#492)" This reverts commit f566371. Revert "feat: Allow Users to Supply Their Own BigQuery Client (googleapis#474)" This reverts commit 4f72d4e. Revert "chore: update dependency protobuf >= 3.20.2 (googleapis#498)" This reverts commit f188944. Revert "fix: Sets cache support to false, removes upper req limit (googleapis#499)" This reverts commit be63adc. Revert "fix: updates test to account for UTC in failing test (googleapis#501)" This reverts commit a050ccf. Revert "fix(deps): allow pyarrow version 7+ (googleapis#479)" This reverts commit 0f6be67. Revert "fix: use packaging version parser instead of string splitting (googleapis#513)" This reverts commit bb7f6a7. Revert "chore(main): release 1.5.0 (googleapis#469)" This reverts commit 1ffab57. Revert "chore: addressed lint issue with __version__ (googleapis#534)" This reverts commit 4e17259. Revert "build(deps): bump certifi from 2022.9.24 to 2022.12.7 in /synthtool/gcp/templates/python_library/.kokoro (googleapis#535)" This reverts commit 57794c3.
Revert "docs: fix changelog header to consistent size (googleapis#461)" This reverts commit 177e70a. Revert "chore: test minimum dependencies in python 3.7 (googleapis#463)" This reverts commit acc9274. Revert "chore(main): release 1.4.4 (googleapis#462)" This reverts commit 06c0270. Revert "fix: require python 3.7+ (googleapis#468)" This reverts commit 52ec808. Revert "chore(python): fix prerelease session [autoapprove] (googleapis#476)" This reverts commit e894dfa. Revert "chore: add hashes to requirements.txt' (googleapis#483)" This reverts commit cc13fe3. Revert "chore(python): exclude `grpcio==1.49.0rc1` in tests (googleapis#484)" This reverts commit 484d524. Revert "ci(python): fix path to requirements.txt in release script (googleapis#485)" This reverts commit 4f90d90. Revert "chore(python): update .kokoro/requirements.txt (googleapis#486)" This reverts commit 4b37fed. Revert "chore(python): exclude setup.py in renovate config (googleapis#487)" This reverts commit 9ffc736. Revert "chore(deps): update all dependencies (googleapis#488)" This reverts commit 189af9b. Revert "chore: detect samples tests in nested directories (googleapis#492)" This reverts commit f566371. Revert "feat: Allow Users to Supply Their Own BigQuery Client (googleapis#474)" This reverts commit 4f72d4e. Revert "chore: update dependency protobuf >= 3.20.2 (googleapis#498)" This reverts commit f188944. Revert "fix: Sets cache support to false, removes upper req limit (googleapis#499)" This reverts commit be63adc. Revert "fix: updates test to account for UTC in failing test (googleapis#501)" This reverts commit a050ccf. Revert "fix(deps): allow pyarrow version 7+ (googleapis#479)" This reverts commit 0f6be67. Revert "fix: use packaging version parser instead of string splitting (googleapis#513)" This reverts commit bb7f6a7. Revert "chore(main): release 1.5.0 (googleapis#469)" This reverts commit 1ffab57. Revert "chore: addressed lint issue with __version__ (googleapis#534)" This reverts commit 4e17259. Revert "build(deps): bump certifi from 2022.9.24 to 2022.12.7 in /synthtool/gcp/templates/python_library/.kokoro (googleapis#535)" This reverts commit 57794c3.
to create a BigQuery client.
connect_args
for suppling their own BigQuery clientto the dbapi
Fixes #464 🦕