Skip to content

Commit

Permalink
Update acceptance/src/data.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Ryan Johnson <[email protected]>
  • Loading branch information
rtyler and scovich committed Jan 25, 2025
1 parent 919eba8 commit 760583c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions acceptance/src/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,8 @@ fn assert_schema_fields_match(schema: &Schema, golden: &Schema) {
fn normalize_col(col: Arc<dyn Array>) -> Arc<dyn Array> {
if let DataType::Timestamp(unit, Some(zone)) = col.data_type() {
if **zone == *"+00:00" {
delta_kernel::arrow::compute::cast(
&col,
&DataType::Timestamp(*unit, Some("UTC".into())),
)
.expect("Could not cast to UTC")
let data_type = DataType::Timestamp(*unit, Some("UTC".into()));
delta_kernel::arrow::compute::cast(&col, &data_type).expect("Could not cast to UTC")
} else {
col
}
Expand Down

0 comments on commit 760583c

Please sign in to comment.