[ 
https://issues.apache.org/jira/browse/SPARK-41931?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Max Gekk resolved SPARK-41931.
------------------------------
    Fix Version/s: 3.5.0
       Resolution: Fixed

Issue resolved by pull request 39711
[https://github.com/apache/spark/pull/39711]

> 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: Max Gekk
>            Priority: Major
>             Fix For: 3.5.0
>
>
> 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-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to