You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sedona.apache.org by "Daniel Vetter (Jira)" <ji...@apache.org> on 2021/06/01 15:00:00 UTC
[jira] [Created] (SEDONA-40) Pattern Match Wrong Ordering in
GeometryCollectionSimplifier.scala
Daniel Vetter created SEDONA-40:
-----------------------------------
Summary: Pattern Match Wrong Ordering in GeometryCollectionSimplifier.scala
Key: SEDONA-40
URL: https://issues.apache.org/jira/browse/SEDONA-40
Project: Apache Sedona
Issue Type: Bug
Reporter: Daniel Vetter
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
--
This message was sent by Atlassian Jira
(v8.3.4#803005)