美文网首页
Hive多行合并一行

Hive多行合并一行

作者: 小丸子的呆地 | 来源:发表于2021-06-23 16:17 被阅读0次
select
  a.delflag as del,
  concat_ws(",",collect_set(a.msg)) as mm
from
  (
    select
      delflag,
      concat(user_id,"|",user_birth_date) as msg
    from
      user_baseinfo
    where
      length(user_birth_date) < 8
  ) as a
group by
  a.delflag

相关文章

网友评论

      本文标题:Hive多行合并一行

      本文链接:https://www.haomeiwen.com/subject/qussyltx.html