Skip to content

Panic probably related to EXPLODE #886

Closed
@juanjux

Description

@juanjux

This query:

SELECT
    r.repository_id AS repo,
    c.committer_when AS date,
    file_path AS path,
    EXPLODE(UAST_EXTRACT(UAST(f.blob_content, 'Go', '//uast:Import/Path'), 'Value')) AS imports
FROM
    refs AS r
    NATURAL JOIN commits AS c
    NATURAL JOIN commit_files AS cm
    NATURAL JOIN files AS f
WHERE r.ref_name = 'HEAD'
    AND f.file_path REGEXP('.*.go$')
    AND f.file_path NOT REGEXP '^vendor.*'
    AND NOT IS_BINARY(f.blob_content)
    AND f.blob_size < 1000000
LIMIT 10

Produced a panic with this output (reduced):

time="2019-06-19T15:59:58Z" level=error msg=
"mysql_server caught panic:\nunresolved column is a placeholder node, but IsNullable was called
/usr/local/go/src/runtime/panic.go:513
...)"

Removing the EXPLODE made it works. Tested with beta2 and beta3.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions