Skip to content

Conversation

@kaka11chen
Copy link

[fix] Fix row_index position map access crash because filter is uninitialized.

#369 introduced this crash.
img_v3_02sm_2b97fc81-6024-40da-8bd6-cb3dd122720g

Copilot AI review requested due to automatic review settings December 5, 2025 11:54
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a crash caused by accessing an uninitialized filter enum field in RowReaderOptionsPrivate. The crash was introduced in #369 when the filter field was added but not initialized in the constructor, leading to undefined behavior when the field was checked in conditional statements (e.g., getFilterTypeIdsSet()).

  • Adds initialization of the filter field to ColumnFilter_NONE in the RowReaderOptionsPrivate constructor
  • Follows the same initialization pattern as the selection field above it
  • Prevents crashes from accessing uninitialized memory when filter-related methods are called

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@morningman morningman merged commit c0a2043 into apache:orc Dec 5, 2025
6 checks passed
morningman pushed a commit to apache/doris that referenced this pull request Dec 8, 2025
…ered_map.at() (#58719)

Fix row_index position unordered_map.at() crash because`
RowReaderOptions::filter `is uninitialized.
orc third-party changed:
apache/doris-thirdparty#370
nagisa-kunhah pushed a commit to nagisa-kunhah/doris that referenced this pull request Dec 14, 2025
…ered_map.at() (apache#58719)

Fix row_index position unordered_map.at() crash because`
RowReaderOptions::filter `is uninitialized.
orc third-party changed:
apache/doris-thirdparty#370
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.

2 participants