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

Add TimeZones dependency for auto-converting Timestamp #50

Merged
merged 1 commit into from
Oct 26, 2020

Conversation

quinnj
Copy link
Member

@quinnj quinnj commented Oct 24, 2020

Implements #17. We now convert all Timestamp objects to ZonedDateTime
via auto-conversion (can be turned off by convert=false). The one
piece of awkwardness here is that it is currently assumed that with a
Vector{ZonedDateTime}, it is assumed that each element will have the
same timezone. Probably ok in practice, but frankly it'd be nicer if
there was a ZonedDateTime type that could be parameterized by the
timezone itself so that could be enforced via type parameter.

Also fixes #48. cc: @oxinabox, @kcajf, @omus

Implements #17. We now convert all Timestamp objects to ZonedDateTime
via auto-conversion (can be turned off by `convert=false`). The one
piece of awkwardness here is that it is currently assumed that with a
`Vector{ZonedDateTime}`, it is assumed that each element will have the
same timezone. Probably ok in practice, but frankly it'd be nicer if
there was a `ZonedDateTime` type that could be parameterized by the
timezone itself so that could be enforced via type parameter.
@codecov
Copy link

codecov bot commented Oct 24, 2020

Codecov Report

Merging #50 into master will increase coverage by 0.08%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #50      +/-   ##
==========================================
+ Coverage   83.29%   83.38%   +0.08%     
==========================================
  Files          23       23              
  Lines        2640     2642       +2     
==========================================
+ Hits         2199     2203       +4     
+ Misses        441      439       -2     
Impacted Files Coverage Δ
src/Arrow.jl 52.38% <ø> (ø)
src/arraytypes/arraytypes.jl 87.95% <100.00%> (+0.14%) ⬆️
src/eltypes.jl 83.62% <100.00%> (+0.93%) ⬆️

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 b109c49...b586494. Read the comment docs.

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.

How to unpack a Arrow.Timestamp{Arrow.Flatbuf.TimeUnitModule.MILLISECOND,:UTC}?
1 participant