You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2023/01/23 19:44:00 UTC
[jira] [Assigned] (SPARK-41931) Improve UNSUPPORTED_DATA_TYPE message for complex types
[ https://issues.apache.org/jira/browse/SPARK-41931?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Apache Spark reassigned SPARK-41931:
------------------------------------
Assignee: Apache Spark
> Improve UNSUPPORTED_DATA_TYPE message for complex types
> -------------------------------------------------------
>
> Key: SPARK-41931
> URL: https://issues.apache.org/jira/browse/SPARK-41931
> Project: Spark
> Issue Type: Improvement
> Components: Spark Core
> Affects Versions: 3.4.0
> Reporter: Serge Rielau
> Assignee: Apache Spark
> Priority: Major
>
> spark-sql> SELECT CAST(array(1, 2, 3) AS ARRAY);
> [UNSUPPORTED_DATATYPE] Unsupported data type "ARRAY"(line 1, pos 30)
> == SQL ==
> SELECT CAST(array(1, 2, 3) AS ARRAY)
> ------------------------------^^^
> This error message is confusing. We support ARRAY. We just require it to be typed.
> We should have an error like:
> [INCOMPLETE_TYPE_DEFINITION.ARRAY] The definition of type `ARRAY` is incomplete. You must provide an element type. For example: `ARRAY\<INT\>`.
> Similarly for STRUCT and MAP.
--
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