Csaba Ringhofer has uploaded this change for review. ( https://gerrit.cloudera.org/25601
Change subject: IMPALA-15878: Report empty vs malformed in ComputeWkbBBox() ...................................................................... IMPALA-15878: Report empty vs malformed in ComputeWkbBBox() ComputeWkbBBox() returns the same invalid sentinel box for an empty geometry (e.g. POINT EMPTY) and for WKB that it could not parse. Callers that persist the box to file metadata must tell the two apart: an empty geometry has no extent and can simply be skipped, while a value that could not be parsed means an accumulated box may not cover every value, so no box may be written at all. Add an optional BBoxStatus out-parameter (OK, EMPTY, MALFORMED). It defaults to nullptr, so existing callers are not affected. Also make the unrecognized OGCType case return the sentinel box instead of falling through. Testing: - unit tests for the OK / EMPTY / MALFORMED outcomes in wkb-serialization-test Change-Id: I2c7e404c093dfa47b317a6bdcb81da252f5f8338 Assisted-by: Claude Sonnet 5.5 (Claude Code) --- M be/src/exprs/geo/wkb-serialization-test.cc M be/src/exprs/geo/wkb-serialization.cc M be/src/exprs/geo/wkb-serialization.h 3 files changed, 105 insertions(+), 7 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/01/25601/1 -- To view, visit https://gerrit.cloudera.org/25601 To unsubscribe, visit https://gerrit.cloudera.org/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I2c7e404c093dfa47b317a6bdcb81da252f5f8338 Gerrit-Change-Number: 25601 Gerrit-PatchSet: 1 Gerrit-Owner: Csaba Ringhofer <[email protected]>
