Skip to content

Commit fbd8b51

Browse files
committed
run cargo fmt
1 parent ff70bc3 commit fbd8b51

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

datafusion-postgres/src/handlers.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,13 @@ impl SimpleQueryHandler for DfSessionService {
9494
.map_err(|e| PgWireError::ApiError(Box::new(e)))?;
9595

9696
// Extract count field from the first batch
97-
let rows_affected = result.first()
97+
let rows_affected = result
98+
.first()
9899
.and_then(|batch| batch.column_by_name("count"))
99-
.and_then(|col| col.as_any().downcast_ref::<datafusion::arrow::array::UInt64Array>())
100+
.and_then(|col| {
101+
col.as_any()
102+
.downcast_ref::<datafusion::arrow::array::UInt64Array>()
103+
})
100104
.map_or(0, |array| array.value(0) as usize);
101105

102106
// Create INSERT tag with the affected row count

0 commit comments

Comments
 (0)