Thanks to visit codestin.com
Credit goes to github.com

Skip to content

from on URL inside a subquery hangs when the subquery runs over more than one input value #7086

Description

@philrz

With the attached simple HTTP server.py running (python3 server.py), the following hangs:

$ echo '{n:1} {n:2}' | super -s -c "c := (from 'http://127.0.0.1:8137' (format json) | count())" -

Details

Repro is with super commit a1e09f7.

The problem seems unique to having more than one input value, as this works ok:

$ super -version
Version: v0.3.0-228-ga1e09f726

$ echo '{n:1}' | super -s -c "c := (from 'http://127.0.0.1:8137' (format json) | count())" -
{n:1,c:1}

It also works if the subquery is using from to pull multiple input values from a non-URL source.

$ echo '{"ok":1} {"ok":1}' > input.sup &&
  echo '{n:1} {n:2}' | super -s -c "c := (from 'input.sup' | count())" -
{n:1,c:2}
{n:2,c:2}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions