datafusion_functions::unicode::left

Function left

Source
pub fn left<T: OffsetSizeTrait>(args: &[ArrayRef]) -> Result<ArrayRef>
Expand description

Returns first n characters in the string, or when n is negative, returns all but last |n| characters. left(‘abcde’, 2) = ‘ab’ The implementation uses UTF-8 code points as characters