You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Wes McKinney (JIRA)" <ji...@apache.org> on 2019/06/21 14:02:00 UTC

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

     [ https://issues.apache.org/jira/browse/ARROW-5654?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wes McKinney resolved ARROW-5654.
---------------------------------
    Resolution: Fixed

Issue resolved by pull request 4636
[https://github.com/apache/arrow/pull/4636]

> [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
>            Assignee: Wes McKinney
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 0.14.0
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> 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)