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 ArrowTypes.default methods and tests for dates #86

Merged
merged 1 commit into from
Dec 24, 2020
Merged

add ArrowTypes.default methods and tests for dates #86

merged 1 commit into from
Dec 24, 2020

Conversation

ericphanson
Copy link
Member

Fixes #84

The issue is that e.g. zero(Date) == Day(0) which is not a Date, so the ArrowTypes.default fallback gives the wrong type here. So I added fallbacks and tests.

I didn't really get how the tests are organized so I'm not sure I've added the tests in the right spot.

@codecov
Copy link

codecov bot commented Dec 23, 2020

Codecov Report

Merging #86 (40cc73b) into main (9932c1f) will increase coverage by 0.07%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #86      +/-   ##
==========================================
+ Coverage   83.52%   83.59%   +0.07%     
==========================================
  Files          23       23              
  Lines        2664     2670       +6     
==========================================
+ Hits         2225     2232       +7     
+ Misses        439      438       -1     
Impacted Files Coverage Δ
src/arraytypes/arraytypes.jl 88.88% <100.00%> (+0.51%) ⬆️
src/write.jl 96.92% <0.00%> (+0.01%) ⬆️
src/arrowtypes.jl 89.06% <0.00%> (+0.17%) ⬆️
src/arraytypes/struct.jl 85.07% <0.00%> (+1.49%) ⬆️

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 9932c1f...40cc73b. Read the comment docs.

Copy link
Member

@quinnj quinnj left a comment

Choose a reason for hiding this comment

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

Thanks! Great fix and thanks for adding the tests, they look great.

@quinnj quinnj merged commit f771c73 into apache:main Dec 24, 2020
@ericphanson ericphanson deleted the eph/fix-default-dates branch December 24, 2020 14:40
tanmaykm pushed a commit to tanmaykm/arrow-julia that referenced this pull request Apr 7, 2021
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.

writing column with missing / struct data errors
2 participants