For query select count() from table, the project is empty, so table should not scan any columns and return an RecordBatch with empty arrays and the true row count (by parquet metadata).
Yet it scans all columns.
// Empty column names means to select all columns
column_names: Vec<String>,
/// Select all columns.
pub fn select_all(mut self) -> Self {
self.column_names.clear();
self
}
For query
select count() from table
, the project is empty, so table should not scan any columns and return an RecordBatch with empty arrays and the true row count (by parquet metadata).Yet it scans all columns.