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

Pattern Match Wrong Ordering in GeometryCollectionSimplifier.scala

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • None
    • 1.1.0

    Description

      Pattern matching in Scala happens in the order that matches are defined, meaning that in the GeometryCollectionSimplifier, the match will never land on the case collection: GeometryCollection. I might be missing something here, but figured I'd log this bug and find out. If it is wrong, then it can be fixed, and if it is right, then I can learn why. Thanks for the continued hard work on Sedona and really excited about ST_Subdivide!

      https://github.com/apache/incubator-sedona/blob/55311f82b9a7c3ba6d215710c576134d1817edb6/sql/src/main/scala/org/apache/spark/sql/sedona_sql/expressions/simplify/GeometryCollectionSimplifier.scala#L38

      Attachments

        Issue Links

          Activity

            People

              jiayu Jia Yu
              Daniel-V1 Daniel Vetter
              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 - 40m
                  40m