Skip to main content
Due to a breaking change in Apache Sedona 1.4.0 to the SQL type of GeometryUDT (SEDONA-205) as well as the serialization format of geometry values (SEDONA-207), Parquet files containing geometry columns written by Apache Sedona 1.3.1 or earlier cannot be read by Apache Sedona 1.4.0 or later. For parquet files written by "parquet" format when using Apache Sedona 1.3.1-incubating or earlier:
Reading such files with Apache Sedona 1.4.0 or later using spark.read.format("parquet").load("path/to/parquet/files") will result in an exception:
Since v1.5.1, GeoParquet supports reading legacy Parquet files. you can use "geoparquet" format with the .option("legacyMode", "true") option. Here is an example: