I´m trying to rename the column name in hive (ORC table) table using alter command. Columns are getting renamed however data is getting modified to Null values.
Example:
select city from p_details;
city
Santa Fe Springs
Jiangmen
**alter table p_details change city city_name string;**
select city_name from p_details;
city_name
NULL
NULL