[WIP] Add arrow from javacpp (also upgrades javacpp version)#154
[WIP] Add arrow from javacpp (also upgrades javacpp version)#154agibsonccc wants to merge 35 commits intomasterfrom
Conversation
raver119
left a comment
There was a problem hiding this comment.
Generally LGTM, not sure about the need for additional datatypes in 1 method though.
| case DOUBLE: | ||
| Tensor.addTypeType(bufferBuilder,Type.Decimal); | ||
| break; | ||
| case HALF: |
There was a problem hiding this comment.
We probably want to add other types here as well: bfloat16, LONG and unsigned types?
There was a problem hiding this comment.
I don't think Arrow supports bfloat16. What do we do in those cases @AlexDBlack?
There was a problem hiding this comment.
Yeah, it only has float16/32/64, no bfloat16
https://arrow.apache.org/docs/metadata.html
In those cases we'll need to convert, probably to float32 in the case of BFloat16
There was a problem hiding this comment.
Ye, bfloat16 range is the same as float32. float16 range is way smaller.
There was a problem hiding this comment.
@raver119 what do you think here? This was the official arrow bindings. I can migrate this over to the new one. See ByteDecoArrowSerde now.
…arning4j into ag_javacpparrow
…arning4j into ag_javacpparrow
|
FYI, I've finally got the builds working for Arrow with Flight, Gandiva, ORC, Parquet, and Plasma enabled on Linux, Mac, and Windows, so it's now all part of the presets: bytedeco/javacpp-presets@3cf0ef7 |
|
It looks alright now. Although the methods to convert arrays could probably be made faster with calls to |
- couple of stubs for CudaDataBuffer methods Signed-off-by: raver119 <raver119@gmail.com>
Signed-off-by: raver119 <raver119@gmail.com>
Signed-off-by: raver119 <raver119@gmail.com>
Signed-off-by: raver119 <raver119@gmail.com>
Signed-off-by: raver119 <raver119@gmail.com>
|
I've fixed all ND4J tests for CPU and CUDA. DataVec side of things still looks incomplete. Tests should be testing something actually. |
raver119
left a comment
There was a problem hiding this comment.
DataVec side of things looks incomplete. Tests do not actually test anything, besides of the execution fact etc
|
Another thing to mention: datavec-arrow goes mad on JVM11 due to netty relying on Unsafe methods. |
What changes were proposed in this pull request?
Upgraded java cpp version (snapshots) for the arrow javacpp presets: https://github.com/bytedeco/javacpp-presets/tree/master/arrow
(Please fill in changes proposed in this fix)
How was this patch tested?
(Please explain how this patch was tested. E.g. unit tests, integration tests, manual tests)
Quick checklist
The following checklist helps ensure your PR is complete: