left(value: string, length: int64) -> string

Returns a leftmost substring of its input.

Domain

This is a scalar function (calculates a single output value for a single input row).

Categories

Examples

make_col leftstring:left(somestring, 4)

Will make a 'leftstring' column with the left 4 characters of the text in the 'somestring' column.