Commit 957ec04
authored
fix: Fix CaseClauseError when filtering/sorting on doubly-nested embedded resource fields (#217)
`split_at_paths` accumulates path segments as it walks a `get_path` expression.
The `:bracket` arm only matched `{:bracket, path, nil, nil}` — the initial empty
state. After the first embedded hop the accumulator carries real type and
constraint info, so no clause matched and a `CaseClauseError` was raised.
Widening the pattern to `{:bracket, path, _, _}` allows consecutive JSONB
bracket accesses to keep accumulating into the same segment, which `do_get_path`
already handles correctly via `jsonb_extract_path_text(col, 'key1', 'key2', ...)`.1 parent 3ced0d2 commit 957ec04
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3064 | 3064 | | |
3065 | 3065 | | |
3066 | 3066 | | |
3067 | | - | |
| 3067 | + | |
3068 | 3068 | | |
3069 | 3069 | | |
3070 | 3070 | | |
| |||
0 commit comments