Skip to content

Commit 2d18f57

Browse files
committed
format
1 parent ccf93ed commit 2d18f57

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

native/core/src/execution/planner.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2668,9 +2668,9 @@ fn partition_value_to_literal(
26682668
Some(Value::LongVal(v)) => iceberg::spec::Literal::long(*v),
26692669
Some(Value::DateVal(v)) => {
26702670
// Convert i64 to i32 for date (days since epoch)
2671-
let days = (*v).try_into().map_err(|_| {
2672-
GeneralError(format!("Date value out of range: {}", v))
2673-
})?;
2671+
let days = (*v)
2672+
.try_into()
2673+
.map_err(|_| GeneralError(format!("Date value out of range: {}", v)))?;
26742674
iceberg::spec::Literal::date(days)
26752675
}
26762676
Some(Value::TimestampVal(v)) => iceberg::spec::Literal::timestamp(*v),
@@ -2716,9 +2716,8 @@ fn partition_value_to_literal(
27162716
bytes.len()
27172717
)));
27182718
}
2719-
let uuid = uuid::Uuid::from_slice(bytes).map_err(|e| {
2720-
GeneralError(format!("Failed to parse UUID: {}", e))
2721-
})?;
2719+
let uuid = uuid::Uuid::from_slice(bytes)
2720+
.map_err(|e| GeneralError(format!("Failed to parse UUID: {}", e)))?;
27222721
iceberg::spec::Literal::uuid(uuid)
27232722
}
27242723
Some(Value::FixedVal(bytes)) => iceberg::spec::Literal::fixed(bytes.to_vec()),

0 commit comments

Comments
 (0)