mirror of
https://github.com/amir20/dozzle.git
synced 2026-08-07 11:44:45 +00:00
bf090aedfe
When a container emits JSON messages with mixed shapes, DuckDB infers `m` as the JSON type instead of a STRUCT, and `unnest(m)` rejects JSON (Binder Error: UNNEST() can only be applied to lists, structs and NULL, not JSON). map_inference_threshold = -1 only ruled out the MAP fallback, not the JSON one. Try the struct unnest first (unchanged for uniform messages), and on failure flatten the union of object keys with json_keys + json_extract_string. Dotted keys are quoted in the JSON path so they are read as field names rather than nesting. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>