-
Notifications
You must be signed in to change notification settings - Fork 1
Array view returning wrong length #48
Copy link
Copy link
Open
Description
Hi,
Consider below example:
let table = Table::new(
"users".into(),
vec![
FieldArray::from_arr("id", arr_i32![1, 2, 3]),
FieldArray::from_arr("name", arr_str32!["alice", "bob", "charlie"]),
]
.into(),
);
// let v = table.r(&[1, 2]);
let v = table.r(1..=2);
let vv: &[i32] = &v.cols[0].array.inner::<IntegerArray<i32>>();
dbg!(vv.len());In this case debug will return 3. Expected value is 2. However, while using let v = table.r(&[1, 2]) it would return length of 2 as expected. I think the expected outcome is the result should be consistent and return same value as they give effectively same indexes to filter.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels