Skip to content

Commit 8ebe6c6

Browse files
committed
cast in scalar_at
Signed-off-by: Andrew Duffy <andrew@a10y.dev>
1 parent d0a14c4 commit 8ebe6c6

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

vortex-array/src/arrays/patched/array.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ use crate::stats::ArrayStats;
2727
use crate::validity::Validity;
2828

2929
/// An array that partially "patches" another array with new values.
30-
///
31-
/// Patched arrays implement the set of nodes that do this instead here...I think?
3230
#[derive(Debug, Clone)]
3331
pub struct PatchedArray {
3432
/// The inner array that is being patched. This is the zeroth child.

vortex-array/src/arrays/patched/vtable/operations.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ impl OperationsVTable<Patched> for Patched {
2828
// be slower.
2929
for (index, patch_index) in accessor.offsets_iter(chunk, lane) {
3030
if patch_index == chunk_index {
31-
return array.values.scalar_at(index);
31+
return array.values.scalar_at(index)?.cast(array.dtype());
3232
}
3333
}
3434

0 commit comments

Comments
 (0)