henrymai opened a new issue, #35352:
URL: https://github.com/apache/arrow/issues/35352

   ### 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


-- 
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]

Reply via email to