【发布时间】:2020-11-09 07:14:29
【问题描述】:
使用 Presto/Hive,我想按以下方式拆分字符串。
输入字符串:
\Users\Killer\Downloads\Temp
\Users\Killer\Downloads\welcome
并让查询返回这些行:
\Users\
\Users\Killer\
\Users\Killer\Downloads\
\Users\Killer\Downloads\Temp
\Users\
\Users\Killer\
\Users\Killer\Downloads\
\Users\Killer\Downloads\welcome
谁能帮帮我。
【问题讨论】:
-
你肯定需要
UNNEST加上一些array functions 和string functions。到目前为止,您尝试过什么?
标签: string split hive hiveql presto