Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
4.0.0
Description
SPARK-48413 has brought ability to change collation on table.
But it seems to be too wide, because people couldn't change the whole StructType/MapType/ArrayType by altering before.
Right now there is found problem with altering collation when table has metadata. Altering will be failed because of a metadata mismatch between user's type (that doesn't have metadata) and existing schema.
So I suggest to shrink the feature to only leaf string types.
People will be able to change any collation still, but they need to use full column path:
ALTER TABLE table ALTER COLUMN full.column.path TYPE STRING COLLATE UNICODE
Attachments
Issue Links
- links to