You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Java] UnionMapWriter and ComplexCopier don't support TimeStamp*TZ map keys and values #1530
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.
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
apacheGH-1530: [Java] Support TimeStamp*TZ map keys and values in Com…