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

[C++] Slice of FixedSizeList fails ValidateFull

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.0.1
    • 6.0.0
    • C++

    Description

      >>> arr = pa.array([["a", "b"], None, ["c", "d"]], pa.list_(pa.string(), 2))
      >>> arr.validate(full=True)
      >>> arr.slice(0, 1).validate(full=True)
      Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
        File "pyarrow/array.pxi", line 1219, in pyarrow.lib.Array.validate
        File "pyarrow/error.pxi", line 97, in pyarrow.lib.check_status
      pyarrow.lib.ArrowInvalid: Values length (6) is not equal to the length (1) multiplied by the value size (2)
      

      Came up while looking at ARROW-13222. I'm not sure of the check here is necessarily valid, given slicing; it should perhaps only check that values length >= length * value_size, not that they're exactly equal.

      Attachments

        Issue Links

          Activity

            People

              lidavidm David Li
              lidavidm David Li
              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 - 40m
                  40m