Skip to content

MINOR: [C++][Parquet] Fix mismatched reader casts in column_reader_test - #55953

Open
mkruskal-google wants to merge 1 commit into
apache:mainfrom
mkruskal-google:fix-column-reader-test-casts
Open

mkruskal-google wants to merge 1 commit into
apache:mainfrom
mkruskal-google:fix-column-reader-test-casts

Conversation

@mkruskal-google

@mkruskal-google mkruskal-google commented Dec 3, 2026 •

Copy link
Copy Markdown

Rationale for this change

Fix virtual function call UB in tests, triggering sanitizer failures.

What changes are included in this PR?

Trivial type changes to fix UB.

Are these changes tested?

They were tested manually with clang CFI sanitizers. No new sanitizer coverage was added to CI though.

Are there any user-facing changes?

no

Was AI used for this PR?

In accordance to the AI generation guidelines, please disclose below whether and how AI was used in this PR.

PR code and description written by:

  • Human
  • AI

Reviewed before submission by:

  • Human
  • AI
  • Not reviewed
  • GitHub Issue: N/A (MINOR)

Use Int32Reader* and const int32_t* instead of ByteArrayReader* and
const ByteArray* when casting schema::Int32 column readers in
TestReadValuesMissingWithDictionary and
TestNonDictionaryEncodedPagesWithExposeEncoding.
@mkruskal-google mkruskal-google changed the title [C++][Parquet] Fix mismatched reader casts in column_reader_test Minor: Fix mismatched reader casts in column_reader_test Dec 3, 2026
@mkruskal-google mkruskal-google changed the title Minor: Fix mismatched reader casts in column_reader_test MINOR: [C++][Parquet] Fix mismatched reader casts in column_reader_test Dec 3, 2026
@Sumdiboii

Copy link
Copy Markdown
Contributor

I'm not a maintainer, but I noticed this was found by testing manually with clang CFI and no CI coverage was added. Is there a plan to run that check in CI, so a similar cast mismatch doesn't slip in again? Just curious...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants