Skip to content

panic when evaluating trivial WHERE with a CTE #15386

@davidhewitt

Description

@davidhewitt

Describe the bug

I am testing against Datafusion main (d68fca9).

With the query below I get a crash.

To Reproduce

DataFusion CLI v46.0.1
> with test AS (SELECT i as needle FROM generate_series(1, 10) t(i))
select count(*) from test WHERE 1 = 1;
Internal error: Physical input schema should be the same as the one converted from logical input schema. Differences: 
        - Different number of fields: (physical) 1 vs (logical) 0.
This was likely caused by a bug in DataFusion's code and we would welcome that you file an bug report in our issue tracker

Expected behavior

No response

Additional context

No response

Metadata

Metadata

Assignees

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