Repository navigation
Fix 04507_mvt_encode_state_serialize failure under parallel replicas - #111148
Conversation
With parallel replicas, the initiator constant-folds the `::Point::Geometry` cast and re-serializes the query with `_CAST((0., 0.), 'Geometry')`. The remote replica then fails with `Cannot convert type Tuple(Float64, Float64) to Geometry. Conversion to Variant allowed only for types from this Variant` (`CANNOT_CONVERT_TYPE`), because `Variant` conversion matches member types by name and the folded literal has lost the `Point` custom type name. This is the known parallel-replicas `Variant` conversion bug #74366, not a problem in the test itself, so skip the test under parallel replicas until that bug is fixed. Seen in https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=109006&sha=17d1fd695c85b4225554cfcfe6375c3672812b6c&name_0=PR&name_1=Stateless%20tests%20%28amd_llvm_coverage%2C%20ParallelReplicas%2C%20s3%20storage%2C%20parallel%29 on #109006, and failing across master and many PRs (52 failures on 2026-07-20 alone). Co-Authored-By: Claude Fable 5 <[email protected]>
|
Workflow [PR], commit [5907e8a] Summary: ✅ AI ReviewSummaryThis PR rewrites Final VerdictStatus: ✅ Approve |
… under parallel replicas Instead of tagging the test \`no-parallel-replicas\`, rewrite the assertions to compare \`hex(MVTEncodeMerge(...)(s))\` against the golden tile bytes (the same literals as in \`04299_mvt_encode.reference\`). This keeps the parallel-replicas coverage of reading stored \`AggregateFunction(MVTEncode...)\` states while avoiding the known constant-folding bug where the initiator re-serializes a constant \`::Point::Geometry\` cast as \`_CAST((0., 0.), 'Geometry')\` and the replica rejects the conversion, see #74366. Co-Authored-By: Claude Fable 5 <[email protected]>
no-parallel-replicas tag to 04507_mvt_encode_state_serialize04507_mvt_encode_state_serialize failure under parallel replicas
|
The only red is the `Stress test (amd_tsan)` failure |
…-parallel-replicas Fix `04507_mvt_encode_state_serialize` failure under parallel replicas
Changelog category (leave one):
Fix the
04507_mvt_encode_state_serializefailure in the ParallelReplicas coverage configuration by rewriting its assertions: comparehex(MVTEncodeMerge(...)(s))against golden tile byte literals (the same values as in04299_mvt_encode.reference) instead of re-evaluatingMVTEncodeon a constant::Point::Geometryexpression. This keeps the parallel-replicas coverage of reading storedAggregateFunction(MVTEncode...)states (per review feedback, instead of the initially proposedno-parallel-replicastag).Background: with parallel replicas, the initiator constant-folds the
::Point::Geometrycast and re-serializes the query with_CAST((0., 0.), 'Geometry'). The remote replica then fails with an exception:Cannot convert type Tuple(Float64, Float64) to Geometry. Conversion to Variant allowed only for types from this Variant(CANNOT_CONVERT_TYPE), becauseVariantconversion matches member types by name and the folded literal has lost thePointcustom type name. This is the known parallel-replicasVariantconversion bug, not a problem in the serialize/deserialize path the test covers. The rewritten assertions no longer contain a constantGeometrycast in anySELECT ... FROMquery, so they are immune to that bug (theINSERT ... SELECTwithoutFROMruns only on the initiator).The test started failing en masse in the
Stateless tests (amd_llvm_coverage, ParallelReplicas, s3 storage, parallel)check on 2026-07-20 (52 failures that day across master and many pull requests).Example failure (on #109006): https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=109006&sha=17d1fd695c85b4225554cfcfe6375c3672812b6c&name_0=PR&name_1=Stateless%20tests%20%28amd_llvm_coverage%2C%20ParallelReplicas%2C%20s3%20storage%2C%20parallel%29
Related: #74366