Skip to content
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

BUG: fixed a bug that all TIMESTAMP fileds become 00 secconds. #148

Merged
merged 3 commits into from Mar 13, 2018

Conversation

rhoboro
Copy link
Contributor

@rhoboro rhoboro commented Mar 12, 2018

Fixed a bug that all TIMESTAMP fileds become 00 secconds in BigQuery.
#69 (comment) mentions to same issue.

  • before ( note: In this case, I intentionally puts same datetime.now() value. )

screen shot 2018-03-12 at 18 13 52

  • after

screen shot 2018-03-12 at 18 24 05

@codecov-io
Copy link

codecov-io commented Mar 12, 2018

Codecov Report

Merging #148 into master will decrease coverage by 46.07%.
The diff coverage is 9.09%.

Impacted file tree graph

@@             Coverage Diff             @@
##           master     #148       +/-   ##
===========================================
- Coverage    75.5%   29.43%   -46.08%     
===========================================
  Files           8        8               
  Lines        1535     1546       +11     
===========================================
- Hits         1159      455      -704     
- Misses        376     1091      +715
Impacted Files Coverage Δ
pandas_gbq/_load.py 62.5% <ø> (-35%) ⬇️
pandas_gbq/tests/test_gbq.py 23.1% <9.09%> (-61.25%) ⬇️
pandas_gbq/gbq.py 20.56% <0%> (-55.58%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 369959a...05ac27b. Read the comment docs.

@max-sixty
Copy link
Contributor

This looks great! Thank you.

Could you add a short test?

@max-sixty
Copy link
Contributor

Looks good - any feedback @tswast @parthea?

Otherwise will merge in 36 hours

test_size = 6
df = DataFrame(np.random.randn(test_size, 4), index=range(test_size),
columns=list('ABCD'))
test_timestamp = datetime.now(pytz.timezone('UTC'))
Copy link
Contributor

Choose a reason for hiding this comment

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

Ideally this would be a value rather than .now, and that's harder to reproduce, but not a huge issue

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for your review. I fixed this.
05ac27b

@max-sixty
Copy link
Contributor

Integration tests pass: https://travis-ci.org/maxim-lian/pandas-gbq/builds/352690707

@tswast tswast merged commit ed17886 into googleapis:master Mar 13, 2018
@tswast
Copy link
Collaborator

tswast commented Mar 13, 2018

@maxim-lian @rhoboro Thanks a bunch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants