HyukjinKwon opened a new pull request, #44632:
URL: https://github.com/apache/spark/pull/44632

   ### What changes were proposed in this pull request?
   
   This PR is a followup of https://github.com/apache/spark/pull/44513 that 
excludes `Decimal(5, 4)` for `10.34` that cannot be represented with ANSI mode 
on.
   
   ### Why are the changes needed?
   
   ANSI build is broken 
(https://github.com/apache/spark/actions/runs/7455394893/job/20284415710):
   
   ```
   org.apache.spark.SparkArithmeticException: [NUMERIC_VALUE_OUT_OF_RANGE] 
10.34 cannot be represented as Decimal(5, 4). If necessary set 
"spark.sql.ansi.enabled" to "false" to bypass this error, and return NULL 
instead. SQLSTATE: 22003
   == DataFrame ==
   "cast" was called from
   
org.apache.spark.sql.execution.datasources.parquet.ParquetTypeWideningSuite.writeParquetFiles(ParquetTypeWideningSuite.scala:113)
   
        at 
org.apache.spark.sql.errors.QueryExecutionErrors$.cannotChangeDecimalPrecisionError(QueryExecutionErrors.scala:116)
        at 
org.apache.spark.sql.errors.QueryExecutionErrors.cannotChangeDecimalPrecisionError(QueryExecutionErrors.scala)
        at 
org.apache.spark.sql.catalyst.expressions.GeneratedClass$GeneratedIteratorForCodegenStage1.processNext(Unknown
 Source)
   ```
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   Existing test cases should cover.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   No.


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

Reply via email to