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

Xiao Li updated SPARK-58350:
----------------------------
    Description: 
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.

  was:
Migrates the legacy error class {{_LEGACY_ERROR_TEMP_1081}} to the structured 
error
framework 

This error ("Table {{<identifier>}} did not specify locationUri.") is thrown by
{{{}QueryCompilationErrors.tableNotSpecifyLocationUriError{}}}, called from
{{CatalogTable.location}} when a table's storage {{locationUri}} is absent.
 * Introduces a new named structured condition 
{{TABLE_LOCATION_URI_NOT_SPECIFIED}}
(SQLSTATE {{{}42601{}}}), keeping the {{identifier}} parameter and the message 
text
unchanged.


> Migrate _LEGACY_ERROR_TEMP_1228 to DECIMAL_SCALE_EXCEEDS_PRECISION
> ------------------------------------------------------------------
>
>                 Key: SPARK-58350
>                 URL: https://issues.apache.org/jira/browse/SPARK-58350
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 4.2.0
>            Reporter: Xiao Li
>            Priority: Major
>              Labels: pull-request-available
>
> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to