You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@sedona.apache.org by "bransonf (via GitHub)" <gi...@apache.org> on 2026/02/02 20:56:39 UTC

[I] RasterUDT Failing to Write to Delta Format; But works with output of RS_Union_Aggr [sedona]

bransonf opened a new issue, #2608:
URL: https://github.com/apache/sedona/issues/2608

   I am getting weird behavior trying to write a DataFrame containing the `raster` type to a delta table. The bare `raster` type fails to write, throwing: `java.lang.NoSuchMethodException: org.apache.spark.sql.sedona_sql.UDT.RasterUDT$.<init>()`
   
   ```python
   from sedona.spark import *
   sedona = SedonaContext.create(spark)
   
   ras = sedona.sql("SELECT RS_MakeEmptyRaster(1, 'D', 10, 10, 0, 0, 1, -1, 0, 0, 0) as raster")
   ras.write.format("delta").save("/tmp/ras")
   ```
   - Throws the exception
   
   
   ```python
   ras2 = sedona.sql("SELECT RS_Union_Aggr(RS_MakeEmptyRaster(1, 'D', 10, 10, 0, 0, 1, -1, 0, 0, 0), 0) as raster")
   ras2.write.format("delta").save("/tmp/ras2")
   ```
   - Writes without issue
   - Loads without any signs of corruption
   ```python
   ras3 = sedona.read.load("/tmp/ras")
   
   ras3.selectExpr(
     "explode(RS_PixelAsPoints(raster, 1)) as exploded"
   ).selectExpr(
     "exploded.geom as geom",
     "exploded.value as value",
     "exploded.x as x",
     "exploded.y as y"
   ).show()
   ```
   
   
   Behavior is identical on both
   ```
   Databricks 17.3 LTS + Sedona 1.8.1
   Databiricks 16.4 LTS + Sedona 1.7.1
   ```
   with and without the Kryo config
   ```
   spark.serializer org.apache.spark.serializer.KryoSerializer
   spark.kryo.registrator org.apache.sedona.core.serde.SedonaKryoRegistrator
   ```
   
   Any assistance would be greatly appreciated, and happy to provide additional information as necessary. Thanks!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@sedona.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] RasterUDT Failing to Write to Delta Format; But works with output of RS_Union_Aggr [sedona]

Posted by "jiayuasu (via GitHub)" <gi...@apache.org>.
jiayuasu closed issue #2608: RasterUDT Failing to Write to Delta Format; But works with output of RS_Union_Aggr
URL: https://github.com/apache/sedona/issues/2608


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@sedona.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org