Repository navigation
Conversation
|
Workflow [PR], commit [f4d2f05] Summary: ✅ AI Review1) SummaryThis PR introduces 2) Missing context (if any)
3) Findings (by severity)Blockers
Majors
4) Tests & Evidence
5) ClickHouse Compliance Checklist (Yes/No + short note)
6) Performance & Safety NotesThe change improves safety by preventing unsafe H3 library calls on invalid cells, reducing risk of undefined behavior/exception loops from upstream library internals. Runtime overhead is small and linear (extra 7) User-Lens ReviewBehavior is more robust and predictable, and the new setting offers explicit compatibility control for users who prefer default-return semantics. Error handling in strict mode remains actionable ( 8) Final VerdictStatus: Request changes Minimum required actions to get approval:
|
LLVM Coverage Report
PR changed lines: PR changed-lines coverage: 95.70% (267/279) |
Backport #97821 to 26.2: Add compatibility setting functions_h3_default_if_invalid
Changelog category (leave one):
Closes #97705
(This doesn't quite bring back the old behavior, because the old behavior was to call the h3 library functions with the invalid arguments, which was doings all sorts of out-of-bounds array accesses and sometimes crashed the server or got stuck in a loop.)
Note
Medium Risk
Changes runtime behavior of multiple H3 functions on invalid inputs, which can alter query results and error handling. Touches geospatial function execution paths but is gated behind a setting with tests.
Overview
Introduces
functions_h3_default_if_invalid, allowing H3 functions to return default values (0/empty arrays) instead of throwingINCORRECT_DATAwhen given invalid H3 cell indices.Refactors H3 cell validation into a context-aware
H3Validatorand updates a set of H3 functions (e.g.,h3ToGeo,h3kRing,h3Line, area/distance/neighbor and edge helpers) to skip H3 library calls on invalid inputs when the setting is enabled. Adds a stateless test covering both default (throw) and compatibility (default-return) behaviors.Written by Cursor Bugbot for commit f4d2f05. This will update automatically on new commits. Configure here.
Version info
26.3.1.60426.2.5.21