Skip to content

Commit 180b5e5

Browse files
committed
fixes
Signed-off-by: Robert Kruszewski <[email protected]>
1 parent 8d0c502 commit 180b5e5

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

vortex-duckdb/src/convert/vector.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ pub fn flat_vector_to_vortex(vector: &mut Vector, len: usize) -> VortexResult<Ar
108108
)
109109
.into_array();
110110
Ok(
111-
TemporalArray::new_timestamp(arr, TimeUnit::Nanoseconds, Some("UTC".to_string()))
111+
TemporalArray::new_timestamp(arr, TimeUnit::Microseconds, Some("UTC".to_string()))
112112
.into_array(),
113113
)
114114
}

vortex-duckdb/src/duckdb/vector.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,6 @@ mod tests {
381381

382382
let validity = vector.validity_ref(len);
383383
let validity = validity.to_validity();
384-
assert_eq!(validity.maybe_len(), Some(1));
385384
assert!(validity.is_null(0));
386385
}
387386

@@ -398,7 +397,6 @@ mod tests {
398397

399398
let validity = vector.validity_ref(len);
400399
let validity = validity.to_validity();
401-
assert_eq!(validity.maybe_len(), Some(1));
402400
assert!(validity.is_valid(0));
403401
}
404402

@@ -431,7 +429,6 @@ mod tests {
431429

432430
let validity = vector.validity_ref(len);
433431
let validity = validity.to_validity();
434-
assert_eq!(validity.maybe_len(), Some(len));
435432
// Check that all positions are null
436433
assert_eq!(validity, Validity::AllInvalid);
437434
}

0 commit comments

Comments
 (0)