ARROW-11776: [Java][Dataset] Support writing to files within dataset scanner via JNI #10108
ARROW-11776: [Java][Dataset] Support writing to files within dataset scanner via JNI #10108zhztheplayer wants to merge 2 commits intoapache:masterfrom
Conversation
|
Thanks for opening a pull request! If this is not a minor PR. Could you open an issue for this pull request on JIRA? https://issues.apache.org/jira/browse/ARROW Opening JIRAs ahead of time contributes to the Openness of the Apache Arrow project. Then could you also rename pull request title in the following format? or See also: |
b099a13 to
056dd8b
Compare
056dd8b to
c9eee12
Compare
cpp/src/jni/dataset/jni_util.cc
Outdated
| std::vector<std::shared_ptr<Buffer>> buffers; | ||
| for (const auto& buffer : array_data->buffers) { | ||
| buffers.push_back(buffer); | ||
| } |
There was a problem hiding this comment.
seems like this loop and the loop below could be combinded.
| } | ||
|
|
||
| arrow::Status ReservationListenableMemoryPool::Allocate(int64_t size, uint8_t** out) { | ||
| Status ReservationListenableMemoryPool::Allocate(int64_t size, uint8_t** out) { |
There was a problem hiding this comment.
mixing style changes like this with new code makes reviews harder, please try to avoid large scale changes like this in the future.
There was a problem hiding this comment.
Thanks for the suggestion.
| @@ -0,0 +1,55 @@ | |||
| // Licensed to the Apache Software Foundation (ASF) under one | |||
There was a problem hiding this comment.
why are we using protos for this information?
There was a problem hiding this comment.
In particular this for the most part looks like it replicates data already defined in flatbuffers.
| checkParquetReadResult(schema, writeSupport.getWrittenRecords(), datum); | ||
|
|
||
| AutoCloseables.close(datum); | ||
| AutoCloseables.close(factory); |
There was a problem hiding this comment.
combine this line with the previous? close can take multiple parameters i believe.
There was a problem hiding this comment.
They are not able to be combined directly. The first line calls code
second line calls
|
Hi @emkornfield (and anyone who has been reviewing), sorry I made a mistake of deleting the original branch and the PR is now not able to reopen. Now I can only open a new PR: #10201. Sorry again for that. |
https://issues.apache.org/jira/browse/ARROW-11776