-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
ARROW-17940: [Java][Gandiva] Implement Reserve for JavaBuffer #14323
ARROW-17940: [Java][Gandiva] Implement Reserve for JavaBuffer #14323
Conversation
|
This PR is based on changes from #14310 so will need to wait for that to merge. |
@github-actions crossbow submit java-jars |
Revision: 3b1ffe4 Submitted crossbow builds: ursacomputing/crossbow @ actions-d680acd16f
|
@@ -15,6 +15,7 @@ | |||
// specific language governing permissions and limitations | |||
// under the License. | |||
|
|||
#include <arrow/status.h> |
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.
Can you move this include with the other Arrow includes below?
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.
done
return Status::NotImplemented("shrink not implemented"); | ||
} | ||
|
||
if (ARROW_PREDICT_TRUE(new_size < capacity())) { |
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.
if (ARROW_PREDICT_TRUE(new_size < capacity())) { | |
if (ARROW_PREDICT_TRUE(new_size <= capacity())) { |
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.
done
capacity_ = ret_capacity; | ||
return Status::OK(); | ||
} | ||
|
||
Status JavaResizableBuffer::Resize(const int64_t new_size, bool shrink_to_fit) { | ||
if (shrink_to_fit == 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.
I suppose we don't need to implement this because it's not used currently?
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.
Yes, it's not needed by gandiva
3b1ffe4
to
d90fcf0
Compare
@github-actions crossbow submit java-jars |
Revision: d90fcf0 Submitted crossbow builds: ursacomputing/crossbow @ actions-73726f002e
|
d90fcf0
to
34c7061
Compare
@github-actions crossbow submit java-jars |
Revision: 34c7061 Submitted crossbow builds: ursacomputing/crossbow @ actions-2a8cd8ba9f
|
Benchmark runs are scheduled for baseline = e21ae28 and contender = 49a53d2. 49a53d2 is a master commit associated with this PR. Results will be available as each benchmark for each run completes. |
['Python', 'R'] benchmarks have high level of regressions. |
See previous discussions at #14261