Tuesday, November 16, 2010

How to add a new column to a table in Hive

Use the following command in the hive shell to add a new column to a table in Hive
ALTER TABLE pokes ADD COLUMNS (new_col INT);

No comments:

Post a Comment