数据湖探索 DLI-substr/substring:参数说明

时间:2025-02-12 14:55:44

参数说明

表1 参数说明

参数

是否必选

参数类型

说明

str

STRING

如果输入为BIGINT、DECIMAL、DOUBLE或DATETIME类型,则会隐式转换为STRING类型后参与运算。

start_position

BIGINT

表示起始位置。默认起始位置为1。

如果start_position取值为正,则从左边开始。如果start_position取值为负,则从右边开始。

length

BIGINT

表示子串的长度值。值必须大于0。

support.huaweicloud.com/sqlref-spark-dli/dli_spark_substr_substring.html