Kristin Cowalcijk created SEDONA-510:
----------------------------------------

             Summary: geometry columns with snake_case names in GeoParquet 
files cannot be recognized as geometry column
                 Key: SEDONA-510
                 URL: https://issues.apache.org/jira/browse/SEDONA-510
             Project: Apache Sedona
          Issue Type: Bug
            Reporter: Kristin Cowalcijk
             Fix For: 1.6.0


This is the code for reproducing this problem:

{code}
from shapely.geometry import Point
df = spark.createDataFrame([(1, Point(1, 2)), (2, Point(2, 3))], ["id", 
"test_geom"])
df.printSchema()
df.write.format("geoparquet").mode("overwrite").save("tmp_loc")
df = spark.read.format("geoparquet").load("tmp_loc")
df.printSchema()
{code}

Output:

{code}
root
 |-- id: long (nullable = true)
 |-- test_geom: geometry (nullable = true)

root
 |-- id: long (nullable = true)
 |-- test_geom: binary (nullable = true)
{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to