Slide 28
Slide 28 text
@ShinHashitani | developer.confluent.io
ksqlDB - Functions
CAST CAST(COL0 AS BIGINT)
GREATEST GREATEST(col1, col2, …)
LEAST LEAST(col1, col2, …)
LN LN(col1)
ROUND ROUND(col1, scale)
ARRAY_CONCAT ARRAY_CONCAT(array1, array2)
ARRAY_DISTINCT ARRAY_DISTINCT([1, 1, 2, 2, 3])
ARRAY_MAX ARRAY_MAX(['foo', 'bar', 'baz'])
ARRAY_SORT
ARRAY_SORT(['foo', 'bar', 'baz'],
'ASC|DESC')
Scalar Functionの一覧
JSON_ARRAY_CONTAI
NS
JSON_ARRAY_CONTAINS('[1, 2, 3]', 3)
SLICE SLICE(col1, from, to)
CONCAT CONCAT(col1, col2, 'hello', …, col-n)
INSTR
INSTR(string, substring, [position],
[occurrence])
ENCODE
ENCODE(col1, input_encoding,
output_encoding)
EXTRACTJSONFIELD EXTRACTJSONFIELD(message, '$.log.cloud')
REGEXP_EXTRACT REGEXP_EXTRACT('(([AEIOU]).)', col1, 2)