Categories

Jan 12 in Big Data | Hadoop
Q: How will you change the data type of a column in Hive?

1 Answer

Jan 12

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)

 

Click here to read more about Loan/Mortgage
Click here to read more about Insurance

Related questions

Madanswer
Apr 3 in Big Data | Hadoop
Apr 1 in Big Data | Hadoop
Jan 11 in Big Data | Hadoop
...