pyflink.table.expression.Expression.array_slice#
- Expression.array_slice(start_offset, end_offset=None) pyflink.table.expression.Expression [source]#
Returns a subarray of the input array between ‘start_offset’ and ‘end_offset’ inclusive. The offsets are 1-based however 0 is also treated as the beginning of the array. Positive values are counted from the beginning of the array while negative from the end. If ‘end_offset’ is omitted then this offset is treated as the length of the array. If ‘start_offset’ is after ‘end_offset’ or both are out of array bounds an empty array will be returned. Returns null if any input is null.
New in version 1.12.0.