Description
The code below shows the issue:
> 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" }