You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Max Gekk (Jira)" <ji...@apache.org> on 2022/11/17 17:02:00 UTC

[jira] [Updated] (SPARK-41182) Assign a name to the error class _LEGACY_ERROR_TEMP_1102

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

Max Gekk updated SPARK-41182:
-----------------------------
    Description: 
Assign a proper name to the legacy error class _LEGACY_ERROR_TEMP_1102 and make it visible to users.

The example below shows the issue:

{code}
> select extract(not_supported from c) from t;

org.apache.spark.sql.AnalysisException
{
  "errorClass" : "LEGACY",
  "messageParameters" : {
    "message" : "Literals of type 'not_supported' are currently not supported for the string type.; line 1 pos 7"
  }
}
{code}


  was:
Assign a proper name to the legacy error class _LEGACY_ERROR_TEMP_1092 and make it visible to users.

The example below shows the issue:

{code}
> select from_json('{"a":1}', 1);

org.apache.spark.sql.AnalysisException
{
  "errorClass" : "LEGACY",
  "messageParameters" : {
    "message" : "The expression '1' is not a valid schema string.; line 1 pos 7"
...
{code}



> Assign a name to the error class _LEGACY_ERROR_TEMP_1102
> --------------------------------------------------------
>
>                 Key: SPARK-41182
>                 URL: https://issues.apache.org/jira/browse/SPARK-41182
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 3.4.0
>            Reporter: Max Gekk
>            Priority: Major
>
> Assign a proper name to the legacy error class _LEGACY_ERROR_TEMP_1102 and make it visible to users.
> The example below shows the issue:
> {code}
> > select extract(not_supported from c) from t;
> org.apache.spark.sql.AnalysisException
> {
>   "errorClass" : "LEGACY",
>   "messageParameters" : {
>     "message" : "Literals of type 'not_supported' are currently not supported for the string type.; line 1 pos 7"
>   }
> }
> {code}



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