Skip to content

self-join followed by a projection with duplicated names results in panic #671

@jimexist

Description

@jimexist

Describe the bug
A clear and concise description of what the bug is.

this is most likely on how we deal with self-joins

To Reproduce
Steps to reproduce the behavior:

SELECT
  t1.c9, t2.c9
FROM test t1
INNER JOIN test t2
ON t1.c9 = t2.c9;
thread 'main' panicked at 'index out of bounds: the len is 1 but the index is 1', ~/.cargo/registry/src/github.com-1ecc6299db9ec823/arrow-4.4.0/src/datatypes/schema.rs:165:10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Expected behavior
A clear and concise description of what you expected to happen.

this would work in Postgres

Additional context
Add any other context about the problem here.

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