Skip to content

Commit 9d7c1c3

Browse files
committed
fmt not working?
1 parent 2f9efa8 commit 9d7c1c3

File tree

1 file changed

+9
-5
lines changed
  • crates/integrations/datafusion/src/physical_plan

1 file changed

+9
-5
lines changed

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

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -207,17 +207,21 @@ impl ExecutionPlan for IcebergWriteExec {
207207
let data_file = builder.partition_spec_id(spec_id).build().map_err(|e| {
208208
DataFusionError::Execution(format!("Failed to build data file: {}", e))
209209
})?;
210-
210+
211211
// Convert to DataFileSerde
212-
let serde = DataFileSerde::try_from(data_file, &partition_type, is_version_1).map_err(|e| {
213-
DataFusionError::Execution(format!("Failed to convert to DataFileSerde: {}", e))
212+
let serde = DataFileSerde::try_from(data_file, &partition_type, is_version_1)
213+
.map_err(|e| {
214+
DataFusionError::Execution(format!(
215+
"Failed to convert to DataFileSerde: {}",
216+
e
217+
))
214218
})?;
215-
219+
216220
// Serialize to JSON
217221
let json = serde_json::to_string(&serde).map_err(|e| {
218222
DataFusionError::Execution(format!("Failed to serialize to JSON: {}", e))
219223
})?;
220-
224+
221225
println!("Serialized data file: {}", json); // todo remove log
222226
Ok(json)
223227
})

0 commit comments

Comments
 (0)