Skip to content

Commit 9b2ded7

Browse files
Shefeek JinnahShefeek Jinnah
authored andcommitted
Undo changes in table.rs
1 parent 15068d2 commit 9b2ded7

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/table.rs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -320,21 +320,6 @@ impl TableProvider for DuckLakeTable {
320320
execs.push(exec);
321321
}
322322

323-
// Handle empty tables (no data files)
324-
if execs.is_empty() {
325-
// Return an EmptyExec for empty tables
326-
use datafusion::physical_plan::empty::EmptyExec;
327-
let projected_schema = match projection {
328-
Some(proj) => {
329-
let fields: Vec<_> =
330-
proj.iter().map(|&i| self.schema.field(i).clone()).collect();
331-
Arc::new(Schema::new(fields))
332-
},
333-
None => self.schema.clone(),
334-
};
335-
return Ok(Arc::new(EmptyExec::new(projected_schema)));
336-
}
337-
338323
// Combine execution plans
339324
combine_execution_plans(execs)
340325
}

0 commit comments

Comments
 (0)