You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Tor Eivind McKenzie-Syvertsen (Jira)" <ji...@apache.org> on 2021/08/20 12:37:00 UTC

[jira] [Updated] (ARROW-13681) pyarrow.compute.list_parent_indices only computes for first chunk

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

Tor Eivind McKenzie-Syvertsen updated ARROW-13681:
--------------------------------------------------
    Description: 
Pyarrow version: 5.0.0. 
Python version: 3.7.9

I came across this issue due to very unexpected behaviour from the "explode" function obtained here:

https://issues.apache.org/jira/browse/ARROW-12099
 indices = pc.list_parent_indices(table[col_name])

if table[column] in this example contains several chunks, the indices will look perfectly fine for that chunk, but erratic and unexpected results for second chunk.
 No warning or info was given either

A workaround that solved the problem for me is:
{code:java}
  indices = pc.list_parent_indices(table.combine_chunks()[col_name])
{code}
The behaviour then changes dramatically.

I'm assuming this isnt expected and should be fixed?

  was:
I came across this issue due to very unexpected behaviour from the "explode" function obtained here:
https://issues.apache.org/jira/browse/ARROW-12099
indices = pc.list_parent_indices(table[col_name])

if table[column] in this example contains several chunks, the indices will look perfectly fine for that chunk, but erratic and unexpected results for second chunk.
No warning or info was given either

A workaround that solved the problem for me is:
{code:java}
  indices = pc.list_parent_indices(table.combine_chunks()[col_name])
{code}
The behaviour then changes dramatically.

I'm assuming this isnt expected and should be fixed?

        Summary: pyarrow.compute.list_parent_indices only computes for first chunk  (was:  pyarow.compute.list_parent_indices only computes for first chunk)

> pyarrow.compute.list_parent_indices only computes for first chunk
> -----------------------------------------------------------------
>
>                 Key: ARROW-13681
>                 URL: https://issues.apache.org/jira/browse/ARROW-13681
>             Project: Apache Arrow
>          Issue Type: Bug
>            Reporter: Tor Eivind McKenzie-Syvertsen
>            Priority: Major
>
> Pyarrow version: 5.0.0. 
> Python version: 3.7.9
> I came across this issue due to very unexpected behaviour from the "explode" function obtained here:
> https://issues.apache.org/jira/browse/ARROW-12099
>  indices = pc.list_parent_indices(table[col_name])
> if table[column] in this example contains several chunks, the indices will look perfectly fine for that chunk, but erratic and unexpected results for second chunk.
>  No warning or info was given either
> A workaround that solved the problem for me is:
> {code:java}
>   indices = pc.list_parent_indices(table.combine_chunks()[col_name])
> {code}
> The behaviour then changes dramatically.
> I'm assuming this isnt expected and should be fixed?



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