Skip to content

Commit

Permalink
Cargo fmt update.
Browse files Browse the repository at this point in the history
  • Loading branch information
Omega359 committed Sep 9, 2024
1 parent 18d9802 commit b5fed20
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions datafusion/core/src/datasource/file_format/write/demux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,9 @@ fn compute_partition_keys_by_row<'a>(
let date = NaiveDate::from_num_days_from_ce_opt(
EPOCH_DAYS_FROM_CE + array.value(i),
)
.unwrap().format(format).to_string();
.unwrap()
.format(format)
.to_string();
partition_values.push(Cow::from(date));
}
}
Expand All @@ -384,7 +386,9 @@ fn compute_partition_keys_by_row<'a>(
let date = NaiveDate::from_num_days_from_ce_opt(
EPOCH_DAYS_FROM_CE + (array.value(i) / 86_400_000) as i32,
)
.unwrap().format(format).to_string();
.unwrap()
.format(format)
.to_string();
partition_values.push(Cow::from(date));
}
}
Expand Down

0 comments on commit b5fed20

Please sign in to comment.