You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "tadeja (via GitHub)" <gi...@apache.org> on 2026/09/30 16:41:41 UTC
[PR] GH-51638: [CI][C++][Parquet] Update expected JSON output in parquet-reader-test for simdjson 5.0 [arrow]
tadeja opened a new pull request, #51661:
URL: https://github.com/apache/arrow/pull/51661
### Rationale for this change
See #51638 - `fractured_json` formatting changes with the new simdjson version 5.0 (whitespace, line breaks, key order in tables),
cause `parquet-reader-test` to fail on four of its tests `TestJSONWithLocalFile.JSONOutput...`
### What changes are included in this PR?
Check `simdjson::SIMDJSON_VERSION_MAJOR`, and for `>= 5` use the new expected formatting (JSON content hasn't changed).
Keep existing expected output formatting for simdjson 4.x
### Are these changes tested?
Yes, [fork CI runs pass](https://github.com/tadeja/arrow/actions/runs/36730395050).
### Are there any user-facing changes?
No, only test changes.
### Was AI used for this PR?
**PR code and description written by:**
- [x] Human
- [x] AI
**Reviewed before submission by:**
- [x] Human
- [ ] AI
- [ ] Not reviewed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] GH-51638: [CI][C++][Parquet] Update expected JSON output in parquet-reader-test for simdjson 5.0 [arrow]
Posted by "kou (via GitHub)" <gi...@apache.org>.
kou merged PR #51661:
URL: https://github.com/apache/arrow/pull/51661
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] GH-51638: [CI][C++][Parquet] Update expected JSON output in parquet-reader-test for simdjson 5.0 [arrow]
Posted by "raulcd (via GitHub)" <gi...@apache.org>.
raulcd commented on PR #51661:
URL: https://github.com/apache/arrow/pull/51661#issuecomment-5926991688
> pitrou as mentioned on the issue, I have a demo by 🤖 on my fork [tadeja#2](https://github.com/tadeja/arrow/pull/2) (that checks only the content... but might be radical :))
To be honest the diff on that one is smaller than the one here :rofl:
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] GH-51638: [CI][C++][Parquet] Update expected JSON output in parquet-reader-test for simdjson 5.0 [arrow]
Posted by "pitrou (via GitHub)" <gi...@apache.org>.
pitrou commented on PR #51661:
URL: https://github.com/apache/arrow/pull/51661#issuecomment-5926225747
Or perhaps we can make those tests whitespace-insensitive?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] GH-51638: [CI][C++][Parquet] Update expected JSON output in parquet-reader-test for simdjson 5.0 [arrow]
Posted by "tadeja (via GitHub)" <gi...@apache.org>.
tadeja commented on PR #51661:
URL: https://github.com/apache/arrow/pull/51661#issuecomment-5926740194
Alright, I've reworked this to skip four `JSONOutput` tests when simdjson < 5 per @kou's request as I agree that might make most sense later (but might seem premature now that bundled simdjson is still 4.6.4)
@pitrou as mentioned on the issue, I have a demo by 🤖 on my fork that checks only the content: https://github.com/tadeja/arrow/pull/2 but might be radical :)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] GH-51638: [CI][C++][Parquet] Update expected JSON output in parquet-reader-test for simdjson 5.0 [arrow]
Posted by "Copilot (via GitHub)" <gi...@apache.org>.
Copilot commented on code in PR #51661:
URL: https://github.com/apache/arrow/pull/51661#discussion_r4152790400
##########
cpp/src/parquet/reader_test.cc:
##########
@@ -1124,6 +1124,11 @@ class TestJSONWithLocalFile : public ::testing::Test {
};
TEST_F(TestJSONWithLocalFile, JSONOutputWithStatistics) {
+ // simdjson 5.0 changed the format of fractured_json
+ if constexpr (simdjson::SIMDJSON_VERSION_MAJOR < 5) {
+ GTEST_SKIP() << "Test requires simdjson >= 5";
+ }
Review Comment:
This disables the four formatting assertions for simdjson 4.x instead of preserving their previous expectations as the PR describes. In particular, Arrow still pins bundled simdjson to v4.6.4 (`cpp/thirdparty/versions.txt:105`), so bundled builds will silently skip all four tests. Please retain the old expected strings for `< 5` and select the new strings only for `>= 5` rather than skipping the tests.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] GH-51638: [CI][C++][Parquet] Update expected JSON output in parquet-reader-test for simdjson 5.0 [arrow]
Posted by "kou (via GitHub)" <gi...@apache.org>.
kou commented on PR #51661:
URL: https://github.com/apache/arrow/pull/51661#issuecomment-5920350122
I think that we can skip these tests with simdjson < 5 to reduce maintenance costs.
I think that testing only with simdjson > 5.0 is enough.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org