Repository navigation
sap: optional CATS code fields bind three-valued through validity planes - #1588
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011BMJnDBAfzcuQh5HeT39Rh
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011BMJnDBAfzcuQh5HeT39Rh
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Warning Billing warning: we have not been able to collect payment for this subscription for more than 72 hours. Please update the payment method or pay any pending invoices in Billing to avoid service interruption. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
fix #1585 attribution Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011BMJnDBAfzcuQh5HeT39Rh
Problem
CatsBinderrefused every optional CATS field. CATS stores NULL as a sentinel (code 0, oru32::MAXfor PERNR), so a<>read through the lane alone would keep NULL rows. Quack's bind already supports a validity plane per field (BoundField.validity, three-valuedDraft::bind), but CATS never built one.Change
CatsBatch::bindbuilds one validity plane for each optional field with aU32carrier. The list isOPTIONAL_CODE_FIELDS = [6, 7, 8, 16, 20, 21], and a unit test pins it againstFIELDS.CatsBatch::masks(live)returns the planes in order: live first, then the validity planes.CatsBinder::fieldbinds an optional field withvalidity: Some(validity_mask(..)).FieldKindand stay refused.Tests
optional_and_instant_fields_are_refused_not_read_through_sentinelsis replaced by two new tests:optional_fields_bind_three_valued_through_a_validity_plane:=and<>both drop NULL rows (n = 3, 64, 65, 200). A can-fire check shows that reading the sentinel lane alone keeps NULL rows.every_optional_code_field_has_a_plane_and_instants_stay_refused: six distinct planes; NUMC literals for the approver PERNR; the instant fields stay refused.validity: Noneturns both new tests red.lance-graph-sap: all tests pass; clippy-D warningsis clean.lance-graph-glove-parity: all tests pass. Two hypothesis notes that said "CatsBinder refuses it" are updated.Found in the bind-DTO synergy check (#1587).
🤖 Generated with Claude Code
https://claude.ai/code/session_011BMJnDBAfzcuQh5HeT39Rh
Generated by Claude Code