Skip to content

Commit

Permalink
chore: remove schema conversion in scan
Browse files Browse the repository at this point in the history
  • Loading branch information
roeap committed May 1, 2023
1 parent 84d35f8 commit 86513e6
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions rust/src/delta_datafusion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -377,21 +377,6 @@ impl TableProvider for DeltaTable {
.physical_arrow_schema(self.object_store())
.await?;

let schema = Arc::new(ArrowSchema::new(
schema
.fields()
.iter()
.map(|field| match field.data_type() {
ArrowDataType::Timestamp(TimeUnit::Microsecond, tz) => ArrowField::new(
field.name().clone(),
ArrowDataType::Timestamp(TimeUnit::Nanosecond, tz.clone()),
field.is_nullable(),
),
_ => field.clone(),
})
.collect(),
));

register_store(self, session.runtime_env().clone());

let filter_expr = conjunction(filters.iter().cloned())
Expand Down

0 comments on commit 86513e6

Please sign in to comment.