-
Notifications
You must be signed in to change notification settings - Fork 3.9k
ARROW-1484: [C++/Python] Implement casts between date, time, timestamp units #1245
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
Conversation
Change-Id: Ib64bf5d57bfec374d7b7e6d2fd5954a73b471a56
Change-Id: I71d6783acf208ec4b66f91ff6f5a857ac19b80ac
Change-Id: I1defe0410b2aada7eebf77f4e61ea34634836498
Change-Id: Ic3dd593eb8876f4171cdd2737d022b3731a0dae9
Change-Id: I6852192011b257119bc5c8832607f4d9ba191073
Change-Id: Ied9180ef02a6835662911faabed70e986729ec86
Change-Id: Id4613af068fc31371ac530920f2938d9a4231416
Change-Id: Iedc2f14ec80146fa808c9935368f266cb06138a5
Change-Id: I7a248251372c4cb86871b4c569f064de4c250670
| vector<int64_t> v8 = {0, 100123, 200456, 1123, 2456}; | ||
| vector<int64_t> e8 = {0, 100, 200, 1, 2}; | ||
|
|
||
| options.allow_time_truncate = true; |
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.
Does this option need to be set in pyarrow to prevent an error when truncating?
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.
Thanks for catching. I'll make safe=True set this option http://arrow.apache.org/docs/python/generated/pyarrow.lib.Array.html#pyarrow.lib.Array.cast
BryanCutler
left a comment
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.
+1 LGTM, thanks!
Change-Id: Ie55185196ac7d417ad31892eae14e28d0cab516f
Several JIRAs here that made sense to tackle together:
This also fixes bugs relating to ignoring the offset in sliced arrays in some of the cast kernel implementations.
cc @BryanCutler @xhochy @cpcloud