Commit f899f89
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 83eae7c commit f899f89
2 files changed
Lines changed: 18 additions & 31 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 | + | |
| 268 | + | |
277 | 269 | | |
278 | 270 | | |
279 | 271 | | |
| |||
491 | 483 | | |
492 | 484 | | |
493 | 485 | | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
| 486 | + | |
499 | 487 | | |
500 | 488 | | |
501 | 489 | | |
| |||
4007 | 3995 | | |
4008 | 3996 | | |
4009 | 3997 | | |
4010 | | - | |
| 3998 | + | |
4011 | 3999 | | |
4012 | 4000 | | |
4013 | 4001 | | |
| |||
| 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 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
209 | 206 | | |
210 | 207 | | |
211 | 208 | | |
| |||
491 | 488 | | |
492 | 489 | | |
493 | 490 | | |
494 | | - | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
495 | 494 | | |
496 | 495 | | |
497 | 496 | | |
| |||
0 commit comments