Skip to content

Commit

Permalink
Change the default Delta timestamp to Nanoseconds for Arrow (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
fvaleye authored Apr 13, 2021
1 parent 033d690 commit 3d3a32c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rust/src/delta_arrow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ impl TryFrom<&schema::SchemaDataType> for ArrowDataType {
Ok(ArrowDataType::Date32)
}
"timestamp" => {
// Microsecond precision timestamp without a timezone.
Ok(ArrowDataType::Timestamp(TimeUnit::Microsecond, None))
// Issue: https://github.com/delta-io/delta/issues/643
Ok(ArrowDataType::Timestamp(TimeUnit::Nanosecond, None))
}
s => Err(ArrowError::SchemaError(format!(
"Invalid data type for Arrow: {}",
Expand Down

0 comments on commit 3d3a32c

Please sign in to comment.