Skip to content

Commit

Permalink
Merge pull request #530 from databrickslabs/within-minor
Browse files Browse the repository at this point in the history
include `st_within` in python import and scala test (minor)
  • Loading branch information
Milos Colic authored Feb 12, 2024
2 parents acc0b2a + 9e072f1 commit 398ef5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion python/mosaic/api/predicates.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
######################


__all__ = ["st_intersects", "st_contains"]
__all__ = ["st_intersects", "st_contains", "st_within"]


def st_intersects(left_geom: ColumnOrName, right_geom: ColumnOrName) -> Column:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ trait MosaicContextBehaviors extends MosaicSpatialQueryTest {
noException should be thrownBy getFunc("st_perimeter").apply(Seq(multiPolygon.expr))
noException should be thrownBy getFunc("st_distance").apply(Seq(multiPolygon.expr, pointWkt))
noException should be thrownBy getFunc("st_contains").apply(Seq(multiPolygon.expr, pointWkt))
noException should be thrownBy getFunc("st_within").apply(Seq(pointWkt, multiPolygon.expr))
noException should be thrownBy getFunc("st_translate").apply(Seq(multiPolygon.expr, xLit, yLit))
noException should be thrownBy getFunc("st_scale").apply(Seq(multiPolygon.expr, xLit, yLit))
noException should be thrownBy getFunc("st_rotate").apply(Seq(multiPolygon.expr, xLit, yLit))
Expand Down

0 comments on commit 398ef5c

Please sign in to comment.