You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2024/03/23 23:58:00 UTC
[jira] [Updated] (SPARK-47528) Add UserDefinedType support to DataTypeUtils.canWrite
[ https://issues.apache.org/jira/browse/SPARK-47528?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated SPARK-47528:
-----------------------------------
Labels: pull-request-available (was: )
> Add UserDefinedType support to DataTypeUtils.canWrite
> -----------------------------------------------------
>
> Key: SPARK-47528
> URL: https://issues.apache.org/jira/browse/SPARK-47528
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 4.0.0
> Reporter: L. C. Hsieh
> Assignee: L. C. Hsieh
> Priority: Major
> Labels: pull-request-available
>
> Our customer hits an issue recently when they tries to save a DataFrame containing some UDTs as table (`saveAsTable`). The error looks like:
> ```
> - Cannot write 'xxx': struct<...> is incompatible with struct<...>
> ```
> The catalog strings between two sides are actually same which makes the customer confused.
> It is because `DataTypeUtils.canWrite` doesn't handle `UserDefinedType`. If the `UserDefinedType`'s underlying sql type is same as read side, `canWrite` should return true for two sides.
--
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