Uploaded image for project: 'Apache Sedona'
  1. Apache Sedona
  2. SEDONA-561

Failed to run examples in the core.showcase package

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.6.0
    • 1.6.1
    • spark: 3.3.0, scala: 2.12
      sedona: 1.6.0

    Description

      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:

       

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

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              zhangfengcdt Feng Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m