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

Max Gekk resolved SPARK-41180.
------------------------------
    Fix Version/s: 3.4.0
       Resolution: Fixed

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

> Assign an error class to "Cannot parse the data type"
> -----------------------------------------------------
>
>                 Key: SPARK-41180
>                 URL: https://issues.apache.org/jira/browse/SPARK-41180
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 3.4.0
>            Reporter: Max Gekk
>            Assignee: Yang Jie
>            Priority: Major
>             Fix For: 3.4.0
>
>
> The code below shows the issue:
> {code}
> > select from_csv('1', 'a InvalidType');
> org.apache.spark.sql.AnalysisException
> {
>   "errorClass" : "LEGACY",
>   "messageParameters" : {
>     "message" : "Cannot parse the data type: \n[PARSE_SYNTAX_ERROR] Syntax 
> error at or near 'InvalidType': extra input 'InvalidType'(line 1, pos 
> 2)\n\n== SQL ==\na InvalidType\n--^^^\n\nFailed fallback parsing: \nDataType 
> invalidtype is not supported.(line 1, pos 2)\n\n== SQL ==\na 
> InvalidType\n--^^^\n; line 1 pos 7"
>   }
> {code}



--
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