File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -329,6 +329,10 @@ class GeoBounds(Agg):
329
329
name = "geo_bounds"
330
330
331
331
332
+ class GeoLine (Agg ):
333
+ name = "geo_line"
334
+
335
+
332
336
class Max (Agg ):
333
337
name = "max"
334
338
Original file line number Diff line number Diff line change @@ -334,6 +334,17 @@ def test_t_test_aggregation():
334
334
} == a .to_dict ()
335
335
336
336
337
+ def test_geo_line_aggregation ():
338
+ a = aggs .GeoLine (point = {"field" : "centroid" }, sort = {"field" : "date" })
339
+
340
+ assert {
341
+ "geo_line" : {
342
+ "point" : {"field" : "centroid" },
343
+ "sort" : {"field" : "date" },
344
+ },
345
+ } == a .to_dict ()
346
+
347
+
337
348
def test_inference_aggregation ():
338
349
a = aggs .Inference (model_id = "model-id" , buckets_path = {"agg_name" : "agg_name" })
339
350
assert {
You can’t perform that action at this time.
0 commit comments