Feng created SEDONA-561: --------------------------- Summary: Failed to run examples in the core.showcase package Key: SEDONA-561 URL: https://issues.apache.org/jira/browse/SEDONA-561 Project: Apache Sedona Issue Type: Bug Affects Versions: 1.6.0 Environment: spark: 3.3.0, scala: 2.12 sedona: 1.6.0 Reporter: Feng
When the main method in the Example class under the following Sedona package (org.apache.sedona.core.showcase), it failed with exceptions attached. Run: org.apache.sedona.core.showcase.Example: {code:java} org.apache.spark.SparkException: Job aborted due to stage failure: Task 0 in stage 0.0 failed 1 times, most recent failure: Lost task 0.0 in stage 0.0 (TID 0) (192.168.1.253 executor driver): java.lang.NumberFormatException: For input string: "testattribute0" at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2043) at sun.misc.FloatingDecimal.parseDouble(FloatingDecimal.java:110) at java.lang.Double.parseDouble(Double.java:538) at org.apache.sedona.common.utils.FormatUtils.readCoordinates(FormatUtils.java:241) at org.apache.sedona.common.utils.FormatUtils.readGeometry(FormatUtils.java:293) at org.apache.sedona.core.formatMapper.FormatMapper.call(FormatMapper.java:77) at org.apache.sedona.core.formatMapper.FormatMapper.call(FormatMapper.java:32) at org.apache.spark.api.java.JavaRDDLike.$anonfun$mapPartitions$1(JavaRDDLike.scala:153) ... {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)