pribor opened a new issue, #35615: URL: https://github.com/apache/arrow/issues/35615
### Describe the bug, including details regarding any error messages, version, and platform. The current behavior of VectorSchemaRoot slice isn't consistent. If the slice range includes the whole VectorSchemaRoot it is returned without increasing the ref count. e.g. ``` VectorSchemaRoot root = new VectorSchemaRoot(vectors); VectorSchemaRoot slice = root.slice(0, root.getRowCount); slice.close() // the original root is released vs VectorSchemaRoot root = new VectorSchemaRoot(vectors); VectorSchemaRoot slice = root.slice(0, root.getRowCount - 1); slice.close() // the original root remains as it is ``` ### Component(s) Java -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
