This is an automated email from the ASF dual-hosted git repository.

paleolimbot pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-nanoarrow.git


The following commit(s) were added to refs/heads/main by this push:
     new a1eff119 fix: skip Arrow C++ comparison of run-end encoded file on 
big-endian systems (#1032)
a1eff119 is described below

commit a1eff119ee322df6388be62e70bb3a4f665b0e34
Author: Edgar Ramírez Mondragón 
<[email protected]>
AuthorDate: Wed Nov 25 08:56:50 2026 -0600

    fix: skip Arrow C++ comparison of run-end encoded file on big-endian 
systems (#1032)
    
    The integration files read by `TestFileFixture` are little-endian, so
    when Arrow C++ reads `cpp-21.0.0/generated_run_end_encoded.stream` on
    s390x (big-endian) it has to swap it, and the swap step refuses run-end
    encoded arrays:
    
    -
    
https://github.com/apache/arrow/blame/fcd7046fb96ac0a37b8b12003e8ad8e30f346d95/cpp/src/arrow/array/util.cc#L211
    -
    
https://github.com/apache/arrow/commit/1264e40918ba95f7c0b1725e296ada25b1385b3d
    
    It started failing on `main` after
    https://github.com/apache/arrow-nanoarrow/pull/996 merged. That PR
    didn't touch any of the paths that trigger
    `.github/workflows/verify.yaml`, so the s390x job didn't fire until the
    weekly schedule. It showed up in
    https://github.com/apache/arrow-nanoarrow/pull/1030 because that PR
    touches the `dev/release/verify-release-candidate.sh`, one of those
    paths.
    
    Arrow C++ doesn't seem to officially support s390x, but the Arrow
    docs[^1] state that the C++ implementation aims for cross endian
    support, so this looks like a gap there:
    
    - https://github.com/apache/arrow/issues/34176
    
    nanoarrow's own read of the file is still checked; the skip only matches
    this exact `NotImplemented` error, so it stops applying once the tests
    use an Arrow C++ with a fix.
    
    [^1]:
    
https://arrow.apache.org/docs/developers/overview.html#endianness:~:text=implementations%20aiming%20for%20cross%20endian%20support
    
    ---------
    
    Signed-off-by: Edgar Ramírez-Mondragón <[email protected]>
---
 .github/workflows/verify.yaml   |  2 +-
 src/nanoarrow/ipc/files_test.cc | 13 +++++++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/verify.yaml b/.github/workflows/verify.yaml
index 923f20fe..bf4e4e52 100644
--- a/.github/workflows/verify.yaml
+++ b/.github/workflows/verify.yaml
@@ -52,7 +52,7 @@ concurrency:
 
 jobs:
   verify:
-    name: "${{ matrix.config.label }}"
+    name: Verify "${{ matrix.config.label }}"
     runs-on: ${{ matrix.config.os }}
 
     strategy:
diff --git a/src/nanoarrow/ipc/files_test.cc b/src/nanoarrow/ipc/files_test.cc
index 501b9249..1b0fbda4 100644
--- a/src/nanoarrow/ipc/files_test.cc
+++ b/src/nanoarrow/ipc/files_test.cc
@@ -296,6 +296,19 @@ class TestFile {
 
     // Read the same file with Arrow C++
     auto maybe_table_arrow = 
ReadTable(io::ReadableFile::Open(path_builder.str()));
+
+    // Arrow C++ can't swap the endianness of run-end encoded arrays,
+    // so on big-endian systems it fails to read the little-endian integration 
files
+    // that contain them. nanoarrow's own read of the file has already been 
checked
+    // above. Remove once the Arrow C++ used in CI includes a fix for
+    // https://github.com/apache/arrow/issues/34176.
+    if (ArrowIpcSystemEndianness() == NANOARROW_IPC_ENDIANNESS_BIG &&
+        maybe_table_arrow.status().IsNotImplemented() &&
+        maybe_table_arrow.status().message() ==
+            "swapping endianness of run-end encoded array") {
+      GTEST_SKIP() << "Arrow C++ can't swap the endianness of run-end encoded 
arrays";
+    }
+
     {
       SCOPED_TRACE("Read the same file with Arrow C++");
       FAIL_RESULT_NOT_OK(maybe_table_arrow);

Reply via email to