Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

chore: add bigquery-magics samples#9

Merged
tswast merged 20 commits intomainfrom
ashleyxu-add-samples
Apr 15, 2024
Merged

chore: add bigquery-magics samples#9
tswast merged 20 commits intomainfrom
ashleyxu-add-samples

Conversation

@ashleyxuu
Copy link
Copy Markdown
Contributor

No description provided.

@ashleyxuu ashleyxuu requested a review from tswast April 11, 2024 18:53
@product-auto-label product-auto-label bot added api: bigquery Issues related to the googleapis/python-bigquery-magics API. samples Issues that are directly related to samples. labels Apr 11, 2024
Copy link
Copy Markdown
Contributor

@tswast tswast left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The samples need to be one directory deeper. Could you please make a samples/bigquery folder for the %%bigquery code samples?

@tswast
Copy link
Copy Markdown
Contributor

tswast commented Apr 11, 2024

Looking at #6, the recommended folder name is samples/snippets so we can use that.

@product-auto-label product-auto-label bot added size: l Pull request size is large. size: xl Pull request size is extra large. and removed size: l Pull request size is large. labels Apr 12, 2024
@ashleyxuu ashleyxuu marked this pull request as ready for review April 12, 2024 03:41
@ashleyxuu ashleyxuu requested a review from a team as a code owner April 12, 2024 03:41
@ashleyxuu ashleyxuu requested review from a team, Genesis929, alvarowolfx and rsamborski April 12, 2024 03:41
@snippet-bot
Copy link
Copy Markdown

snippet-bot bot commented Apr 12, 2024

Here is the summary of changes.

You are about to add 2 region tags.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

@product-auto-label product-auto-label bot added size: l Pull request size is large. and removed size: xl Pull request size is extra large. labels Apr 12, 2024
@product-auto-label product-auto-label bot added size: xl Pull request size is extra large. and removed size: l Pull request size is large. labels Apr 12, 2024
@ashleyxuu ashleyxuu force-pushed the ashleyxu-add-samples branch from 9db0a67 to f2e4f34 Compare April 12, 2024 20:50
@product-auto-label product-auto-label bot added size: l Pull request size is large. and removed size: xl Pull request size is extra large. labels Apr 12, 2024
from google.api_core.exceptions import NotFound
from google.cloud import bigquery
from google.cloud.bigquery import exceptions
from google.cloud.bigquery import _versions_helpers, exceptions
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't.

That's a private module. Let's use the one we copied to this repo, instead.

Comment on lines +1 to +9
db-dtypes==1.2.0
google.cloud.bigquery==3.19.0
google-cloud-bigquery-storage==2.24.0
ipython===7.31.1; python_version == '3.7'
ipython===8.0.1; python_version == '3.8'
ipython===8.18.1; python_version >= '3.9'
pandas==1.3.5; python_version == '3.7'
pandas==2.0.0; python_version == '3.8'
pandas==2.2.1; python_version >= '3.9'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally this will just be bigquery_magics with no extra dependencies. See this comment: https://github.com/googleapis/python-bigquery/blob/bf8861c3473a1af978db7a06463ddc0bad86f326/samples/snippets/requirements.txt#L1

@ashleyxuu ashleyxuu force-pushed the ashleyxu-add-samples branch from d3a899e to 4d12f97 Compare April 12, 2024 21:48
@ashleyxuu ashleyxuu force-pushed the ashleyxu-add-samples branch from d012645 to d4fd1ae Compare April 12, 2024 23:06
@ashleyxuu ashleyxuu force-pushed the ashleyxu-add-samples branch from c6aca5f to 1105998 Compare April 14, 2024 19:05
@ashleyxuu ashleyxuu force-pushed the ashleyxu-add-samples branch from 0ae053e to 1d21466 Compare April 15, 2024 16:16
@ashleyxuu ashleyxuu force-pushed the ashleyxu-add-samples branch from 87ab992 to 2be7369 Compare April 15, 2024 16:19
Copy link
Copy Markdown
Contributor

@tswast tswast left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@tswast tswast merged commit dfc64b8 into main Apr 15, 2024
@tswast tswast deleted the ashleyxu-add-samples branch April 15, 2024 16:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: bigquery Issues related to the googleapis/python-bigquery-magics API. samples Issues that are directly related to samples. size: l Pull request size is large.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants