Tried to use Hive to replace columns (deleting several columns), used command below, received error message (follows). Table is external, partitioned, ORC,
ALTER TABLE D.T REPLACE COLUMNS ( list of columns to keep ) ;
Error,
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. Replacing columns cannot drop columns for table sandbox6.alc_ont_oe_order_headers_all. SerDe may be incompatible
This question suggests that above should work
Alter hive table add or drop column
And this question also suggests same, but users report similar problem to mine, Drop column of hive table stored as orc
Am I doing something wrong, or do I just need to copy to a new table?
(Hive version is 2.5.3.0)