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

[Python] Allow creation of month_day_nano interval from tuple

    XMLWordPrintableJSON

Details

    Description

      This should ideally be allowed but isn't:

      >>> a = pa.array([(3, 20, 100)], type=pa.month_day_nano_interval())
      Traceback (most recent call last):
        File "<ipython-input-5-65b4e8d8ba5c>", line 1, in <module>
          a = pa.array([(3, 20, 100)], type=pa.month_day_nano_interval())
        File "pyarrow/array.pxi", line 315, in pyarrow.lib.array
          return _sequence_to_array(obj, mask, size, type, pool, c_from_pandas)
        File "pyarrow/array.pxi", line 39, in pyarrow.lib._sequence_to_array
          chunked = GetResultValue(
        File "pyarrow/error.pxi", line 143, in pyarrow.lib.pyarrow_internal_check_status
          return check_status(status)
        File "pyarrow/error.pxi", line 122, in pyarrow.lib.check_status
          raise ArrowTypeError(message)
      ArrowTypeError: No temporal attributes found on object.
      

      Attachments

        Issue Links

          Activity

            People

              emkornfield Micah Kornfield
              apitrou Antoine Pitrou
              Votes:
              0 Vote for this issue
              Watchers:
              2 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 10m
                  2h 10m