Skip to content

test: upload DATE column with various dtypes #420

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

Merged
merged 7 commits into from
Nov 16, 2021
Merged

Conversation

tswast
Copy link
Collaborator

@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 as a code owner November 11, 2021 15:52
Copy link

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

@@ -146,7 +146,11 @@ def system(session):
# Install all test dependencies, then install this package into the
# 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

@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
Collaborator 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 join this conversation on GitHub. Already have an account? Sign in to comment
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