Repository navigation
Use sipHash128 instead of MD5 in test 05359_parquet_file_logical_type - #125750
Conversation
The test builds the opaque `checksum` string of its Parquet `FILE` tuples with `MD5`, which throws `SUPPORT_IS_DISABLED` at analysis when OpenSSL FIPS mode is enabled. The inserts that write the test files then fail and the whole test fails in the FIPS job, on master too. `sipHash128` has no OpenSSL dependency and no FIPS check and also returns `FixedString(16)`, so the value stays a 32-char hex string. The label prefix is renamed with it. Only the three checksum values in the reference change. Same substitution as ClickHouse#116023. Reported on ClickHouse#123788. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Internal second-model review: adjudication log (click to expand)Pre-publication review by an independent model (engine: codex; 0 findings) plus my own cold review (0 findings). No findings to adjudicate. Session id: cron:clickhouse-review-slot-11:20261014-083300 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-5:20261014-082300 |
|
Workflow [PR], commit [6d3b923] Summary: ✅ AI ReviewSummaryReplaces Missing context / blind spots
Final VerdictStatus: ✅ Approve. |
|
cc @al13n321, could you review this? The test built its opaque Parquet |
ffaef6a
…ed_keys The test fingerprints each serialized uniqExact*State as hex(MD5(hex(state))). MD5 is refused in OpenSSL FIPS mode (FunctionMD5 throws SUPPORT_IS_DISABLED at analysis), so in a FIPS build the test fails at its first state query (query 12, line 42) and at every later one. The digest is incidental: it only compresses a long hex string into a 128-bit fingerprint. Replace MD5 with sipHash128 at all 69 call sites: it needs no OpenSSL, exists in every build including Fast test, and returns FixedString(16) like MD5, so the reference keeps its shape and size. Same substitution as ClickHouse#125750 and ClickHouse#125527. The new fingerprints were taken from a run printing both hashes of every state: all 286 MD5 halves equal the old reference and the old-to-new mapping is a bijection, so the reference still asserts the same states. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Related: #123788
Related: #125132
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Use
sipHash128instead ofMD5in the stateless test05359_parquet_file_logical_type, so it also passes when OpenSSL FIPS mode is enabled.Description
05359_parquet_file_logical_type(added in #125132) builds thechecksumfield of its ParquetFILEtuples as'MD5:' || lower(hex(MD5(toString(number)))). In FIPS modeMD5throwsCode: 344 ... Function MD5 is not available in FIPS mode. (SUPPORT_IS_DISABLED)at analysis, so theINSERTs that write the test files fail and the whole test fails, on master too. This was reported on #123788; the FIPS job runs only in the private CI (CH Inc sync), so I cannot link a public failing job.The
checksumis an opaque string; nothing parses it as a digest. The change replacesMD5withsipHash128(no OpenSSL, alsoFixedString(16)) and renames the label prefix to match, the same substitution as #116023. Only the threechecksumvalues in the.referencechange. This keeps the test in the FIPS job instead of skipping it there.Validation: with FIPS mode turned on through
OPENSSL_CONF(default_properties = fips=yes;SELECT MD5('1')throwsCode: 344under it), master's test fails with the reported error and the fixed test passes 20/20 with output matching the reference. This config does not load the FIPS provider module, so it is not a full FIPS build. Without FIPS the fixed test passes 50/50 with randomized settings.Workflow [PR]
Sync PR [sync-upstream/pr/125750]
Version info
26.11.1.9-master(included in26.11and later)