You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "David Li (Jira)" <ji...@apache.org> on 2021/06/04 14:37:00 UTC

[jira] [Created] (ARROW-12969) [C++] match_substring doesn't match empty needle to empty haystack

David Li created ARROW-12969:
--------------------------------

             Summary: [C++] match_substring doesn't match empty needle to empty haystack
                 Key: ARROW-12969
                 URL: https://issues.apache.org/jira/browse/ARROW-12969
             Project: Apache Arrow
          Issue Type: Bug
          Components: C++
    Affects Versions: 4.0.1, 4.0.0
            Reporter: David Li
            Assignee: David Li
             Fix For: 5.0.0


{noformat}
>>> import pyarrow as pa, pyarrow.compute as pc
>>> pa.__version__
'4.0.0'
>>> pc.match_substring(["", "a"], "")
<pyarrow.lib.BooleanArray object at 0x7fd8a77888e0>
[
  false,
  true
]
>>> "" in ""
True {noformat}
Also confirmed with PyArrow 4.0.1.



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