Skip to content

Cannot find the original scope of the column 'id' #81431

@GrigoryPervakov

Description

@GrigoryPervakov

Describe the bug

I have a minified reproducer

CREATE TABLE t (id Int64, path String) ENGINE = MergeTree ORDER BY path;

SELECT explain FROM (
  SELECT * FROM viewExplain('EXPLAIN', (
    SELECT id FROM t WHERE a
  )))
WHERE equals(id AS a)

https://fiddle.clickhouse.com/587ca7d2-e2de-494c-91c4-c9a9069f9a4e

https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=79969&sha=d4833246630a2437f91d425e2721475fe04e34bb&name_0=PR&name_1=AST%20fuzzer%20%28amd_ubsan%29

How to reproduce

No response

Error message and/or stacktrace

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    fuzzProblem found by one of the fuzzers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions