Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions