arrow icon indicating copy to clipboard operation
arrow copied to clipboard

[CI][C++][Parquet] Failure on `parquet-reader-test` with simdjson 5.x

Open tadeja opened this issue 2 months ago • 8 comments

Describe the bug, including details regarding any error messages, version, and platform.

Failing jobs: AMD64 Windows MinGW MINGW64 C++, AMD64 Windows MinGW CLANG64 C++, AMD64 Conda C++ AVX2 and C++ Extra / AMD64 Ubuntu Meson

With simdjson 5.x failing on parquet-reader-test

[  FAILED  ] 4 tests, listed below:
[  FAILED  ] TestJSONWithLocalFile.JSONOutputWithStatistics
[  FAILED  ] TestJSONWithLocalFile.JSONOutput
[  FAILED  ] TestJSONWithLocalFile.JSONOutputFLBA
[  FAILED  ] TestJSONWithLocalFile.JSONOutputSortColumns
...
The following tests FAILED:
	 92 - parquet-reader-test (Failed)                      parquet-tests unittest

First MinGW job failure on main: https://github.com/apache/arrow/actions/runs/36565311423/job/109395674762#step:13:1885

Because of MSYS2 simdjson update to 5.0.1 mingw-w64-x86_64-simdjson-5.0.1-1-any downloading... ( -- ARROW_SIMDJSON_BUILD_VERSION: v4.6.4 later in the log is probably misleading )

Last successful MinGW job log on main still had mingw-w64-x86_64-simdjson-4.6.11-1-any downloading...

Component(s)

Continuous Integration, C++

tadeja avatar Sep 29 '26 14:09 tadeja

Hi @tadeja, I'd like to investigate this issue. I can look into the MinGW parquet-reader-test failures and whether the MSYS2 simdjson 5.0.1 update is causing the regression. Would you be okay with assigning this issue to me?

aryan9948 avatar Sep 29 '26 14:09 aryan9948

You can just do it and share what you found here. We can collaborate with it. See also the findings in #51640.

kou avatar Sep 29 '26 21:09 kou

PR #50877 introduced simdjson::fractured_json_string and testing exact outputs in reader_test.cc

Now simdjson 5.0 changes FracturedJson (simdjson/simdjson#2870, simdjson/simdjson#2878 and simdjson/simdjson#2879 change whitespace, line breaks, key order in tables), which already causes parquet-reader-test failures for MinGW jobs and soon other jobs (probably ARM64 macOS 14 C++ and AMD64 Conda C++ AVX2 when Docker layer cache gets invalidated.)

I have a workaround in #51640 to get MinGW two jobs from 5.0.1 to bundled 4.6.4 simdjson and passing CI for the time being.

Likely this needs a more permanent fix follow-up in parquet/reader_test.cc to accommodate for both test outputs, 4.6 and 5.0 (I have a working demo by 🤖 on my fork https://github.com/tadeja/arrow/pull/2)

Fyi, @kou @Reranko05

tadeja avatar Sep 29 '26 21:09 tadeja

How about testing TestJSONWithLocalFile.JSONOutput* only with simdjson 5 and updating the expected JSONs only for simdjson 5?

kou avatar Sep 30 '26 05:09 kou

I think the approach @kou is proposing is reasonable. Either only test and validate the output (as I understand is slightly different in format) on simdjson 5 or update the check so it matches the expected output based on the simdjson version. @tadeja I am marking this as 26.0.0 even though it does not feel like a blocker is good to have a green CI on the release.

raulcd avatar Sep 30 '26 08:09 raulcd

@kou, @raulcd so what would you say about both in #51661 - new expected output for >= 5 (else existing 4.x test output)

tadeja avatar Sep 30 '26 17:09 tadeja

Two more jobs fail on main: C++ / AMD64 Conda C++ AVX2 C++ Extra / AMD64 Ubuntu Meson

tadeja avatar Oct 01 '26 12:10 tadeja

Issue resolved by pull request 51661 https://github.com/apache/arrow/pull/51661

kou avatar Oct 01 '26 21:10 kou