uros-db commented on code in PR #54325:
URL: https://github.com/apache/spark/pull/54325#discussion_r2836279836


##########
sql/catalyst/src/main/java/org/apache/spark/sql/catalyst/util/Geometry.java:
##########
@@ -154,14 +155,23 @@ public byte[] toEwkb(ByteOrder endianness) {
 
   @Override
   public byte[] toWkt() {
-    // Once WKT conversion is implemented, it should support various 
precisions.
-    throw new UnsupportedOperationException("Geometry WKT conversion is not 
yet supported.");
+    return toWktInternal().getBytes(StandardCharsets.UTF_8);

Review Comment:
   We could, but it's very minor (1 line) and I do kind of prefer to keep 
`toWktInternal` private for the two classes separately. So I would prefer to 
keep as-is.



-- 
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