Skip to content

Incorrect conversion of FileScanConfig in from_proto.rs #1537

@richox

Description

@richox

Describe the bug
currently an empty scan projection is converted to None, resulting a slow full table scan for queries like select count(0) from tbl,

To Reproduce
execute select count(0) from tbl and see the converted plan.

Expected behavior
projection should be an empty list other then None

Screenshots

Additional context

the buggy code:

let projection = if projection.is_empty() {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions