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

1 Answer

0 votes
Jan 12, 2020

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

0 votes
Apr 3, 2020 in Big Data | Hadoop
...