st_isempty
Preview
Support for GEOGRAPHY values is in Public Preview. Support for GEOMETRY values is generally available.
Returns True if the input Geography or Geometry value does not contain any non-empty points.
For the corresponding Databricks SQL function, see st_isempty function.
Syntax
Python
from pyspark.databricks.sql import functions as dbf
dbf.st_isempty(col=<col>)
Parameters
Examples
Python
from pyspark.databricks.sql import functions as dbf
df = spark.createDataFrame([('MULTIPOINT(10 34,44 57,EMPTY)',)], ['wkt'])
df.select(dbf.st_isempty(dbf.st_geomfromwkt('wkt')).alias('result')).collect()
Output
[Row(result=False)]