Impala select * does not show all details of table

£可爱£侵袭症+ 提交于 2021-01-07 10:38:11

问题


I have an sql query within impala select * from table but when I execute this certain columns are missing .

Whereas when I do describe table those columns are there.

I cannot show the snippet but the types not showing up are maps,arrays, and structs.


回答1:


Impala doesn't support that. Complex types have to be unpacked to be displayed.

The result set of an Impala query always contains all scalar types; the elements and fields within any complex type queries must be "unpacked" using join queries. A query cannot directly retrieve the entire value for a complex type column. Impala returns an error in this case. Queries using SELECT * are allowed for tables with complex types, but the columns with complex types are skipped.

Source: Queries and Complex Types



来源:https://stackoverflow.com/questions/41623711/impala-select-does-not-show-all-details-of-table

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