James Willis created SEDONA-628:
-----------------------------------
Summary: Python DataFrame Functions Cannot Be Imported As
Documented
Key: SEDONA-628
URL: https://issues.apache.org/jira/browse/SEDONA-628
Project: Apache Sedona
Issue Type: Bug
Reporter: James Willis
running the example from the documentation returns an error.
The following code
{code:python}
from pyspark.sql import functions as f
from sedona.spark import *
df = spark.sql("SELECT array(0.0, 1.0, 2.0) AS values")
min_value = f.array_min("values")
max_value = f.array_max("values")
df = df.select(ST_Point(min_value, max_value).alias("point"))
{code}
returns the error: {{NameError: name 'ST_Point' is not defined}}
I tested several other functions from predicates, functions, and constructors
with the same result.
>From my testing {{from sedona.sql.st_constructors import ST_Point}} works, but
>{{from sedona.sql.st_constructors import *}} does not
--
This message was sent by Atlassian Jira
(v8.20.10#820010)