Matthew Ball created SPARK-58228:
------------------------------------
Summary: 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
_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: [email protected]
For additional commands, e-mail: [email protected]