when i was doing such query in flink sql:
SELECT COLLECT(col1) OVER (
PARTITION BY col2
ORDER BY col3
ROWS BETWEEN 1 PRECEDING AND CURRENT ROW
) AS col4
FROM table
how can i cast the col4, which is a multiset datatype, to string?
i have tried cast(col4 as string), but it didnt work. the exception is Cast function cannot convert value of type BIGINT MULTISET to type VARCHAR(2147483647)
OR how can i pass the multiset data to a java udf and then trasform to a string? how to write such udf?