jbonofre opened a new issue, #1530: URL: https://github.com/apache/arrow-java/issues/1530
### Describe the bug, including details regarding any error messages, version, and platform. Follow-up to #551 (#1414). `ComplexCopier` now copies lists and structs of `TimeStampSecTZ`, `TimeStampMilliTZ`, `TimeStampMicroTZ` and `TimeStampNanoTZ`, but a map key or value of these types still fails with `UnsupportedOperationException: TIMESTAMPNANOTZ`. The cause is in `UnionMapWriter`. It only overrides the key and value getters for types without type parameters, plus `decimal`, `decimal256` and `fixedSizeBinary`. So `writer.value().timeStampNanoTZ()` falls through to `UnionListWriter.timeStampNanoTZ()`, which returns the map writer itself: - `writer.value().timeStampNanoTZ().write(holder)` writes into the map's entries vector instead of the `value` field, and the entries vector is promoted to a union. - `writer.value().timeStampNanoTZ().writeNull()` nulls the whole map entry instead of the value, as in #586 for `fixedSizeBinary`. Expected: after `key()` or `value()`, the TZ getters return the writer of the `key` or `value` field, and `ComplexCopier` copies TZ map keys and values with their timezone. -- 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]
