-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
arrowChanges to the arrow crateChanges to the arrow crateenhancementAny new improvement worthy of a entry in the changelogAny new improvement worthy of a entry in the changelog
Description
Describe the bug
Casting from i32 to utf8View is not currently supported
To Reproduce
#[test]
fn test_cast_i32_to_utf8view() {
let array = Int32Array::from(vec![5, 6, 7, 8, 9]);
let b = cast(&array, &DataType::Utf8View).unwrap();
let c = b.as_any().downcast_ref::<StringViewArray>().unwrap();
assert_eq!("5", c.value(0));
assert_eq!("6", c.value(1));
assert_eq!("7", c.value(2));
assert_eq!("8", c.value(3));
assert_eq!("9", c.value(4));
}
Expected behavior
Casting from i32 to utf8view arrays is supported.
Additional context
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
arrowChanges to the arrow crateChanges to the arrow crateenhancementAny new improvement worthy of a entry in the changelogAny new improvement worthy of a entry in the changelog