uros-db commented on code in PR #55631:
URL: https://github.com/apache/spark/pull/55631#discussion_r3200780239
##########
sql/catalyst/src/main/java/org/apache/spark/sql/catalyst/util/STUtils.java:
##########
@@ -78,6 +82,16 @@ public static GeometryVal geographyToGeometry(GeographyVal
geographyVal) {
return toPhysVal(Geometry.fromBytes(geographyVal.getBytes()));
}
+ // Cast geography to binary.
+ public static byte[] geographyToBinary(GeographyVal geographyVal) {
Review Comment:
Condensed everything to `stAsBinary` and removed the rest.
--
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]