def METHOD_NAME(self):
    linestring = LineString([(0.0, 1.0), (1, 1), (12.0, 1.0)])
    data = [
        [1, linestring]
    ]
    schema = t.StructType(
        [
            t.StructField("id", IntegerType(), True),
            t.StructField("geom", GeometryType(), True)
        ]
    )
    self.spark.createDataFrame(
        data,
        schema
    ).createOrReplaceTempView("line")
    length = self.spark.sql("select st_length(geom) from line").collect()[0][0]
    assert length == 12.0