Skip to content

Commit

Permalink
Update ParquetTimeUnit import
Browse files Browse the repository at this point in the history
  • Loading branch information
Weijun-H committed Feb 7, 2024
1 parent 6c41090 commit 2192cf5
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ mod tests {
use parquet::arrow::async_reader::ParquetObjectReader;
use parquet::basic::LogicalType;
use parquet::data_type::{ByteArray, FixedLenByteArray};
use parquet::format::TimeUnit as parse_time_unit;
use parquet::format::TimeUnit as ParquetTimeUnit;
use parquet::{
basic::Type as PhysicalType,
file::{metadata::RowGroupMetaData, statistics::Statistics as ParquetStatistics},
Expand Down Expand Up @@ -1084,7 +1084,7 @@ mod tests {
)]));
let field = PrimitiveTypeField::new("c1", PhysicalType::INT64).with_logical_type(
LogicalType::Timestamp {
unit: parse_time_unit::NANOS(Default::default()),
unit: ParquetTimeUnit::NANOS(Default::default()),
is_adjusted_to_u_t_c: false,
},
);
Expand Down Expand Up @@ -1169,7 +1169,7 @@ mod tests {
)]));
let field = PrimitiveTypeField::new("c1", PhysicalType::INT64).with_logical_type(
LogicalType::Timestamp {
unit: parse_time_unit::MICROS(Default::default()),
unit: ParquetTimeUnit::MICROS(Default::default()),
is_adjusted_to_u_t_c: false,
},
);
Expand Down Expand Up @@ -1197,7 +1197,7 @@ mod tests {
)]));
let field = PrimitiveTypeField::new("c1", PhysicalType::INT64).with_logical_type(
LogicalType::Timestamp {
unit: parse_time_unit::MILLIS(Default::default()),
unit: ParquetTimeUnit::MILLIS(Default::default()),
is_adjusted_to_u_t_c: false,
},
);
Expand Down Expand Up @@ -1225,7 +1225,7 @@ mod tests {
)]));
let field = PrimitiveTypeField::new("c1", PhysicalType::INT64).with_logical_type(
LogicalType::Timestamp {
unit: parse_time_unit::MILLIS(Default::default()),
unit: ParquetTimeUnit::MILLIS(Default::default()),
is_adjusted_to_u_t_c: false,
},
);
Expand Down

0 comments on commit 2192cf5

Please sign in to comment.