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/20 16:30:00 UTC
[jira] [Assigned] (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 reassigned ARROW-5654:
-----------------------------------
Assignee: Wes McKinney
> [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
> Fix For: 0.14.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)