cloud-fan commented on code in PR #54039:
URL: https://github.com/apache/spark/pull/54039#discussion_r2752390010


##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/parquet/ParquetTable.scala:
##########
@@ -51,6 +51,10 @@ case class ParquetTable(
   }
 
   override def supportsDataType(dataType: DataType): Boolean = dataType match {
+    // GeoSpatial data types in Parquet are limited only to types with 
supported SRIDs.
+    case g: GeometryType => GeometryType.isSridSupported(g.srid)

Review Comment:
   a dumb question: `GeometryType.isSridSupported` sounds like not for parquet, 
but for spark itself. So this is a safe guard that if the input data contains 
geo values that not supported by Spark (not sure how it can happen), we don't 
write them to parquet?



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to