Ben Schmidt created ARROW-16300:
-----------------------------------

             Summary: pc.sort_indices with nonexistent column throws malloc 
error
                 Key: ARROW-16300
                 URL: https://issues.apache.org/jira/browse/ARROW-16300
             Project: Apache Arrow
          Issue Type: Bug
          Components: C++, Python
    Affects Versions: 7.0.0
         Environment: OS X 11.6.1 MacBook Pro (13-inch, M1, 2020)
Python 3.10.0
pyarrow 7.0.0

            Reporter: Ben Schmidt


 

When calling pa.compute.sort_indices using a column name that is not in the 
table to be sorted, I get a malloc error that brings down the whole process, 
rather than a recoverable error.

Example:
{code:java}
import pyarrow as pa
from pyarrow import compute as pc
tb = pa.table({'foo': [1, 2, 3]})
pc.sort_indices(tb, [('foo', 'ascending'), ('bar', 'ascending')]) {code}
results in:
{code:java}
python(11346,0x1046cfd40) malloc: *** error for object 0x16bdae458: pointer 
being freed was not allocated
python(11346,0x1046cfd40) malloc: *** set a breakpoint in malloc_error_break to 
debug {code}
 

 



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to