How will you change the data type of a column in Hive?

We can use Alter statement to change the data type of a column in Hive.

Command will be as follows:

ALTER TABLE tableName REPLACE COLUMNS (columnName dataType)

Read the full book at www.amazon.com
Posted in Hive, Hive Interview Questions

Leave a Reply

Your email address will not be published. Required fields are marked *

*