ST_CONTAINS (Lakehouse v2)
Checks whether one geometry contains another. Returns 1 if true.
Analyze Syntax
Section titled “Analyze Syntax”func.st_contains(<geometry1>, <geometry2>)Analyze Examples
Section titled “Analyze Examples”func.st_contains(get_column(table, 'area'), func.st_point(1, 1))
┌───┐│ 1 │└───┘SQL Syntax
Section titled “SQL Syntax”ST_CONTAINS(<geometry1>, <geometry2>)SQL Examples
Section titled “SQL Examples”SELECT ST_CONTAINS(ST_GeomFromText('POLYGON((0 0,10 0,10 10,0 10,0 0))'), ST_POINT(5, 5));
┌───┐│ 1 │└───┘