You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Joris Van den Bossche (JIRA)" <ji...@apache.org> on 2019/06/19 18:09:00 UTC

[jira] [Created] (ARROW-5654) [C++] ChunkedArray should validate the types of the arrays

Joris Van den Bossche created ARROW-5654:
--------------------------------------------

             Summary: [C++] ChunkedArray should validate the types of the arrays
                 Key: ARROW-5654
                 URL: https://issues.apache.org/jira/browse/ARROW-5654
             Project: Apache Arrow
          Issue Type: Bug
          Components: C++, Python
            Reporter: Joris Van den Bossche
             Fix For: 1.0.0


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

{code:python}
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"
  ]
]
{code}

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



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)