wangyum opened a new pull request #29731: URL: https://github.com/apache/spark/pull/29731
### What changes were proposed in this pull request? This pr makes make decimal fast set to `null` if precision larger that 309(To support Double). ### Why are the changes needed? It is very slow is this case:  We can reproduce this issue by: ``` // Download https://issues.apache.org/jira/secure/attachment/13011406/part-00000.parquet first spark.read.parquet("/path/to/part-00000.parquet").selectExpr("cast(bd as decimal(18, 0)) as x").write.mode("overwrite").save("/tmp/spark/decimal") ``` ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Manual test ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
