Skip to content

project_column_with_filters_that_cant_pushed_down_always_true only passes if plan is optimized twice #3283

@andygrove

Description

@andygrove

Describe the bug
In execute_to_batches, we create the physical plan from an optimized logical plan. This results in the plan being optimized twice. Fixing this causes a regression in project_column_with_filters_that_cant_pushed_down_always_true.

ArrowError(InvalidArgumentError(\"must either specify a row count or at least one column\")) at Executing physical plan for 'select * from (select 1 as a) f where f.a=1;'

To Reproduce
Modify execute_to_batches to pass the unoptimized logical plan to create_physical_plan.

Expected behavior
Test should pass

Additional context
None

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