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

   ### What changes were proposed in this pull request?
   
   Update the migration guide after fixing the precision of the return type of 
round-like functions.
   
   How to reproduce this issue:
   ```sql
   -- Spark 3.2
   CREATE TABLE t1(CURNCY_AMT DECIMAL(18,6)) using parquet;
   CREATE VIEW v1 AS SELECT BROUND(CURNCY_AMT, 6) AS CURNCY_AMT FROM t1;
   ```
   ```sql
   -- Spark 3.3
    SELECT * FROM v1;
   org.apache.spark.sql.AnalysisException: [CANNOT_UP_CAST_DATATYPE] Cannot up 
cast CURNCY_AMT from "DECIMAL(19,6)" to "DECIMAL(18,6)".
   ```
   
   ### Why are the changes needed?
   
   Update the migration guide.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   
   ### How was this patch tested?
   
   N/A


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