Closed sadikovi closed 5 years ago
Relates to #148
Files with Coverage Reduction | New Missed Lines | % | ||
---|---|---|---|---|
record/api.rs | 12 | 97.27% | ||
<!-- | Total: | 12 | --> |
Totals | |
---|---|
Change from base Build 650: | 0.01% |
Covered Lines: | 12504 |
Relevant Lines: | 13087 |
Thanks!
I don’t know, actually. I am thinking if it could be easier to have a library that simply copies Java code for Date and a Calendar, since we only need conversions.
I thought about printing the “unknown” string instead of panicking, but decided to have an explicit error instead. On Sun, 4 Nov 2018 at 6:50 PM, Chao Sun notifications@github.com wrote:
@sunchao approved this pull request.
LGTM. It'd be best if chrono can be fixed to display the timestamps before 01/01/1970, but not sure how hard it is...
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sunchao/parquet-rs/pull/184#pullrequestreview-171372140, or mute the thread https://github.com/notifications/unsubscribe-auth/AHbY3iwQyd9QCosSQVqBdlhgY9arwtF3ks5uryjygaJpZM4YNXGd .
Merged. Thanks @sadikovi .
I don’t know, actually. I am thinking if it could be easier to have a library that simply copies Java code for Date and a Calendar, since we only need conversions.
Yes I feel what we need is much simpler than chrono offers. Feel free to log a ticket. :)
This PR modifies the code to remove overflow error and instead panic with user friendly message.
Right now, due to limitations of chrono library we cannot convert negative timestamps into string dates, and just overall handle negative timestamps, therefore we would panic with an appropriate message.