Title: Avoid closing/freeing struct-like object instances on import · Issue #765 · apache/arrow-java · GitHub
Open Graph Title: Avoid closing/freeing struct-like object instances on import · Issue #765 · apache/arrow-java
X Title: Avoid closing/freeing struct-like object instances on import · Issue #765 · apache/arrow-java
Description: Describe the enhancement requested Currently the various import methods in org.apache.arrow.c.Data call close on the BaseStruct arguments they receive as parameter. This prevents callers from reusing these objects multiple times. Since t...
Open Graph Description: Describe the enhancement requested Currently the various import methods in org.apache.arrow.c.Data call close on the BaseStruct arguments they receive as parameter. This prevents callers from reusi...
X Description: Describe the enhancement requested Currently the various import methods in org.apache.arrow.c.Data call close on the BaseStruct arguments they receive as parameter. This prevents callers from reusi...
Opengraph URL: https://github.com/apache/arrow-java/issues/765
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Avoid closing/freeing struct-like object instances on import","articleBody":"### Describe the enhancement requested\n\nCurrently the various import methods in `org.apache.arrow.c.Data` call `close` on the `BaseStruct` arguments they receive as parameter. This prevents callers from reusing these objects multiple times. Since the caller needs to allocate these objects themselves, it seems like it would be more consistent to also expect the caller to free them. This works well in combination with try-with-resources.\n\nSee related discussion #763.","author":{"url":"https://github.com/pepijnve","@type":"Person","name":"pepijnve"},"datePublished":"2025-05-23T06:46:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/765/arrow-java/issues/765"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4c640803-f699-af6f-1835-c9b58f12a191 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9DEA:6F3CF:324BA99:468DEBA:6A4F7BCE |
| html-safe-nonce | 54ee03764c862e5554be0309b739045d422929237e10c1ee4b3adc0816e27a3f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5REVBOjZGM0NGOjMyNEJBOTk6NDY4REVCQTo2QTRGN0JDRSIsInZpc2l0b3JfaWQiOiI0NTczNzQzODA2NjcxNzE1Mjc4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 267c517c1992cd4d81584ca9ad2e5d432ebef954a7c04dbbe9ee4de9a762b622 |
| hovercard-subject-tag | issue:3085366746 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/apache/arrow-java/765/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c70aaa2290a0c433f86f7c097e4d17b0eb4abcc78aa4819643e59ae8ebaa40f2/apache/arrow-java/issues/765 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c70aaa2290a0c433f86f7c097e4d17b0eb4abcc78aa4819643e59ae8ebaa40f2/apache/arrow-java/issues/765 |
| og:image:alt | Describe the enhancement requested Currently the various import methods in org.apache.arrow.c.Data call close on the BaseStruct arguments they receive as parameter. This prevents callers from reusi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pepijnve |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| turbo-cache-control | no-preview |
| go-import | github.com/apache/arrow-java git https://github.com/apache/arrow-java.git |
| octolytics-dimension-user_id | 47359 |
| octolytics-dimension-user_login | apache |
| octolytics-dimension-repository_id | 893682219 |
| octolytics-dimension-repository_nwo | apache/arrow-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 893682219 |
| octolytics-dimension-repository_network_root_nwo | apache/arrow-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4b249b445842943ed31549e027f57a8ade9881ed |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width