Module replace

Module replace 

Source
Expand description

ScalarUDFImpl definitions for array_replace, array_replace_n and array_replace_all functions.

Structsยง

ArrayReplace
ArrayReplaceAll ๐Ÿ”’
ArrayReplaceN ๐Ÿ”’

Functionsยง

array_replace
replaces the first occurrence of the specified element with another specified element.
array_replace_all
replaces all occurrences of the specified element with another specified element.
array_replace_all_inner ๐Ÿ”’
array_replace_all_udf
ScalarFunction that returns a ScalarUDF for ArrayReplaceAll
array_replace_inner ๐Ÿ”’
array_replace_n
replaces the first max occurrences of the specified element with another specified element.
array_replace_n_inner ๐Ÿ”’
array_replace_n_udf
ScalarFunction that returns a ScalarUDF for ArrayReplaceN
array_replace_udf
ScalarFunction that returns a ScalarUDF for ArrayReplace
general_replace ๐Ÿ”’
For each element of list_array[i], replaces up to arr_n[i] occurrences of from_array[i], to_array[i].