I've an external table in Hive
Current:
col1 - string
col2 - string
col3 - string
col4 - float
col5 - int
I want to change the date type of col3 to date
Expected:
col1 - string
col2 - string
col3 - date
col4 - float
col5 - int
I tried regular sql command but not useful
alter table table_name modify col3 date;
Error:
Error while compiling statement: FAILED: ParseException line 1:32 cannot recognize input near 'modify' 'col3' 'date' in alter table statement
Requesting assistance here. Thanks in advance.