You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Xiao Li (Jira)" <ji...@apache.org> on 2026/07/26 05:56:00 UTC

[jira] [Created] (SPARK-58351) Migrate _LEGACY_ERROR_TEMP_3014 to EMPTY_COLLECTION_NOT_ALLOWED

Xiao Li created SPARK-58351:
-------------------------------

             Summary: Migrate _LEGACY_ERROR_TEMP_3014 to EMPTY_COLLECTION_NOT_ALLOWED
                 Key: SPARK-58351
                 URL: https://issues.apache.org/jira/browse/SPARK-58351
             Project: Spark
          Issue Type: Improvement
          Components: SQL
    Affects Versions: 4.2.0
            Reporter: Xiao Li


Migrates the legacy error class {{_LEGACY_ERROR_TEMP_1228}} to the structured error
framework 

This error ("Decimal scale ({{{}<scale>{}}}) cannot be greater than precision ({{{}<precision>{}}}).")
is thrown by {{DataTypeErrors.decimalCannotGreaterThanPrecisionError}} when a {{DecimalType}}
is constructed with scale greater than precision.
 * Introduces a new named structured condition {{DECIMAL_SCALE_EXCEEDS_PRECISION}}
(SQLSTATE {{{}22003{}}}, matching the sibling {{{}DECIMAL_PRECISION_EXCEEDS_MAX_PRECISION{}}}),
keeping the {{{}scale{}}}/{{{}precision{}}} parameters and message text unchanged.



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