You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Kirill Lykov (Jira)" <ji...@apache.org> on 2020/12/31 14:29:00 UTC

[jira] [Updated] (ARROW-10578) [C++] Comparison kernels crashing for string array with null string scalar

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

Kirill Lykov updated ARROW-10578:
---------------------------------
    Description: 
Comparing a string array with a string scalar works:
{code:java}
In [1]: import pyarrow.compute as pc

In [2]: pc.equal(pa.array(["a", None, "b"]), pa.scalar("a", type="string"))
Out[2]: 
<pyarrow.lib.BooleanArray object at 0x7f38d56e23a8>
[
  true,
  null,
  false
]
{code}
but if the scalar is a null (from the proper string type), it crashes:
{code:java}
In [4]: pc.equal(pa.array(["a", None, "b"]), pa.scalar(None, type="string"))
Segmentation fault (core dumped)
{code}
(and not even debug messages ..)

  was:
Comparing a string array with a string scalar works:

{code}
In [1]: import pyarrow.compute as pc

In [2]: pc.equal(pa.array(["a", None, "b"]), pa.scalar("a", type="string")
Out[2]: 
<pyarrow.lib.BooleanArray object at 0x7f38d56e23a8>
[
  true,
  null,
  false
]
{code}

but if the scalar is a null (from the proper string type), it crashes:

{code}
In [4]: pc.equal(pa.array(["a", None, "b"]), pa.scalar(None, type="string"))
Segmentation fault (core dumped)
{code}

(and not even debug messages ..)


> [C++] Comparison kernels crashing for string array with null string scalar
> --------------------------------------------------------------------------
>
>                 Key: ARROW-10578
>                 URL: https://issues.apache.org/jira/browse/ARROW-10578
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C++
>            Reporter: Joris Van den Bossche
>            Assignee: Kirill Lykov
>            Priority: Major
>
> Comparing a string array with a string scalar works:
> {code:java}
> In [1]: import pyarrow.compute as pc
> In [2]: pc.equal(pa.array(["a", None, "b"]), pa.scalar("a", type="string"))
> Out[2]: 
> <pyarrow.lib.BooleanArray object at 0x7f38d56e23a8>
> [
>   true,
>   null,
>   false
> ]
> {code}
> but if the scalar is a null (from the proper string type), it crashes:
> {code:java}
> In [4]: pc.equal(pa.array(["a", None, "b"]), pa.scalar(None, type="string"))
> Segmentation fault (core dumped)
> {code}
> (and not even debug messages ..)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)