I would like to drop one of the columns from a huge hive partitioned table. Wondering how can I do this. Here is what I have tried as below.
DDL :
CREATE TABLE xyz.test_change (a int, b int, c int);
ALTER command :
ALTER TABLE xyz.test_change REPLACE COLUMNS (a int, b int);
Error :
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. Replacing columns cannot drop columns for table xyz.test_change. SerDe may be incompatible
org.apache.hadoop.hive.ql.metadata.HiveException: Replacing columns cannot drop columns for table xyz.test_change. SerDe may be incompatible