Skip to content

Commit 6d280ba

Browse files
authored
Upgrade datafusion to 51, arrow to 57 (#151)
1 parent 2d537ad commit 6d280ba

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ readme = "README.md"
1111
repository = "https://github.com/datafusion-contrib/datafusion-federation"
1212

1313
[workspace.dependencies]
14-
arrow-json = "56"
14+
arrow-json = "57"
1515
async-stream = "0.3.5"
1616
async-trait = "0.1.83"
17-
datafusion = "50.0.0"
17+
datafusion = "51.0.0"
1818
datafusion-federation = { path = "./datafusion-federation", version = "0.4.10" }
1919
futures = "0.3.31"
2020
tokio = { version = "1.41", features = ["full"] }

datafusion-federation/src/sql/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ pub struct VirtualExecutionPlan {
166166

167167
impl VirtualExecutionPlan {
168168
pub fn new(plan: LogicalPlan, executor: Arc<dyn SQLExecutor>, statistics: Statistics) -> Self {
169-
let schema: Schema = plan.schema().as_ref().into();
169+
let schema: Schema = plan.schema().as_arrow().clone();
170170
let props = PlanProperties::new(
171171
EquivalenceProperties::new(Arc::new(schema)),
172172
Partitioning::UnknownPartitioning(1),
@@ -194,8 +194,8 @@ impl VirtualExecutionPlan {
194194
}
195195

196196
fn schema(&self) -> SchemaRef {
197-
let df_schema = self.plan.schema().as_ref();
198-
Arc::new(Schema::from(df_schema))
197+
let df_schema = self.plan.schema().as_arrow().clone();
198+
Arc::new(df_schema)
199199
}
200200

201201
fn final_sql(&self) -> Result<String> {

0 commit comments

Comments
 (0)