You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2026/07/20 22:54:00 UTC

[jira] [Updated] (SPARK-58228) Convert unreachable error condition _LEGACY_ERROR_TEMP_1058 to an internal error

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

ASF GitHub Bot updated SPARK-58228:
-----------------------------------
    Labels: pull-request-available  (was: )

> Convert unreachable error condition _LEGACY_ERROR_TEMP_1058 to an internal error
> --------------------------------------------------------------------------------
>
>                 Key: SPARK-58228
>                 URL: https://issues.apache.org/jira/browse/SPARK-58228
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 5.0.0
>            Reporter: Matthew Ball
>            Priority: Major
>              Labels: pull-request-available
>
> _LEGACY_ERROR_TEMP_1058 ('Cannot create table with both USING <provider> and <serDeInfo>') is raised in ResolveSessionCatalog when a CREATE TABLE / CTAS plan carries both a data-source provider (USING) and Hive SerDe info (STORED AS / ROW FORMAT). The SQL parser already rejects that combination before analysis (AstBuilder), and no DataFrame/Catalog/V2 writer API can populate SerDe info, so the condition is unreachable by users - it can only fire if an invalid logical plan is constructed internally. Convert this defensive branch to SparkException.internalError, and remove the _LEGACY_ERROR_TEMP_1058 condition from error-conditions.json along with its now-unused QueryCompilationErrors helper. No user-facing behavior change.



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