ST_Within predicate. Two geometries are in the same component if the first geometry is completely within the second. Returns a component ID for each row.
geometryis the geometry column to analyze.partitionByis an optional column to partition the data before computing connected components. When provided, the spatial predicate is only evaluated between rows that share the same partition value. This can significantly improve performance on large datasets.
Signatures
Parameters
The input geometry.
The partition by value.
Return type
The connected component ID for each row.

