Skip to content

[Java] UnionMapWriter and ComplexCopier don't support TimeStamp*TZ map keys and values #1530

Done

Description

@jbonofre

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 UnionMapWriter fails to write fixed size binary #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.

Activity

  1. added
    Type: bug
    on Nov 28, 2026
  2. added this to the 20.1.0 milestone on Nov 28, 2026
  3. added a commit that references this issue on Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions