jiayuasu commented on code in PR #2260:
URL: https://github.com/apache/sedona/pull/2260#discussion_r2268665483
##########
spark/common/src/test/scala/org/apache/sedona/sql/geography/ConstructorsDataFrameAPITest.scala:
##########
@@ -62,4 +63,15 @@ class ConstructorsDataFrameAPITest extends TestBaseScala {
assert(actualResult == expectedResult)
}
+ it("passed ST_GeogFromEWKB") {
+ val wkbSeq = Seq[Array[Byte]](
+ Array[Byte](1, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, -124, -42, 0, -64, 0,
0, 0, 0, -128, -75,
+ -42, -65, 0, 0, 0, 96, -31, -17, -9, -65, 0, 0, 0, -128, 7, 93, -27,
-65))
+ val df = wkbSeq.toDF("wkb") select (st_constructors.ST_GeogFromEWKB("wkb"))
+ val actualResult = df.take(1)(0).get(0).asInstanceOf[Geography].toString()
+ val expectedResult =
+ "LINESTRING (-2.1 -0.4, -1.5 -0.7)"
Review Comment:
Please do the same for this as well.
--
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]