henriquejsza commented on PR #1414: URL: https://github.com/apache/arrow-java/pull/1414#issuecomment-6966162805
@jbonofre thanks for the review, you're right on both. I dropped the TZ case from the map lookup, so maps keep throwing for now. The map test builds the source on the vectors and asserts the `UnsupportedOperationException`. While at it I noticed the copy used the deprecated `writeTimeStamp*TZ(long)`, which falls back to UTC when the target child doesn't exist yet. It now writes a `TimeStamp*TZHolder` with the reader's timezone, and the list/struct tests use `America/Sao_Paulo` with empty targets and `vectorEquals`. The struct lookup also throws a clear exception when the field type isn't a `Timestamp` (e.g. a union-backed child) instead of the NPE from `timeStampNanoTZ(name)`. Rebased on main to fix the conflict. Happy to open a follow-up issue for the `UnionMapWriter` TZ overrides. -- 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]
