Repository navigation
fix iscp start - #9
Merged
Merged
Conversation
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
Which issue(s) this PR fixes:
issue #
What this PR does / why we need it: