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

[C++] ChunkedArray should validate the types of the arrays

    XMLWordPrintableJSON

    Details

      Description

      Example from Python, showing that you can currently create a ChunkedArray with incompatible types:

      In [8]: a1 = pa.array([1, 2])
      
      In [9]: a2 = pa.array(['a', 'b'])
      
      In [10]: pa.chunked_array([a1, a2])
      Out[10]:
      <pyarrow.lib.ChunkedArray object at 0x7fca50704d20>
      [
        [
          1,
          2
        ],
        [
          "a",
          "b"
        ]
      ]
      

      So a ChunkedArray::Validate can be implemented (and which should probably be called by default upon creation?)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                wesm Wes McKinney
                Reporter:
                jorisvandenbossche Joris Van den Bossche
              • 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 - 40m
                  40m