We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa87260 commit 74035bcCopy full SHA for 74035bc
datafusion/functions/src/unicode/character_length.rs
@@ -141,6 +141,7 @@ where
141
if is_array_ascii_only {
142
let values: Vec<_> = (0..array.len())
143
.map(|i| {
144
+ // Safety: we are iterating with array.len() so the index is always valid
145
let value = unsafe { array.value_unchecked(i) };
146
T::Native::usize_as(value.len())
147
})
@@ -149,6 +150,7 @@ where
149
150
} else {
151
152
153
154
155
if value.is_ascii() {
156
0 commit comments