This repository was archived by the owner on Mar 6, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 326
deps: use pandas-gbq to determine schema in load_table_from_dataframe
#2095
Merged
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
b8ff031
feat: use pandas-gbq to determine schema in `load_table_from_dataframe`
tswast 04a9f11
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] be2dd1b
fix some unit tests
tswast 6a13cab
Merge remote-tracking branch 'origin/b323176126-pandas-gbq' into b323…
tswast 1606cd6
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] 2ae1121
Merge remote-tracking branch 'origin/main' into b323176126-pandas-gbq
tswast e90cdfb
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] 61f035b
Merge remote-tracking branch 'origin/main' into b323176126-pandas-gbq
tswast 29f336a
bump minimum pandas-gbq to 0.26.1
tswast aff7021
🦉 Updates from OwlBot post-processor
gcf-owl-bot[bot] ce368d9
Merge branch 'main' into b323176126-pandas-gbq
tswast 9b7583e
Merge remote-tracking branch 'origin/main' into b323176126-pandas-gbq
tswast f0ef613
drop pandas-gbq from python 3.7 extras
tswast 8f46e3d
Merge remote-tracking branch 'origin/main' into b323176126-pandas-gbq
tswast f4c1a4f
relax warning message text assertion
tswast 76b7890
use consistent time zone presense/absense in time datetime system test
tswast d382e13
Update google/cloud/bigquery/_pandas_helpers.py
tswast 672ae33
Update google/cloud/bigquery/_pandas_helpers.py
tswast 155528c
Merge branch 'main' into b323176126-pandas-gbq
tswast 5a5e1b4
Merge remote-tracking branch 'origin/main' into b323176126-pandas-gbq
tswast 9a5656b
remove pandas-gbq from at least 1 unit test and system test session
tswast 1fab458
Merge remote-tracking branch 'origin/b323176126-pandas-gbq' into b323…
tswast 008aea3
Merge branch 'main' into b323176126-pandas-gbq
tswast File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,11 @@ | ||
| grpcio==1.47.0 | ||
| pandas==1.2.0 | ||
|
|
||
| # This constraints file is used to check that lower bounds | ||
| # are correct in setup.py | ||
| # | ||
| # Pin the version to the lower bound. | ||
| # | ||
| # e.g., if setup.py has "foo >= 1.14.0, < 2.0.0dev", | ||
| # Then this file should have foo==1.14.0 | ||
| pandas-gbq==0.26.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1259,7 +1259,7 @@ def test_upload_time_and_datetime_56(bigquery_client, dataset_id): | |
| df = pandas.DataFrame( | ||
| dict( | ||
| dt=[ | ||
| datetime.datetime(2020, 1, 8, 8, 0, 0), | ||
| datetime.datetime(2020, 1, 8, 8, 0, 0, tzinfo=datetime.timezone.utc), | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure is we should have defined what happens when you mix and match naive datetime (DATETIME in BQ) with datetime + timezone (TIMESTAMP in BQ). Since the test expects TIMESTAMP, I update this to be a datetime + timezone. We still mix/match timezones, so I think that part is important to make sure we end up returning UTC values. |
||
| datetime.datetime( | ||
| 2020, | ||
| 1, | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Note: this means we are testing without pandas-gbq on Python 3.7.