From e59198ec2ab9f17dfed1a63cd89e87350ee71dac Mon Sep 17 00:00:00 2001 From: andreas-neumann_data Date: Fri, 26 Jun 2026 22:55:09 +0000 Subject: [PATCH] [SPARK-57724][SQL] Add missing error class MISSING_CLAUSES_FOR_OPERATION SPARK-54405 (METRIC VIEW) introduced error handling that throws the `MISSING_CLAUSES_FOR_OPERATION` error class from `QueryParsingErrors.missingClausesForOperation`, but never registered it in `error-conditions.json`. Register the error condition so the error class resolves correctly through the error-handling framework. Co-authored-by: Isaac --- common/utils/src/main/resources/error/error-conditions.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/common/utils/src/main/resources/error/error-conditions.json b/common/utils/src/main/resources/error/error-conditions.json index b6206653a1612..d500572cf4767 100644 --- a/common/utils/src/main/resources/error/error-conditions.json +++ b/common/utils/src/main/resources/error/error-conditions.json @@ -5542,6 +5542,12 @@ }, "sqlState" : "0A000" }, + "MISSING_CLAUSES_FOR_OPERATION" : { + "message" : [ + "Missing required clause(s) for operation ." + ], + "sqlState" : "42601" + }, "MISSING_DATABASE_FOR_V1_SESSION_CATALOG" : { "message" : [ "Database name is not specified in the v1 session catalog. Please ensure to provide a valid database name when interacting with the v1 catalog."