kvpankaj1999 commented on code in PR #615:
URL: https://github.com/apache/incubator-sedona/pull/615#discussion_r855883974


##########
flink/src/test/java/org/apache/sedona/flink/FunctionTest.java:
##########
@@ -88,4 +88,22 @@ public void testAsEWKT() {
         String result = (String) first(polygonTable).getField(0);
         assertEquals("POLYGON ((-0.5 -0.5, -0.5 0.5, 0.5 0.5, 0.5 -0.5, -0.5 
-0.5))", result);
     }
+
+    @Test
+    public void testXMax() {
+        Table polygonTable = createPolygonTable(1);
+        Table MaxTable = 
polygonTable.select(call(Functions.ST_XMax.class.getSimpleName(), 
$(polygonColNames[0])));
+        double result = (double) first(MaxTable).getField(0);
+        System.out.println(result);

Review Comment:
   Removed the statement



##########
flink/src/test/java/org/apache/sedona/flink/FunctionTest.java:
##########
@@ -88,4 +88,22 @@ public void testAsEWKT() {
         String result = (String) first(polygonTable).getField(0);
         assertEquals("POLYGON ((-0.5 -0.5, -0.5 0.5, 0.5 0.5, 0.5 -0.5, -0.5 
-0.5))", result);
     }
+
+    @Test
+    public void testXMax() {
+        Table polygonTable = createPolygonTable(1);
+        Table MaxTable = 
polygonTable.select(call(Functions.ST_XMax.class.getSimpleName(), 
$(polygonColNames[0])));
+        double result = (double) first(MaxTable).getField(0);
+        System.out.println(result);
+        assertEquals(0.5, result,0);
+    }
+
+    @Test
+    public void testXMin() {
+        Table polygonTable = createPolygonTable(1);
+        Table MinTable = 
polygonTable.select(call(Functions.ST_XMin.class.getSimpleName(), 
$(polygonColNames[0])));
+        double result = (double) first(MinTable).getField(0);
+        System.out.println(result);

Review Comment:
   Removed the statement



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

Reply via email to