You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Wenchen Fan (Jira)" <ji...@apache.org> on 2024/11/11 08:33:00 UTC
[jira] [Resolved] (SPARK-50262) Forbid change complex types during altering collation
[ https://issues.apache.org/jira/browse/SPARK-50262?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wenchen Fan resolved SPARK-50262.
---------------------------------
Fix Version/s: 4.0.0
Resolution: Fixed
Issue resolved by pull request 48803
[https://github.com/apache/spark/pull/48803]
> Forbid change complex types during altering collation
> -----------------------------------------------------
>
> Key: SPARK-50262
> URL: https://issues.apache.org/jira/browse/SPARK-50262
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 4.0.0
> Reporter: Aleksei Shishkin
> Assignee: Aleksei Shishkin
> Priority: Major
> Labels: pull-request-available
> Fix For: 4.0.0
>
>
> 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:
> {code:sql}
> ALTER TABLE table ALTER COLUMN full.column.path TYPE STRING COLLATE UNICODE
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org