ST_CONTAINS (Lakehouse v2)
Verifica se uma geometria contém outra. Devolve 1 se for verdadeiro.
Sintaxe de Analyze
Seção intitulada “Sintaxe de Analyze”func.st_contains(<geometry1>, <geometry2>)Exemplos de Analyze
Seção intitulada “Exemplos de Analyze”func.st_contains(get_column(table, 'area'), func.st_point(1, 1))
┌───┐│ 1 │└───┘Sintaxe SQL
Seção intitulada “Sintaxe SQL”ST_CONTAINS(<geometry1>, <geometry2>)Exemplos SQL
Seção intitulada “Exemplos SQL”SELECT ST_CONTAINS(ST_GeomFromText('POLYGON((0 0,10 0,10 10,0 10,0 0))'), ST_POINT(5, 5));
┌───┐│ 1 │└───┘