数据湖探索 DLI-表值函数:示例

时间:2023-11-01 16:24:58

示例

输入一条记录("student1", "student2, student3"),输出两条记录("student1", "student2") 和 ("student1", "student3") 。

create source stream s1(attr1 string, attr2 string) with (......);insert into s2 select  attr1, b1 from s1 left join lateral table(split_cursor(attr2, ',')) as T(b1) on true;
support.huaweicloud.com/sqlreference-dli/dli_08_0206.html