[
https://issues.apache.org/jira/browse/SPARK-41180?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Apache Spark reassigned SPARK-41180:
------------------------------------
Assignee: (was: Apache Spark)
> 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
> Priority: Major
>
> 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: [email protected]
For additional commands, e-mail: [email protected]