dongjoon-hyun commented on code in PR #43781:
URL: https://github.com/apache/spark/pull/43781#discussion_r1393703751
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala:
##########
@@ -4541,6 +4541,15 @@ object SQLConf {
.booleanConf
.createWithDefault(false)
+ val LEGACY_RETAIN_FRACTION_DIGITS_FIRST =
+ buildConf("spark.sql.legacy.decimal.retainFractionDigitsOnTruncate")
+ .internal()
+ .doc("When set to true, we will try to retain the fraction digits first
rather than " +
+ "integral digits as prior Spark 4.0, when getting a least common type
between decimal " +
+ "types, and the result decimal precision exceeds the max precision.")
Review Comment:
Please add version, @cloud-fan . IIUC, this targets only Apache Spark 4.0.0?
--
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]