[
https://issues.apache.org/jira/browse/ARROW-15194?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eduardo Ponce updated ARROW-15194:
----------------------------------
Description: ChunkedArray constructors are inconsistent wrt to validating
if input is empty and has an omitted type. The constructors can be merged into
a single one via function overloading and include such validation. Constructors
do not validate same type chunks for performance reasons, but this validation
is performed via {{ChunkedArray::Make()}}. (was: ChunkedArray constructors are
validated in terms of size and type of the input Arrays, but the [constructor
of the form {{ChunkedArray(arrays,
type)}}|https://github.com/apache/arrow/blob/65aa527707d7067bff833bd744ebfd97f1c2c909/cpp/src/arrow/chunked_array.cc#L57-L65]
does not performs these checks, thus allowing an empty object with omitted
type to be created. Need to add the same checks as the other constructors have.)
> [C++] Combine ChunkedArray constructors
> ---------------------------------------
>
> Key: ARROW-15194
> URL: https://issues.apache.org/jira/browse/ARROW-15194
> Project: Apache Arrow
> Issue Type: Bug
> Components: C++
> Reporter: Eduardo Ponce
> Assignee: Eduardo Ponce
> Priority: Minor
> Labels: pull-request-available
> Fix For: 7.0.0
>
> Time Spent: 3h 40m
> Remaining Estimate: 0h
>
> ChunkedArray constructors are inconsistent wrt to validating if input is
> empty and has an omitted type. The constructors can be merged into a single
> one via function overloading and include such validation. Constructors do not
> validate same type chunks for performance reasons, but this validation is
> performed via {{ChunkedArray::Make()}}.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)