Repository navigation
Test reading the entire apache/parquet-testing corpus - #125130
Conversation
…ng all of it Add https://github.com/apache/parquet-testing as `contrib/parquet-testing` and a stateless test that reads every `.parquet` and `.parquet.encrypted` file in it. For each file the test prints the inferred schema, the row count and an order-independent hash of all values, or the error name if the file cannot be read. Files that ship with an `*_expect.csv` are compared with the expected contents. The stateless test job does not check out submodules, so `ci/jobs/functional_tests.py` now checks out `contrib/parquet-testing` before the tests run. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Workflow [PR], commit [5353830] Summary: ✅
AI ReviewSummaryAdds the Apache Parquet corpus as a test-data submodule, exercises its files in a stateless test, rejects invalid physical-type enum values, and connects the corpus to CI checkout, selection, and cache digests. Reviewed head: Missing context / blind spots
Final VerdictStatus: ✅ Approve. No outstanding code-review findings; the latest CI results remain pending. |
`clickhouse-local` also reads stdin for `INSERT ... FROM INFILE` and appends its data, so the test hangs when stdin is an open pipe or socket. Insert from the `file` table function instead. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Build profile diff (arm_release)Commit See the job log for details. |
A file can contain a physical type out of the range of `parquet::format::Type::type` (e.g. `bad_data/PARQUET-1481.parquet` of the `apache/parquet-testing` corpus has -7). Loading such a value as the enum is undefined behavior, reported by UBSan in `SchemaConverter::processPrimitiveColumn`. Check the raw value first. CI report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=125130&sha=5ed0b3a8cb72b54bb248500942482ac56b49eec2&name_0=PR PR: #125130 Co-Authored-By: Claude Opus 5.5 <[email protected]>
`data/large_string_map.brotli.parquet` decompresses to a 1 GiB string, so whether it could be read depended on the available memory, and the test failed with `MEMORY_LIMIT_EXCEEDED` in CI. CI report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=125130&sha=5ed0b3a8cb72b54bb248500942482ac56b49eec2&name_0=PR PR: #125130 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…d it to stateless tests - A submodule under `exclude_paths` of a digest config does not affect the digest even with `with_git_submodules`, and a submodule listed in `include_paths` affects it regardless of `with_git_submodules`. Exclude `contrib/parquet-testing` from the builds and include it in the stateless tests. - A change of a test data submodule selects the stateless tests referencing it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Fixes the `cppcoreguidelines-init-variables` clang-tidy error in the `arm_tidy` build: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=125130&sha=a560ef89d4128dc605ff6f7ff5fcab1bfd134c57&name_0=PR&name_1=Build%20%28arm_tidy%2C%202%2F4%29 #125130 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…less batches In the regular stateless jobs, a changed test data submodule (`contrib/parquet-testing`) is now treated as a change of the test source files that reference it, so a pure corpus bump runs only the batches and flavors containing these tests instead of the full matrix. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…an run a test reading it A transient fetch failure of `contrib/parquet-testing` must not fail unrelated stateless shards, and the shards that cannot select `05359_parquet_testing_corpus` should not pay for the clone. Apply the same filters as `clickhouse-test` does (the selected test list, the `parallel`/`sequential` flavor and the hash batch) to the tests reading each test data submodule, and check out only the needed ones. Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts: # ci/jobs/functional_tests.py
The check whether a job runs only sequential tests looked for `--no-parallel` as a substring of the runner options, which matched `--no-parallel-replicas` of the `ParallelReplicas` jobs. So these jobs did not check out `contrib/parquet-testing`, and `05359_parquet_testing_corpus` failed there. Compare whole options instead. https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=125130&sha=latest&name_0=PR&name_1=Stateless%20tests%20(arm_binary%2C%20ParallelReplicas%2C%20s3%20storage%2C%20parallel) #125130 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…s consumers `_prepare_submodule_cache` hashed the SHAs of all submodules, so a bump of `contrib/parquet-testing`, which no `needs_submodules` job depends on, missed the cache and re-archived all submodules. Hash only the submodules affecting at least one `needs_submodules` job, according to their digest configs. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
🕵 @groeneai, investigate the failure: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=125130&sha=fd7b63579e67aa688d84e97fff515def77e7fc8d&name_0=PR&name_1=Performance%20Comparison%20(arm_release%2C%20master_head%2C%205%2F6) (four |
|
Not caused by this PR, and I don't think a code fix is warranted:
No fix is in progress. The run on the new head ( |
# Conflicts: # src/Processors/Formats/Impl/Parquet/SchemaConverter.cpp
The stress runner selects the stateless tests of the checkout, including `05359_parquet_testing_corpus`, which reads `contrib/parquet-testing`, but only `functional_tests.py` initialized the submodule. Check it out in `stress_job.py` before starting the container (not in the upgrade check, which runs the tests of the previous release), and include the submodule in the digest of `common_stress_job_config`, so that a bump of the corpus invalidates the cached stress results. Co-Authored-By: Claude Opus 5.5 <[email protected]>
alexey-milovidov
left a comment
There was a problem hiding this comment.
Good to have.
Add https://github.com/apache/parquet-testing as the
contrib/parquet-testingsubmodule and a stateless test that reads the entire corpus: every.parquetand.parquet.encryptedfile (253 files). For each file the test records the inferred schema, the row count and an order-independent hash of all values, or the error name if the file cannot be read. The files that come with an*_expect.csvare compared with the expected contents (all four match).Reading is single-threaded (so that files with several corrupted columns report a deterministic error) and
session_timezoneis fixed (timestamps inside variants are formatted in the session time zone).The stateless test job does not check out submodules, so
ci/jobs/functional_tests.pynow checks outcontrib/parquet-testing(about 6 MB) before running the tests.contrib/parquet-testingis test data only: it is excluded from the build digests (a submodule underexclude_pathsno longer contributes its SHA even withwith_git_submodules), so bumping it does not rebuild the binaries. It is included in the stateless test digest, and a change of it selects the tests referencing it in targeted and flaky-check runs.The corpus found undefined behavior:
bad_data/PARQUET-1481.parquethas the invalid physical type -7, and loading it as theparquet::format::Type::typeenum inSchemaConverter::processPrimitiveColumnwas reported by UBSan. The raw value is now checked first. Reading uses a fixedmax_memory_usage, becauselarge_string_map.brotli.parquetdecompresses to a 1 GiB string.The reference pins the current behavior, including unsupported features visible in the corpus: shredded variants,
GEOMETRY/GEOGRAPHYlogical types, encryption,concatenated_gzip_members.parquet,datapage_v2_empty_datapage.snappy.parquet,int96_from_spark.parquet,json.parquet.Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Test reading the entire Parquet test corpus from https://github.com/apache/parquet-testing.
🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/125130]
Version info
26.10.1.2407-master(included in26.10and later)