Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-15795

Add a getter for the timeZone in TimeStampMicroTZVector

    XMLWordPrintableJSON

Details

    Description

      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:

      ((ArrowType.Timestamp) vector.getField().getFieldType().getType()).getTimezone()
      

      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.

      Attachments

        Issue Links

          Activity

            People

              fabiche Fabien
              fabiche Fabien
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h
                  2h