Title: UnionMapWriter fails to write fixed size binary · Issue #586 · apache/arrow-java · GitHub
Open Graph Title: UnionMapWriter fails to write fixed size binary · Issue #586 · apache/arrow-java
X Title: UnionMapWriter fails to write fixed size binary · Issue #586 · apache/arrow-java
Description: A UnionMapWriter will null out the entire map struct entry instead of setting the value to null: childWriter.value().fixedSizeBinary().writeNull(); Actually hits NullableStructWriter#writeNull whereas UnionMapWriter should override write...
Open Graph Description: A UnionMapWriter will null out the entire map struct entry instead of setting the value to null: childWriter.value().fixedSizeBinary().writeNull(); Actually hits NullableStructWriter#writeNull wher...
X Description: A UnionMapWriter will null out the entire map struct entry instead of setting the value to null: childWriter.value().fixedSizeBinary().writeNull(); Actually hits NullableStructWriter#writeNull wher...
Opengraph URL: https://github.com/apache/arrow-java/issues/586
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"UnionMapWriter fails to write fixed size binary","articleBody":"A UnionMapWriter will null out the entire map struct entry instead of setting the value to null:\n```\n childWriter.value().fixedSizeBinary().writeNull();\n```\n\nActually hits `NullableStructWriter#writeNull` whereas UnionMapWriter should override `writeNull` and do a switch on the mode (though I'm not certain if null keys are valid).\n\n\nEDIT:\nActually, the issue is that `fixedSizeBinary` needs to be overriden! Very frustrating, but this call is not overridden and is instead invoking `UnionListWriter#fixedSizeBinary()`:\n\n```java\n @Override\n public FixedSizeBinaryWriter fixedSizeBinary() {\n return this;\n }\n```\n\nThe real impl needs to override like so:\n```java\n @Override\n public FixedSizeBinaryWriter fixedSizeBinary() {\n switch (mode) {\n case KEY:\n return entryWriter.fixedSizeBinary(MapVector.KEY_NAME);\n case VALUE:\n return entryWriter.fixedSizeBinary(MapVector.VALUE_NAME);\n default:\n return this;\n }\n }\n```","author":{"url":"https://github.com/nbauernfeind","@type":"Person","name":"nbauernfeind"},"datePublished":"2025-02-04T18:24:25.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/586/arrow-java/issues/586"}
| 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:c1cfacb8-d98b-43e7-0b8e-a9697bbcd6e0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C922:16195D:34CB529:49C4D62:6A4F7C8F |
| html-safe-nonce | 08791943281467707f9540d1a4e3506947dbd009b986b9c5b64dbaf7db7ea669 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOTIyOjE2MTk1RDozNENCNTI5OjQ5QzRENjI6NkE0RjdDOEYiLCJ2aXNpdG9yX2lkIjoiODA0MTE2MzIxNjQ2NDYwODM5OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9fa2f95c299d1e65cdcca9f7aa834594226ec91b1224e93ed26f8d96fd5e5e13 |
| hovercard-subject-tag | issue:2830992686 |
| 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/586/issue_layout |
| twitter:image | https://opengraph.githubassets.com/18097453fa1419b4cd4359c52da2a70f257f3c29ff56ded90ab0fd19b37ad1b7/apache/arrow-java/issues/586 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/18097453fa1419b4cd4359c52da2a70f257f3c29ff56ded90ab0fd19b37ad1b7/apache/arrow-java/issues/586 |
| og:image:alt | A UnionMapWriter will null out the entire map struct entry instead of setting the value to null: childWriter.value().fixedSizeBinary().writeNull(); Actually hits NullableStructWriter#writeNull wher... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nbauernfeind |
| 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