Skip to content

GH-1454: Declare ID as nullable in the local files Substrait test plan - #1456

Merged
jbonofre merged 1 commit into
apache:mainfrom
jbonofre:substrait-local-files-nullable-id
Nov 10, 2026
Merged

jbonofre merged 1 commit into
apache:mainfrom
jbonofre:substrait-local-files-nullable-id

Conversation

@jbonofre

@jbonofre jbonofre commented Nov 9, 2026

Copy link
Copy Markdown
Member

What's Changed

dataset/src/test/resources/substrait/local_files_users.json declared ID as NULLABILITY_REQUIRED. The Parquet file that testRunQueryLocalFiles reads has an optional id column, and the test expects a nullable ID. Since apache/arrow#51691, Arrow C++ keeps the input nullability of directly projected fields, so a build against Arrow C++ main returns ID as not null and the test fails. That is why the nightly Binaries job fails.

This declares ID as NULLABILITY_NULLABLE, which matches the file. named_table_users.json also declares ID as required, but the named-table tests read a table supplied from Java with a nullable ID, and they pass against both versions, so it's unchanged.

I ran TestAceroSubstraitConsumer with the jni-macos-aarch_64 libraries from the RC workflow, which are built from Arrow C++ main. Before this change testRunQueryLocalFiles fails with the nightly's error; after it, all 11 tests pass. Arrow C++ 26.0.1 projects every field as nullable, so the result there doesn't change.

Closes #1454.

…st plan

local_files_users.json declared ID as required, but the Parquet file
the test reads has an optional id column and the test expects a
nullable ID. Arrow C++ main now keeps the input nullability of
projected fields (apache/arrow#51691), so the scan returned ID as not
null and testRunQueryLocalFiles failed in the nightly build.
@jbonofre
jbonofre requested a review from lidavidm as a code owner November 9, 2026 15:50
@jbonofre jbonofre added the bug-fix PRs that fix a big. label Nov 9, 2026
@jbonofre jbonofre added the bug-fix PRs that fix a big. label Nov 9, 2026
@github-actions github-actions Bot added this to the 20.0.0 milestone Nov 9, 2026
@jbonofre
jbonofre merged commit cc6823d into apache:main Nov 10, 2026
21 of 23 checks passed
@jbonofre
jbonofre deleted the substrait-local-files-nullable-id branch November 10, 2026 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug-fix PRs that fix a big.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Dataset] TestAceroSubstraitConsumer#testRunQueryLocalFiles fails against Arrow C++ main

2 participants