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() { |