This is an automated email from the ASF dual-hosted git repository.
jbonofre pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-java.git
The following commit(s) were added to refs/heads/main by this push:
new cc6823d8d GH-1454: Declare ID as nullable in the local files Substrait
test plan (#1456)
cc6823d8d is described below
commit cc6823d8d459284d7d69c67822f7801c34141232
Author: JB Onofré <[email protected]>
AuthorDate: Tue Nov 10 10:24:38 2026 +0000
GH-1454: Declare ID as nullable in the local files Substrait test plan
(#1456)
## 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.
---
dataset/src/test/resources/substrait/local_files_users.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dataset/src/test/resources/substrait/local_files_users.json
b/dataset/src/test/resources/substrait/local_files_users.json
index b4d699e25..f311afa9b 100644
--- a/dataset/src/test/resources/substrait/local_files_users.json
+++ b/dataset/src/test/resources/substrait/local_files_users.json
@@ -22,7 +22,7 @@
"types": [{
"i32": {
"typeVariationReference": 0,
- "nullability": "NULLABILITY_REQUIRED"
+ "nullability": "NULLABILITY_NULLABLE"
}
}, {
"varchar": {