kishoreg commented on a change in pull request #6376:
URL: https://github.com/apache/incubator-pinot/pull/6376#discussion_r547703614



##########
File path: 
pinot-core/src/main/java/org/apache/pinot/core/geospatial/transform/function/ScalarFunctions.java
##########
@@ -72,4 +73,17 @@ public static String stAsText(byte[] bytes) {
     WKTWriter writer = new WKTWriter();
     return writer.write(GeometrySerializer.deserialize(bytes));
   }
+
+  /**
+   * Saves the geometry object as WKT format.
+   *
+   * @param bytes the serialized geometry object
+   * @return the geometry in WKT
+   */
+  @ScalarFunction
+  public static byte[] toSphericalGeography(byte[] bytes) {

Review comment:
       this is what Presto had




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

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



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org

Reply via email to