-
Notifications
You must be signed in to change notification settings - Fork 309
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
deps: use pandas-gbq to determine schema in load_table_from_dataframe
#2095
base: main
Are you sure you want to change the base?
Changes from all commits
b8ff031
04a9f11
be2dd1b
6a13cab
1606cd6
2ae1121
e90cdfb
61f035b
29f336a
aff7021
ce368d9
9b7583e
f0ef613
8f46e3d
f4c1a4f
76b7890
d382e13
672ae33
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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 |
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), | ||
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, | ||
|
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.