Skip to content

fix iscp start - #9

Merged
cpegeric merged 5 commits into
cpegeric:iscp_finalfrom
jiangxinmeng1:iscp_final
Oct 21, 2025
Merged

cpegeric merged 5 commits into
cpegeric:iscp_finalfrom
jiangxinmeng1:iscp_final

Conversation

@jiangxinmeng1

Copy link
Copy Markdown

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

Which issue(s) this PR fixes:

issue #

What this PR does / why we need it:

@cpegeric
cpegeric merged commit 0c0156a into cpegeric:iscp_final Oct 21, 2025
cpegeric added a commit that referenced this pull request Jul 6, 2026
Resolve four findings from the WAND retrieval-index self-review:

- B1 uuid membership prefilter: docFilterMembership.Contains probed a uuid via
  encodePk (36-char canonical string), but the membership filter is built from
  the source uuid's raw 16 bytes (CBloomFilter.addFixedVector) — every candidate
  was rejected, so a uuid-PK retrieval query with a WHERE prefilter returned zero
  rows. Probe the raw 16 bytes to match. (Native temporal/decimal PKs were already
  correct: their encodePk output IS the raw representation the bloom hashes.)
- #4 cfg JSON: build the WAND search TVF config with json.Marshal instead of raw
  fmt.Sprintf, so a schema name containing a quote/backslash no longer produces
  malformed JSON that the search side's Unmarshal rejects.
- #5 retrieval fail-fast: a parser='retrieval' index is maintained only as WAND
  frames (classic postings go stale), so error instead of silently falling back to
  fulltext_index_scan when its WAND store/metadata siblings can't be resolved.
- #6 CDC-blob bounds check: readLenBytes/readLenString bounds-check the length
  against remaining bytes + io.ReadFull, so a truncated pk/text errors cleanly
  rather than silently zero-filling.

Regression tests: TestDocFilterMembershipUuid, TestDecodeWandCdcTruncatedPk.

Decision-logged (not fixed): B2 (limit/offset, skipped per request); B3 (insert+
delete-same-window phantom — needs reachability confirmation + a coalescing change
that provably preserves the working UPSERT ordering); #7/#8 (dead parallel codecs
entangled with live helpers — dedicated cleanup); #9 (hot-path micro-opt, low gain).

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants