Skip to main content
Version: 2.1.0

Split

Transform plugin : Split [Flink]

Description​

A string cutting function is defined, which is used to split the specified field in the Sql plugin.

Options​

nametyperequireddefault value
separatorstringno,
fieldsarrayyes-
common-optionsstringno-

separator [string]​

The specified delimiter, the default is ,

fields [array]​

The name of each field after split

common options [string]​

Transform plugin common parameters, please refer to Transform Plugin for details

Examples​

  # This just created a udf called split
Split{
separator = "#"
fields = ["name","age"]
}
# Use the split function (confirm that the fake table exists)
sql {
sql = "select * from (select info,split(info) as info_row from fake) t1"
}