You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Ben Schmidt (Jira)" <ji...@apache.org> on 2022/04/26 03:14:00 UTC
[jira] [Resolved] (ARROW-16300) pc.sort_indices with nonexistent column throws malloc error
[ https://issues.apache.org/jira/browse/ARROW-16300?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ben Schmidt resolved ARROW-16300.
---------------------------------
Resolution: Fixed
> 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
> Priority: Minor
> Fix For: 8.0.0
>
>
>
> 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)