Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/19594#discussion_r156387841
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/statsEstimation/EstimationUtils.scala
 ---
    @@ -114,4 +115,183 @@ object EstimationUtils {
         }
       }
     
    +  /**
    +   * Returns overlapped ranges between two histograms, in the given value 
range [newMin, newMax].
    +   */
    +  def getOverlappedRanges(
    +      leftHistogram: Histogram,
    +      rightHistogram: Histogram,
    +      newMin: Double,
    +      newMax: Double): Seq[OverlappedRange] = {
    --- End diff --
    
    how about `upperBound`/`lowerBound`? It's hard to understand the meaning of 
`new` by looking at this method.


---

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

Reply via email to