UDFArgumentException explode()将数组或映射作为参数

时间:2016-03-14 21:07:42

标签: view hive hql explode

我正在尝试运行一些与创建视图相关的配置单元查询。创建l1的命令工作正常,但在运行命令创建视图l2后,它显示错误。

create view l1 as select id, words from tweets55 lateral view explode(sentences(lower(text))) dummy as words;

create view l2 as select id, word from l1 lateral view explode( words ) dummy as word ;

错误是 FAILED: UDFArgumentException explode() takes an array or a map as a parameter

我添加了jar hive-serdes-1.0-SNAPSHOT.jar和json-serde-1.3-jar-with-dependencies.jar

0 个答案:

没有答案