目前找到的解决办法是(这边感谢xiaoxiao~):
--先改fileformat为textfile
alter table table_name set fileformat textfile;
--再repalce
alter table table_name repalce columns(
col1 string,
col2 string
);
--最后再改回来
alter table table_name set fileformat orc;
目前找到的解决办法是(这边感谢xiaoxiao~):
--先改fileformat为textfile
alter table table_name set fileformat textfile;
--再repalce
alter table table_name repalce columns(
col1 string,
col2 string
);
--最后再改回来
alter table table_name set fileformat orc;