Skip to content

Commit 4434909

Browse files
authored
chore: Bump datafusion to 41 (#548)
Signed-off-by: Xuanwo <[email protected]>
1 parent 68ef766 commit 4434909

File tree

5 files changed

+9
-6
lines changed

5 files changed

+9
-6
lines changed

crates/integrations/datafusion/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ keywords = ["iceberg", "integrations", "datafusion"]
3131
[dependencies]
3232
anyhow = { workspace = true }
3333
async-trait = { workspace = true }
34-
datafusion = { version = "39.0.0" }
34+
datafusion = { version = "41.0.0" }
3535
futures = { workspace = true }
3636
iceberg = { workspace = true }
3737
log = { workspace = true }

crates/integrations/datafusion/src/catalog.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ use std::any::Any;
1919
use std::collections::HashMap;
2020
use std::sync::Arc;
2121

22-
use datafusion::catalog::schema::SchemaProvider;
23-
use datafusion::catalog::CatalogProvider;
22+
use datafusion::catalog::{CatalogProvider, SchemaProvider};
2423
use futures::future::try_join_all;
2524
use iceberg::{Catalog, NamespaceIdent, Result};
2625

crates/integrations/datafusion/src/physical_plan/scan.rs

+4
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ impl IcebergTableScan {
7272
}
7373

7474
impl ExecutionPlan for IcebergTableScan {
75+
fn name(&self) -> &str {
76+
"IcebergTableScan"
77+
}
78+
7579
fn as_any(&self) -> &dyn Any {
7680
self
7781
}

crates/integrations/datafusion/src/schema.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use std::collections::HashMap;
2020
use std::sync::Arc;
2121

2222
use async_trait::async_trait;
23-
use datafusion::catalog::schema::SchemaProvider;
23+
use datafusion::catalog::SchemaProvider;
2424
use datafusion::datasource::TableProvider;
2525
use datafusion::error::Result as DFResult;
2626
use futures::future::try_join_all;

crates/integrations/datafusion/src/table.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ use std::sync::Arc;
2020

2121
use async_trait::async_trait;
2222
use datafusion::arrow::datatypes::SchemaRef as ArrowSchemaRef;
23+
use datafusion::catalog::Session;
2324
use datafusion::datasource::{TableProvider, TableType};
2425
use datafusion::error::Result as DFResult;
25-
use datafusion::execution::context;
2626
use datafusion::logical_expr::Expr;
2727
use datafusion::physical_plan::ExecutionPlan;
2828
use iceberg::arrow::schema_to_arrow_schema;
@@ -74,7 +74,7 @@ impl TableProvider for IcebergTableProvider {
7474

7575
async fn scan(
7676
&self,
77-
_state: &context::SessionState,
77+
_state: &dyn Session,
7878
_projection: Option<&Vec<usize>>,
7979
_filters: &[Expr],
8080
_limit: Option<usize>,

0 commit comments

Comments
 (0)