Github user mgaido91 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/22450#discussion_r218762046
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/DecimalPrecision.scala
 ---
    @@ -129,16 +129,17 @@ object DecimalPrecision extends TypeCoercionRule {
             resultType)
     
         case Divide(e1 @ DecimalType.Expression(p1, s1), e2 @ 
DecimalType.Expression(p2, s2)) =>
    +      val adjP2 = if (s2 < 0) p2 - s2 else p2
    --- End diff --
    
    sure, but if you agree I'll try and find a better place than 
`DataFrameSuite`. I'd prefer adding the new tests to 
`ArithmeticExpressionSuite`. Is that ok for you?


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to