Skip to content

[Java][Vector]UnionListWriter is unable write some types #35352

@henrymai

Description

@henrymai

Describe the bug, including details regarding any error messages, version, and platform.

UnionListWriter ends up throwing an exception when trying to use the UnionListWriter as follows:

[...]

org.apache.arrow.vector.complex.writer.FieldWriter writer = vector.getWriter();
writer.allocate();
writer.startList();
writer.timeStampMilliTZ().writeTimeStampMilliTZ(1000L);
// ^ exception thrown here:
// IllegalArgument You tried to write a TimeStampMilliTZ type when you are using a ValueWriter of type UnionListWriter.

[...]

This also occurs for types FixedSizeBinary and Duration.

Component(s)

Java

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions