zed icon indicating copy to clipboard operation
zed copied to clipboard

value.Under loops forever if called with null union

Open jamii opened this issue 2 years ago • 0 comments

This loop never ends because Untag returns typ, nil.

To repro:

> dlv debug cmd/zq/main.go -- 'yield cast(this, <({x: string}, string)>) | yield this.x' ~/test.json
(dlv) break github.com/brimdata/zed.(*Value).Under
Breakpoint 1 set at 0x621d8b for github.com/brimdata/zed.(*Value).Under() ./value.go:434
(dlv) c
...

jamii avatar Nov 03 '23 21:11 jamii