Is there a function equivalent to Hive's 'explode' function in Apache Impala?

萝らか妹 提交于 2019-12-11 01:01:40

问题


Hive's function explode is documented here It is essentially a very practical function that generates many rows from a single one. Its basic version takes a column whose value is an array of values and produces a copy of the same row for each of those values.

I wonder whether such a thing exists in Impala. I haven't been able to find it in the documentation.


回答1:


Impala does not have any function like EXPLODE in hive to read complex data types and generate multiple rows.

Currently through Impala, we can just read the complex data types in Hive generated tables using dot notation like select employee.empid from table1 .

Impala can query complex type columns only from Parquet tables or Parquet partitions within partitioned tables



来源:https://stackoverflow.com/questions/47436977/is-there-a-function-equivalent-to-hives-explode-function-in-apache-impala

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!