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

test: upload DATE column with various dtypes#420

Merged
tswast merged 7 commits intomainfrom
issue362-to_gbq-date
Nov 16, 2021
Merged

test: upload DATE column with various dtypes#420
tswast merged 7 commits intomainfrom
issue362-to_gbq-date

Conversation

@tswast
Copy link
Copy Markdown
Contributor

@tswast tswast commented Nov 10, 2021

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #362 🦕

@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Nov 10, 2021
@product-auto-label product-auto-label Bot added the api: bigquery Issues related to the googleapis/python-bigquery-pandas API. label Nov 10, 2021
@tswast tswast marked this pull request as ready for review November 11, 2021 15:52
@tswast tswast requested a review from a team November 11, 2021 15:52
Comment thread tests/system/test_to_gbq.py Outdated
Copy link
Copy Markdown

@plamut plamut left a comment

Choose a reason for hiding this comment

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

Looks good, with a question about (not) hardcoding the Python version for db-dtypes system tests.

Comment thread noxfile.py
# virtualenv's dist-packages.
session.install("mock", "pytest", "google-cloud-testutils", "-c", constraints_path)
session.install("-e", ".[tqdm]", "-c", constraints_path)
if session.python == "3.9":
Copy link
Copy Markdown

@plamut plamut Nov 12, 2021

Choose a reason for hiding this comment

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

So, we only want to test db-types under a single Python version, 3.9 in this case? It's not a range restriction?

Does the 3.9 version have any specific meaning, or is it more like "recent, but not the latest" kind of choice?
If the latter, we could probably say SYSTEM_TEST_PYTHON_VERSIONS[-2] to avoid hardcoding.

Update: I see this will be removed in the follow-up PR (#423).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I think that was because we needed some code paths where it wasn't present, but #423 adds db-dtypes as a proper dependency.

@tswast tswast merged commit 3e70975 into main Nov 16, 2021
@tswast tswast deleted the issue362-to_gbq-date branch November 16, 2021 22:55
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-pandas API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

to_gbq fails when trying to save a Pandas datetime64[ns] to a BQ DATE field

2 participants