Function datafusion_physical_expr::unicode_expressions::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