3 Answers
- Newest
- Most votes
- Most comments
0
Hello, you can check this page section "ALTER TABLE CHANGE COLUMN" (Changes the name, type, order or comment of a column).
It looks like it would be:
ALTER TABLE my_iceberg_table CHANGE COLUMN old_column_name new_column_name
answered a year ago
0
You need to use CHANGE
and include the same type for the rename.
ALTER TABLE <my_iceberg_table> CHANGE <old_column_name> <new_column_name> <current_type>;
I had to do this yesterday, it's dumb but it works.
answered a year ago
Relevant content
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated 3 days ago
Thank you for the answer, but unfortunately this still gives me an error:
Detail:FAILED: ParseException line 1:128 cannot recognize input near '<EOF>' '<EOF>' '<EOF>'
Were you able to do this successfully?