I have two columns Id
and Name
in Hive table, and I want to delete the Name
column. I have used following command:
ALTER TABLE TableName REPLACE COLUMNS(id string);
The result was that the Name
column values were assigned to the Id
column.
How can I drop a specific column of the table and is there any other command in Hive to achieve my goal?