Skip to content

LogicalPlanBuilder::scan_csv creates scans with invalid table names #2278

@andygrove

Description

@andygrove

Describe the bug
This is a placeholder for now. I will add more detail in the next day or so, but the basic issue is that if we call LogicalPlanBuilder.scan_csv with a file named employee.csv then we end up with a TableScan with a table_name of employee.csv. If we try and find a table with this name in the catalog then it would look for a table named csv in schema employee.

To Reproduce
I found during this during some refactoring.

Expected behavior
Table name should be valid.

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