Ma77Ball opened a new pull request, #60492: URL: https://github.com/apache/spark/pull/60492
### What changes were proposed in this pull request? This PR assigns the name `COLUMN_STATISTICS_DESERIALIZATION_NOT_SUPPORTED` to the legacy error condition `_LEGACY_ERROR_TEMP_1089`, as part of the ongoing SPARK-37935 work to give every error condition a stable, descriptive name. The entry in `error-conditions.json` is moved out of the `_LEGACY_ERROR_TEMP_*` block and redefined under the new name, keeping the same message text and gaining the SQLSTATE `0A000`. The single throw site, `QueryCompilationErrors.columnStatisticsDeserializationNotSupportedError`, is updated to reference the new condition, and a `checkError`-based test is added in `QueryCompilationErrorsSuite`. ### Why are the changes needed? `_LEGACY_ERROR_TEMP_*` conditions are placeholder names that carry no meaning and no SQLSTATE. Naming them makes the error surface self-describing for users and tooling and moves the codebase toward retiring the legacy block (SPARK-37935). ### Does this PR introduce _any_ user-facing change? Yes. The error raised when `CatalogColumnStat.fromExternalString` is asked to deserialize a column statistic of an unsupported data type now reports the condition name `COLUMN_STATISTICS_DESERIALIZATION_NOT_SUPPORTED` with SQLSTATE `0A000` instead of `_LEGACY_ERROR_TEMP_1089`. The message text is unchanged. ### How was this patch tested? Added a new test in `QueryCompilationErrorsSuite` that calls `CatalogColumnStat.fromExternalString` with an unsupported `NullType` and asserts the condition and message parameters via `checkError`. Ran `SparkThrowableSuite` (validates `error-conditions.json`: alphabetical order, SQLSTATE, structure) — 38 tests, all pass — and the new `QueryCompilationErrorsSuite` test — passes. ### Was this patch authored or co-authored using generative AI tooling? Generated-by: Claude Opus 4.8 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
