-
Notifications
You must be signed in to change notification settings - Fork 4k
GH-14909: [Java] Prevent potential memory leak of ListSubfieldEncoder and StructSubfieldEncoder #14910
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
Conversation
|
Thanks for opening a pull request! If this is not a minor PR. Could you open an issue for this pull request on GitHub? https://github.com/apache/arrow/issues/new/choose Opening GitHub issues ahead of time contributes to the Openness of the Apache Arrow project. Then could you also rename the pull request title in the following format? or In the case of old issues on JIRA the title also supports: See also: |
|
|
|
|
| try (final ListVector encoded = (ListVector) encoder.encodeListSubField(vector)) { | ||
| fail("There should be an exception when encoding"); | ||
| } catch (Exception e) { | ||
| assertEquals("Dictionary encoding not defined for value:" + 20, e.getMessage()); |
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.
nit: why concat here, when the string is fully hardcoded below?
| decoded.close(); | ||
| throw e; |
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.
Perhaps use AutoCloseables#close(Throwable, AutoCloseable...) for this kind of thing?
|
Benchmark runs are scheduled for baseline = 6f86fce and contender = c7eddff. c7eddff is a master commit associated with this PR. Results will be available as each benchmark for each run completes. |
…ncoder and StructSubfieldEncoder (apache#14910) * Closes: apache#14909 Authored-by: 郭峰 <[email protected]> Signed-off-by: David Li <[email protected]>
Uh oh!
There was an error while loading. Please reload this page.