You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Antoine Pitrou (Jira)" <ji...@apache.org> on 2021/11/24 09:49:00 UTC

[jira] [Updated] (ARROW-13412) [C++] and_kleene, or_kleene return null on Scalar and multi-chunk ChunkedArray

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

Antoine Pitrou updated ARROW-13412:
-----------------------------------
    Fix Version/s: 7.0.0

> [C++] and_kleene, or_kleene return null on Scalar and multi-chunk ChunkedArray
> ------------------------------------------------------------------------------
>
>                 Key: ARROW-13412
>                 URL: https://issues.apache.org/jira/browse/ARROW-13412
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C++
>    Affects Versions: 4.0.1
>            Reporter: Ian Cook
>            Assignee: Antoine Pitrou
>            Priority: Major
>             Fix For: 7.0.0
>
>
> When you pass a Scalar and a ChunkedArray with 2+ chunks to the {{or_kleene}} or {{and_kleene}} kernel, it returns all {{null}} in the result.
> Demonstrating this with the R bindings:
> {code:java}
> > call_function("or_kleene", Scalar$create(TRUE), ChunkedArray$create(c(T,F,T), c(F,T,F)))
> ChunkedArray
> [
>   [
>     null,
>     null,
>     null,
>     null,
>     null,
>     null
>   ]
> ]{code}
> Compare to the following which all work as one would expect:
> Scalar and ChunkedArray with only one chunk (works as expected):
> {code:java}
> > call_function("or_kleene", Scalar$create(TRUE), ChunkedArray$create(c(T,F,T)))
> ChunkedArray
> [
>   [
>     true,
>     true,
>     true
>   ]
> ]
> {code}
> Scalar and Array (works as expected):
> {code:java}
> > call_function("or_kleene", Scalar$create(TRUE), Array$create(c(T,F,T)))
> Array
> <bool>
> [
>   true,
>   true,
>   true
> ]
> {code}
> Two ChunkedArrays (works as expected):
> {code:java}
> > call_function("or_kleene", ChunkedArray$create(c(T,NA,T), c(F,F,T)), ChunkedArray$create(c(T,NA,T), c(F,F,T)))
> ChunkedArray
> [
>   [
>     true,
>     null,
>     true,
>     false,
>     false,
>     true
>   ]
> ]
> {code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)