I have created a JSON hive table , the table is successfully created , but when I run desc table , ot select * from table
, I have been getting the below error. Can someone please help.
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. Error: > expected at the end of 'struct
答案 0 :(得分:0)
当您的表定义超过hive Metastore中定义的最大字符数时会发生这种情况,因此hive会截断您的定义。要解决此问题,您需要根据hive版本增加表TYPE_NAMES
或COLUMNS
中列COLUMNS_V2
的varchar max值。