【发布时间】:2017-01-08 02:50:35
【问题描述】:
在 mysql 中,我们可以在 group_concat 上使用 like 运算符,例如
select case when group_concat(color) like '%red%' then 1 else 0 end;
但它在 spark sql 中不起作用,因为我使用了 collect_set 而不是 group_concat 。
它显示数据类型不匹配的异常。
【问题讨论】:
标签: sql apache-spark dataframe sql-like