-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
[C++][Java] Can I transfer Schema objects between languages without Arrow Flight? #39792
Comments
cc @lidavidm |
The byte array I got through the serializeAsMessage interface is |
This method will not work. Use MessageSerializer. arrow/cpp/src/arrow/ipc/reader.h Lines 514 to 525 in 667e917
|
jduo:37704-java-schema-tobytearray
|
The byte array I got through MessageSerializer is |
Use BufferReader. |
Has this issue been resolved or need further information? |
Sorry, it has been resolved. I'll close this issue. |
Describe the usage question you have. Please include as many useful details as possible.
I'm using arrow 9.0, and I've now passed the byte array from the Schema#toByteArray method in Java to the C++ side, but I didn't find a way to build an arrow::schema object from the byte array in arrow::Schema. According to the previous issue 37704, the toByteArray method has been discarded and changed to the Schema#serializeAsMessage method.
So my question remains, can I construct an arrow::schema object on the C++ side through a byte[] array for subsequent RecordBatch construction?
Is there documentation to guide me on what to do? Thanks~
In addition, I'm using Graalvm's native-image capabilities to implement data transfer between C++ and Java.
Component(s)
C++, FlightRPC, Java
The text was updated successfully, but these errors were encountered: