Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-10578

[C++] Comparison kernels crashing for string array with null string scalar

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0
    • C++

    Description

      Comparing a string array with a string scalar works:

      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
      ]
      

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

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

      (and not even debug messages ..)

      Attachments

        Issue Links

          Activity

            People

              klykov Kirill Lykov
              jorisvandenbossche Joris Van den Bossche
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h