Repository navigation
fix: support ICU regexp constructs - #28862
Conversation
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
8952562 to
3b9d46a
Compare
Design-first review — #28305 / #28862
Validation on the final implementation head:
Remote CI/BVT is running on this exact head; no result is claimed until the checks complete. |
|
CI triage for current head
|
|
New CI status clarification for head
|
|
Rebase verification: the current head |
|
Post-rebase status: the PR branch is now at |
XuPeng-SH
left a comment
There was a problem hiding this comment.
GPT-6 medium deep review at 78cb542efde9ceabceee4968aba548148d2256bf — design gate PASS; implementation PASS with no P0/P1/P2 blockers.
The change map covers syntax routing, translation and capture numbering, RE2/ICU separation, text/binary offsets, replacement, cache admission, per-evaluation memory bounds, timeout behavior, and cleanup of runner/input state. I found no concrete path that bypasses the compatibility-path size/admission checks or retains a SQL subject in the shared matcher cache. The latest revision makes the benchmark acceptance reproducible and explicitly distinguishes the cooperative iteration deadline from regexp2’s per-match timeout. Current-head CI is green; the PR records focused package, race, five-run benchmark, and JDBC BVT evidence for the implementation.
This comment records the design decision required by docs/design/regexp-icu-compatibility.md: exact reviewed commit 78cb542efde9ceabceee4968aba548148d2256bf, reviewer/model GPT-6 medium, decision PASS. No blocking findings.
Fixes #28305.
This PR adds ICU-compatible regexp2 support for constructs outside Go RE2, with bounded evaluation, admission/resource limits, cleanup, and SQL/BVT coverage.
Validation at current head
c177b2be5dc123a42129ca66d1a1e0a9cb0a7f47(rebased onf9a4444774):CGO_CFLAGS="-I$PWD/cgo -I$PWD/thirdparties/install/include" go test -mod=readonly ./pkg/sql/plan/function -count=1— PASS (12.765s).go vet— PASS.golangci-lint run --concurrency 1 -c .golangci.yml ./pkg/sql/plan/function— PASS (0 issues).make err-check, license header check, andgit diff --check— PASS.cases/func_regular_icu.test— 14/14, 100%.The latest SCA failure was resolved semantically: an equivalent append form replaces the staticcheck loop, and three unused non-deadline wrappers were removed; the deadline-based call paths remain unchanged.