Repository navigation
Conversation
Field references and computed right operands cannot be represented by a simple filter descriptor. Use the existing literal extractor in both comparison branches so those operands take the documented rejection path. Law The public extraction helper preserves supported literal filters and rejects the entire expression when a comparison cannot be represented. Reach 180 histories cover six operators, direct and negated forms, literal null, and conjunctions with a supported companion in either position. RED 72 histories returned a null descriptor for a nonliteral operand. GREEN 224 extraction and expression-helper tests pass. An on-demand loader probe rejects the computed comparison before forwarding a filter and retains both descriptors in the literal-null control. Mutant Restoring only the negated fallback fails 36 histories. Rejecting literal null fails another 36 histories. Limits The oracle observes the public helper return or rejection. The loader probe covers a local callback, with provider execution outside the test scope. Fixes TanStack#2381
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
🎯 Changes
Fixes #2381. The simple comparison helper now rejects right-hand field references and computed expressions through its existing error path. Literal
nullis still a filter value, including when the comparison is negated or combined with another supported condition.🔬 Oracle Coverage
The coverage map records the owner under Simple WHERE comparison extraction. The oracle checks the public helper across 180 histories with six operators, direct and negated forms, and a supported condition before or after the comparison or none.
✅ Checklist
pnpm test.pnpm --filter @tanstack/db test --maxWorkers=2 --coverage.enabled=falsewith Node 24.8.0 and pnpm 11.1.0. All 56,136 tests in 434 files passed with no type errors.🚀 Release Impact
AI disclosure: OpenAI Codex (GPT-6.2 Sol, xhigh, standard speed) investigated and authored the change, oracle and coverage record, and ran the validation.
Summary by CodeRabbit
null.