Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Complex columns supported for - array and struct.
For schema lets say- str struct<a:int> the following points will be considered -
1) Rename parent name str to str2
alter table test_rename change str str2 struct<a:int>
2) Rename child name from a to b
alter table test_rename change str str struct<b:int>
NOTE-
Rename operation fails if the structure of the complex column has been altered. This check ensures the old and new columns are compatible with each other. Meaning the number of children and complex levels should be unaltered while attempting to rename.