@@ -129,9 +129,9 @@ class JoinEstimationSuite extends StatsEstimationTestBase {
129129 val histogram2 = Histogram (height = 100 , Array (
130130 HistogramBin (lo = 0 , hi = 50 , ndv = 50 ), HistogramBin (lo = 50 , hi = 100 , ndv = 40 )))
131131 // test bin trimming
132- val (t0, h0) = trimBin(histogram2.bins(0 ), height = 100 , min = 10 , max = 60 )
132+ val (t0, h0) = trimBin(histogram2.bins(0 ), height = 100 , lowerBound = 10 , upperBound = 60 )
133133 assert(t0 == HistogramBin (lo = 10 , hi = 50 , ndv = 40 ) && h0 == 80 )
134- val (t1, h1) = trimBin(histogram2.bins(1 ), height = 100 , min = 10 , max = 60 )
134+ val (t1, h1) = trimBin(histogram2.bins(1 ), height = 100 , lowerBound = 10 , upperBound = 60 )
135135 assert(t1 == HistogramBin (lo = 50 , hi = 60 , ndv = 8 ) && h1 == 20 )
136136
137137 val expectedRanges = Seq (
@@ -143,7 +143,7 @@ class JoinEstimationSuite extends StatsEstimationTestBase {
143143 OverlappedRange (50 , 60 , 30 * 1 / 3 , 8 , 300 * 1 / 3 , 20 )
144144 )
145145 assert(expectedRanges.equals(
146- getOverlappedRanges(histogram1, histogram2, newMin = 10D , newMax = 60D )))
146+ getOverlappedRanges(histogram1, histogram2, lowerBound = 10D , upperBound = 60D )))
147147
148148 estimateByHistogram(
149149 leftHistogram = histogram1,
@@ -162,9 +162,9 @@ class JoinEstimationSuite extends StatsEstimationTestBase {
162162 val histogram2 = Histogram (height = 100 , Array (
163163 HistogramBin (lo = 0 , hi = 50 , ndv = 50 ), HistogramBin (lo = 50 , hi = 100 , ndv = 40 )))
164164 // test bin trimming
165- val (t0, h0) = trimBin(histogram2.bins(0 ), height = 100 , min = 50 , max = 75 )
165+ val (t0, h0) = trimBin(histogram2.bins(0 ), height = 100 , lowerBound = 50 , upperBound = 75 )
166166 assert(t0 == HistogramBin (lo = 50 , hi = 50 , ndv = 1 ) && h0 == 2 )
167- val (t1, h1) = trimBin(histogram2.bins(1 ), height = 100 , min = 50 , max = 75 )
167+ val (t1, h1) = trimBin(histogram2.bins(1 ), height = 100 , lowerBound = 50 , upperBound = 75 )
168168 assert(t1 == HistogramBin (lo = 50 , hi = 75 , ndv = 20 ) && h1 == 50 )
169169
170170 val expectedRanges = Seq (
@@ -176,7 +176,7 @@ class JoinEstimationSuite extends StatsEstimationTestBase {
176176 OverlappedRange (60 , 75 , 3 , 20 * 15 / 25 , 300 , 50 * 15 / 25 )
177177 )
178178 assert(expectedRanges.equals(
179- getOverlappedRanges(histogram1, histogram2, newMin = 50D , newMax = 75D )))
179+ getOverlappedRanges(histogram1, histogram2, lowerBound = 50D , upperBound = 75D )))
180180
181181 estimateByHistogram(
182182 leftHistogram = histogram1,
@@ -197,9 +197,9 @@ class JoinEstimationSuite extends StatsEstimationTestBase {
197197 val histogram2 = Histogram (height = 100 , Array (
198198 HistogramBin (lo = 0 , hi = 50 , ndv = 50 ), HistogramBin (lo = 50 , hi = 100 , ndv = 40 )))
199199 // test bin trimming
200- val (t0, h0) = trimBin(histogram2.bins(0 ), height = 100 , min = 30 , max = 60 )
200+ val (t0, h0) = trimBin(histogram2.bins(0 ), height = 100 , lowerBound = 30 , upperBound = 60 )
201201 assert(t0 == HistogramBin (lo = 30 , hi = 50 , ndv = 20 ) && h0 == 40 )
202- val (t1, h1) = trimBin(histogram2.bins(1 ), height = 100 , min = 30 , max = 60 )
202+ val (t1, h1) = trimBin(histogram2.bins(1 ), height = 100 , lowerBound = 30 , upperBound = 60 )
203203 assert(t1 == HistogramBin (lo = 50 , hi = 60 , ndv = 8 ) && h1 == 20 )
204204
205205 val expectedRanges = Seq (
@@ -209,7 +209,7 @@ class JoinEstimationSuite extends StatsEstimationTestBase {
209209 OverlappedRange (50 , 60 , 30 * 1 / 3 , 8 , 300 * 1 / 3 , 20 )
210210 )
211211 assert(expectedRanges.equals(
212- getOverlappedRanges(histogram1, histogram2, newMin = 30D , newMax = 60D )))
212+ getOverlappedRanges(histogram1, histogram2, lowerBound = 30D , upperBound = 60D )))
213213
214214 estimateByHistogram(
215215 leftHistogram = histogram1,
@@ -228,9 +228,9 @@ class JoinEstimationSuite extends StatsEstimationTestBase {
228228 val histogram2 = Histogram (height = 100 , Array (
229229 HistogramBin (lo = 0 , hi = 50 , ndv = 50 ), HistogramBin (lo = 50 , hi = 50 , ndv = 1 )))
230230 // test bin trimming
231- val (t0, h0) = trimBin(histogram1.bins(1 ), height = 300 , min = 30 , max = 50 )
231+ val (t0, h0) = trimBin(histogram1.bins(1 ), height = 300 , lowerBound = 30 , upperBound = 50 )
232232 assert(t0 == HistogramBin (lo = 30 , hi = 50 , ndv = 20 ) && h0 == 200 )
233- val (t1, h1) = trimBin(histogram2.bins(0 ), height = 100 , min = 30 , max = 50 )
233+ val (t1, h1) = trimBin(histogram2.bins(0 ), height = 100 , lowerBound = 30 , upperBound = 50 )
234234 assert(t1 == HistogramBin (lo = 30 , hi = 50 , ndv = 20 ) && h1 == 40 )
235235
236236 val expectedRanges = Seq (
@@ -239,7 +239,7 @@ class JoinEstimationSuite extends StatsEstimationTestBase {
239239 OverlappedRange (50 , 50 , 1 , 1 , 200 / 20 , 100 )
240240 )
241241 assert(expectedRanges.equals(
242- getOverlappedRanges(histogram1, histogram2, newMin = 30D , newMax = 50D )))
242+ getOverlappedRanges(histogram1, histogram2, lowerBound = 30D , upperBound = 50D )))
243243
244244 estimateByHistogram(
245245 leftHistogram = histogram1,
@@ -258,9 +258,9 @@ class JoinEstimationSuite extends StatsEstimationTestBase {
258258 val histogram2 = Histogram (height = 150 , Array (
259259 HistogramBin (lo = 0 , hi = 30 , ndv = 30 ), HistogramBin (lo = 30 , hi = 30 , ndv = 1 )))
260260 // test bin trimming
261- val (t0, h0) = trimBin(histogram1.bins(1 ), height = 300 , min = 30 , max = 30 )
261+ val (t0, h0) = trimBin(histogram1.bins(1 ), height = 300 , lowerBound = 30 , upperBound = 30 )
262262 assert(t0 == HistogramBin (lo = 30 , hi = 30 , ndv = 1 ) && h0 == 10 )
263- val (t1, h1) = trimBin(histogram2.bins(0 ), height = 150 , min = 30 , max = 30 )
263+ val (t1, h1) = trimBin(histogram2.bins(0 ), height = 150 , lowerBound = 30 , upperBound = 30 )
264264 assert(t1 == HistogramBin (lo = 30 , hi = 30 , ndv = 1 ) && h1 == 5 )
265265
266266 val expectedRanges = Seq (
@@ -270,7 +270,7 @@ class JoinEstimationSuite extends StatsEstimationTestBase {
270270 OverlappedRange (30 , 30 , 1 , 1 , 10 , 150 )
271271 )
272272 assert(expectedRanges.equals(
273- getOverlappedRanges(histogram1, histogram2, newMin = 30D , newMax = 30D )))
273+ getOverlappedRanges(histogram1, histogram2, lowerBound = 30D , upperBound = 30D )))
274274
275275 estimateByHistogram(
276276 leftHistogram = histogram1,
0 commit comments