You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sedona.apache.org by "Kristin Cowalcijk (Jira)" <ji...@apache.org> on 2024/03/06 08:09:00 UTC
[jira] [Created] (SEDONA-511) geometry columns with snake_case names in GeoParquet files cannot be recognized as geometry column
Kristin Cowalcijk created SEDONA-511:
----------------------------------------
Summary: geometry columns with snake_case names in GeoParquet files cannot be recognized as geometry column
Key: SEDONA-511
URL: https://issues.apache.org/jira/browse/SEDONA-511
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)