UDTF's are not supported outside the SELECT clause, nor nested in expressions (state=42000,code=1008

hive操作時,報錯如下: 原因:當使用UDTF函數的時候,hive只允許對拆分字段進行訪問。 正確命令:select explode(location) from test_message; 錯誤命令:select name,explode(location) from test_message;  如果想訪問除了拆分字段以外 的字段,怎麼辦呢? 用lateral view側視圖! latera
相關文章
相關標籤/搜索