Skip to content

fix: Fix SIGABRT when adding nullable column to multi-segment collection#416

Open
chinaux wants to merge 1 commit into
alibaba:mainfrom
chinaux:fix/fix_add_column_crash
Open

fix: Fix SIGABRT when adding nullable column to multi-segment collection#416
chinaux wants to merge 1 commit into
alibaba:mainfrom
chinaux:fix/fix_add_column_crash

Conversation

@chinaux
Copy link
Copy Markdown
Collaborator

@chinaux chinaux commented May 19, 2026

fix (#415)

When add_column is called on a multi-segment collection with a nullable field and no expression, segment.cc previously sliced an Arrow ChunkedArray with an offset that exceeded the array length, triggering SIGABRT in Arrow's chunked_array.cc:170 assertion.

@chinaux chinaux requested a review from zhourrr as a code owner May 19, 2026 12:15
…lection (alibaba#415)

When add_column is called on a multi-segment collection with a nullable
field and no expression, segment.cc previously sliced an Arrow ChunkedArray
with an offset that exceeded the array length, triggering SIGABRT in
Arrow's chunked_array.cc:170 assertion.

Fix the slicing logic in segment.cc to materialize null values per segment.
Add comprehensive tests in collection_test.cc and segment_test.cc covering
multi-segment add_column scenarios (nullable/non-nullable, with/without
expression, with/without unflushed data, drop+re-add).
@zhourrr zhourrr force-pushed the fix/fix_add_column_crash branch from 579a66b to 5a34efa Compare May 24, 2026 03:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant