Fabien created ARROW-15795:
------------------------------
Summary: Add a getter for the timeZone in TimeStampMicroTZVector
Key: ARROW-15795
URL: https://issues.apache.org/jira/browse/ARROW-15795
Project: Apache Arrow
Issue Type: Improvement
Components: Java
Affects Versions: 7.0.0
Reporter: Fabien
TimeStampMicroTZVector is a vector containing a timezone.
However when reading values from this vector there is no clean way to get this
time zone.
The current way to get it is:
{code:java}
((ArrowType.Timestamp) vector.getField().getFieldType().getType()).getTimezone()
{code}
But the vector has the timezone as a private field:
https://github.com/apache/arrow/blob/fa78edc8b08fa022e34db8b8fdeef4df41de703f/java/vector/src/main/java/org/apache/arrow/vector/TimeStampMicroTZVector.java#L41
so adding a getter is easy and would really simplify reading the values in this
vector.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)