|
17 | 17 | package org.mongodb.scala.model |
18 | 18 |
|
19 | 19 | import com.mongodb.client.model.GeoNearOptions.geoNearOptions |
20 | | -import com.mongodb.client.model.QuantileMethod |
21 | 20 | import com.mongodb.client.model.fill.FillOutputField |
22 | 21 |
|
23 | 22 | import java.lang.reflect.Modifier._ |
@@ -409,8 +408,8 @@ class AggregatesSpec extends BaseSpec { |
409 | 408 | null, |
410 | 409 | sum("sum", Document("""{ $multiply: [ "$price", "$quantity" ] }""")), |
411 | 410 | avg("avg", "$quantity"), |
412 | | - percentile("percentile", "$quantity", List(0.95, 0.3), QuantileMethod.approximate()), |
413 | | - median("median", "$quantity", QuantileMethod.approximate()), |
| 411 | + percentile("percentile", "$quantity", List(0.95, 0.3), QuantileMethod.approximate), |
| 412 | + median("median", "$quantity", QuantileMethod.approximate), |
414 | 413 | min("min", "$quantity"), |
415 | 414 | minN("minN", "$quantity", 2), |
416 | 415 | max("max", "$quantity"), |
@@ -452,10 +451,10 @@ class AggregatesSpec extends BaseSpec { |
452 | 451 | "newField02P", |
453 | 452 | "$field02P", |
454 | 453 | List(0.3, 0.9), |
455 | | - QuantileMethod.approximate(), |
| 454 | + QuantileMethod.approximate, |
456 | 455 | Some(range(UNBOUNDED, 1)) |
457 | 456 | ), |
458 | | - WindowOutputFields.median("newField02M", "$field02M", QuantileMethod.approximate(), Some(range(UNBOUNDED, 1))), |
| 457 | + WindowOutputFields.median("newField02M", "$field02M", QuantileMethod.approximate, Some(range(UNBOUNDED, 1))), |
459 | 458 | WindowOutputFields.stdDevSamp("newField03", "$field03", Some(window)), |
460 | 459 | WindowOutputFields.stdDevPop("newField04", "$field04", Some(window)), |
461 | 460 | WindowOutputFields.min("newField05", "$field05", Some(window)), |
|
0 commit comments