Github user dilipbiswal commented on a diff in the pull request: https://github.com/apache/spark/pull/22448#discussion_r218321144 --- Diff: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/TypeCoercion.scala --- @@ -106,6 +108,22 @@ object TypeCoercion { case (t1, t2) => findTypeForComplex(t1, t2, findTightestCommonType) } + /** + * Finds a wider decimal type between the two supplied decimal types without + * any loss of precision. + */ + def findWiderDecimalType(d1: DecimalType, d2: DecimalType): Option[DecimalType] = { --- End diff -- @cloud-fan Actually the bounded version is in `DecimalPrecision::widerDecimalType`. Thats the function i looked at as reference.
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org