Commit c0bf17f
refactor(physical-expr): adopt proto ctx expr helpers in InList and Like
Replace the hand-rolled list maps and missing-required-field checks in
`InListExpr` and `LikeExpr`'s `try_to_proto`/`try_from_proto` with the
new `encode_children_expressions`, `decode_children_expressions`, and
`decode_required_expression` ctx methods.
Behavior note: `decode_required_expression` couples the presence check
with the decode, so `LikeExpr` now decodes children left-to-right rather
than validating both required fields up front. The end result is
unchanged (a missing required field still errors), but a present sibling
is decoded before a later missing field is reported; the
`try_from_proto_rejects_missing_pattern` test is updated accordingly.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent bc9f439 commit c0bf17f
2 files changed
Lines changed: 11 additions & 33 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
| 266 | + | |
| 267 | + | |
277 | 268 | | |
278 | 269 | | |
279 | 270 | | |
| |||
491 | 482 | | |
492 | 483 | | |
493 | 484 | | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
| 485 | + | |
499 | 486 | | |
500 | 487 | | |
501 | 488 | | |
| |||
4007 | 3994 | | |
4008 | 3995 | | |
4009 | 3996 | | |
4010 | | - | |
| 3997 | + | |
4011 | 3998 | | |
4012 | 3999 | | |
4013 | 4000 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | 193 | | |
205 | 194 | | |
206 | 195 | | |
207 | | - | |
208 | | - | |
| 196 | + | |
| 197 | + | |
209 | 198 | | |
210 | 199 | | |
211 | 200 | | |
| |||
483 | 472 | | |
484 | 473 | | |
485 | 474 | | |
486 | | - | |
| 475 | + | |
487 | 476 | | |
488 | 477 | | |
489 | 478 | | |
490 | 479 | | |
491 | 480 | | |
492 | 481 | | |
493 | 482 | | |
494 | | - | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
495 | 486 | | |
496 | 487 | | |
497 | 488 | | |
498 | 489 | | |
499 | | - | |
| 490 | + | |
500 | 491 | | |
501 | 492 | | |
502 | 493 | | |
| |||
0 commit comments