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

[C++] Cast between fixed size list type and variable size list

    XMLWordPrintableJSON

Details

    Description

      Casting from fixed size list to variable size list could be possible, I think, but currently doesn't work:

      >>> fixed_size = pa.array([[1, 2], [3, 4]], type=pa.list_(pa.int64(), 2))
      >>> fixed_size.cast(pa.list_(pa.int64()))
      ...
      ArrowNotImplementedError: Unsupported cast from fixed_size_list<item: int64>[2] to list using function cast_list
      

      And in principle, a cast the other way around could also be possible if it is checked that each list has the correct length.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jorisvandenbossche Joris Van den Bossche
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

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