Repository navigation
Add test: Ignored/foreign members in a Feature, geometry object, and after the features array are accepted but untested - #108010
Conversation
|
Pre-PR Validation Gate (per ClickGap pipeline): a) Deterministic repro? ✅ b) Root cause explained? ✅ c) Fix matches root cause? ✅ d) Test intent preserved? / New tests added? ✅ e) Both directions demonstrated? ✅ f) Fix is general, not a narrow patch? ✅ |
|
Workflow [PR], commit [dd7c32f] Summary: ✅ AI ReviewSummaryThis test-only PR adds stateless coverage for Final VerdictStatus: ✅ Approve |
LLVM Coverage Report
Changed lines: No C/C++ source files changed — skipping uncovered code analysis. Newly covered by added/modified tests: 353 line(s), 42 function(s) across 110 file(s) · Details Top files
|
58a554c
…pr98124 Add test: Ignored/foreign members in a Feature, geometry object, and after the `features` array are accepted but untested
Found via ClickGap automated review. Please close or comment if this is incorrect or needs adjustment.
This is a test-only PR — no source code changes. Please review: test quality, whether the claimed coverage gaps are real, and whether test output makes sense.
Adds test coverage for 1 untested code path(s), found during automated review of PR #98124.
That PR Adds a new
GeoJSONinput format (GeoJSONRowInputFormat) that reads aFeatureCollectioninto fixed columnsid String,geometry Geometry,properties Nullable(JSON), plus a newinput_format_geojson_unsupported_geometry_handlingsetting (throw/null). (1) Changes: new parser with strict1. Ignored/foreign members in a Feature, geometry object, and after the
featuresarray are accepted but untestedsrc/Processors/Formats/Impl/GeoJSONRowInputFormat.cpp:326,src/Processors/Formats/Impl/GeoJSONRowInputFormat.cpp:384Risk:
forEachFieldInJSONObjectline 325if (!handle_field(key))callsskipJSONValueStrict(line 326) for any unrecognized member; the PR's own tests only ever exercise the skip for a member beforefeatures(readPrefixline 663), never inside a Feature, inside a geometry, or afterfeatures. Risk: if the skip path regresses, common real-world GeoJSON files that carry per-Featurebboxor extra geometry/top-level members would be wrongly rejected (a usability regression that silently …What's unique vs PR tests: The PR only tests an ignored member BEFORE the
featuresarray (readPrefix). This test covers the three other skip positions — inside a Feature, inside a geometry object, and after thefeaturesarray — all LLVM-uncovered.Try it on ClickHouse Fiddle
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Not applicable — test-only change.
Documentation entry for user-facing changes
Version info
26.7.1.62