You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "westonpace (via GitHub)" <gi...@apache.org> on 2023/02/17 18:02:21 UTC
[GitHub] [arrow] westonpace commented on issue #34238: [C++][Python] Segfault when calling groupby on table with misaligned chunks
westonpace commented on issue #34238:
URL: https://github.com/apache/arrow/issues/34238#issuecomment-1435045266
True, though I think we are using two different versions of "align" here.
There is a known issue with "[data alignment](http://www.songho.ca/misc/alignment/dataalign.html)". We require at least 8-byte aligned pointers. There is a PR in the works (https://github.com/apache/arrow/pull/14758) to enforce alignment (requires a data copy) as data goes into Acero.
However, I believe what @0x26res is referring to here is chunk alignment within a table. Generally one assumes that a table consists of consistent chunks, e.g. a vector of record batches. However, it is possible for some columns to be chunked differently than other columns. Acero handles this by requiring all input be record batches, so misaligned tables are aligned by zero-copy slicing into appropriate sized chunks. This defect stems from the fact that group_by was previously implemented outside of Acero using an internal helper function.
TL;DR: This is fixed by https://github.com/apache/arrow/pull/14867 . I ran the given example (thanks for this!) and can reproduce on master but not on #14867.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org