Skip to content

collect drops error("missing"), hangs sometimes on null #5759

@chrismo

Description

@chrismo
Image
❯ super -z -c "[1, error('missing'),'a'] | over this | collect(this)"       
[1,"a"]

Actually, adding null to this input array on the CLI just hangs, and I can't even Ctrl-C out, I had to kill the process.

❯ super -z -c "[1, error('missing'),'a',null] | over this | collect(this)"       

Some instances with null are ok

❯ super -z -c "[null] | over this | collect(this)"      
null

❯ super -z -c "[null,1] | over this | collect(this)"      
[1]

# this one hangs:
❯ super -z -c "[null,1,'a'] | over this | collect(this)"      

The hang obviously feels like a bug, but I'm not sure what the expected behavior is with collect and error("missing") and null

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions