ARROW-420: Align DATE type with Java implementation#238
ARROW-420: Align DATE type with Java implementation#238xhochy wants to merge 4 commits intoapache:masterfrom
Conversation
Change-Id: I2dc9e848f5bed9d717477792459dde6ea839b341
|
Things to do:
|
|
Why would we need more than |
|
See the ticket https://issues.apache.org/jira/browse/ARROW-413 The way DATE is implemented in Java is: "Here's a millisecond timestamp but please only look at the days". |
Change-Id: I6627e7be236b669600301ff6f073d79cef0f3ed0
Change-Id: Id38076d044006da7bfcf939832f82b345c7ca03b
Change-Id: Ice6cc2a8bf082edf20ab7950fae4bd10114f002e
| const PyObject** objects = reinterpret_cast<const PyObject**>(PyArray_DATA(arr_)); | ||
| { | ||
| PyAcquireGIL lock; | ||
| PyDateTime_IMPORT; |
There was a problem hiding this comment.
Two things that bother me:
- I'd like to make this import only once for
libpyarrowbut I'm unsure how as it requires the GIL. - We don't seem to hold the GIL here but the functions called below suggest that we should.
There was a problem hiding this comment.
You're right, we should acquire the GIL below before using any of the Py* methods. I'll create a JIRA about going through this module completely and making sure we're releasing the GIL on the Cython side and re-acquiring it in the appropriate places here
|
Ready for review. As |
wesm
left a comment
There was a problem hiding this comment.
+1, creating follow up JIRA about GIL questions
| const PyObject** objects = reinterpret_cast<const PyObject**>(PyArray_DATA(arr_)); | ||
| { | ||
| PyAcquireGIL lock; | ||
| PyDateTime_IMPORT; |
There was a problem hiding this comment.
You're right, we should acquire the GIL below before using any of the Py* methods. I'll create a JIRA about going through this module completely and making sure we're releasing the GIL on the Cython side and re-acquiring it in the appropriate places here
Author: Korn, Uwe <Uwe.Korn@blue-yonder.com> Closes apache#238 from xhochy/PARQUET-867 and squashes the following commits: e9f79d3 [Korn, Uwe] Remove alt-space from code 5fe849d [Korn, Uwe] Address review comments fa7a1e0 [Korn, Uwe] Use Slice instead of offset,length d68e9db [Korn, Uwe] Update Arrow hash 61e3ac0 [Korn, Uwe] Use references instead of pointers d3c4ec6 [Korn, Uwe] Remove offset,length from public interface ec0577f [Korn, Uwe] PARQUET-867: Support writing sliced Arrow arrays Change-Id: Ie00a05d627200e6f4919b2c2aaa3dae176a0b7c2
No description provided.