Skip to content
2 changes: 0 additions & 2 deletions parquet-variant-compute/src/shred_variant.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1147,7 +1147,6 @@ mod tests {
}

#[test]
// TODO(#9518): Drop this once variant_get tests build shredded fixtures via shred_variant.
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I realized the tests we use in variant_get.rs create a perfectly shredded array, so it's not doing full multi type validation.

We should keep the shred_variant.rs tests as is.

fn test_largeutf8_shredding() {
let input = VariantArray::from_iter(vec![
Some(Variant::from("hello")),
Expand Down Expand Up @@ -1204,7 +1203,6 @@ mod tests {
}

#[test]
// TODO(#9518): Drop this once variant_get tests build shredded fixtures via shred_variant.
fn test_largebinary_shredding() {
let input = VariantArray::from_iter(vec![
Some(Variant::from(&b"\x00\x01\x02"[..])),
Expand Down
2 changes: 1 addition & 1 deletion parquet-variant-compute/src/type_conversion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ impl_primitive_from_variant!(datatypes::Time32MillisecondType, as_time_utc, |v|
}
});
impl_primitive_from_variant!(datatypes::Time64MicrosecondType, as_time_utc, |v| {
Some((v.num_seconds_from_midnight() * 1_000_000 + v.nanosecond() / 1_000) as i64)
Some(v.num_seconds_from_midnight() as i64 * 1_000_000 + v.nanosecond() as i64 / 1_000)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this necessary?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

});
impl_primitive_from_variant!(datatypes::Time64NanosecondType, as_time_utc, |v| {
// convert micro to nano seconds
Expand Down
Loading
Loading