in Big Data | Hadoop by
How will you change the data type of a column in Hive?

1 Answer

0 votes
by

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)

 

Related questions

0 votes
asked Jan 12, 2020 in Big Data | Hadoop by sharadyadav1986
0 votes
asked Jan 12, 2020 in Big Data | Hadoop by sharadyadav1986
0 votes
asked Feb 22, 2020 in Big Data | Hadoop by SakshiSharma
...