This is an automated email from the ASF dual-hosted git repository.

jiayu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sedona.git


The following commit(s) were added to refs/heads/master by this push:
     new 2c5e80678 [SEDONA-531] Remove the version check in Sedona Spark Python 
(#1343)
2c5e80678 is described below

commit 2c5e80678378f1e366cf46a981bc154d0f84efdd
Author: Jia Yu <[email protected]>
AuthorDate: Thu Apr 18 22:56:13 2024 -0700

    [SEDONA-531] Remove the version check in Sedona Spark Python (#1343)
    
    * Remove the version check in Sedona
    
    * Fix the silly mistake
---
 python/sedona/core/SpatialRDD/spatial_rdd.py | 2 --
 python/sedona/core/jvm/config.py             | 2 +-
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/python/sedona/core/SpatialRDD/spatial_rdd.py 
b/python/sedona/core/SpatialRDD/spatial_rdd.py
index 374e1c36c..cc0fbe6e4 100644
--- a/python/sedona/core/SpatialRDD/spatial_rdd.py
+++ b/python/sedona/core/SpatialRDD/spatial_rdd.py
@@ -29,7 +29,6 @@ from sedona.core.enums.grid_type import GridTypeJvm, GridType
 from sedona.core.enums.index_type import IndexTypeJvm, IndexType
 from sedona.core.enums.spatial import SpatialType
 from sedona.core.geom.envelope import Envelope
-from sedona.core.jvm.config import since
 from sedona.core.jvm.translate import SedonaPythonConverter, 
JvmSedonaPythonConverter
 from sedona.utils.decorators import require
 from sedona.utils.jvm import JvmStorageLevel
@@ -193,7 +192,6 @@ class SpatialRDD:
         return self._srdd.countWithoutDuplicatesSPRDD()
 
     @property
-    @since("1.0.0")
     def fieldNames(self) -> List[str]:
         """
 
diff --git a/python/sedona/core/jvm/config.py b/python/sedona/core/jvm/config.py
index 1ad1da12c..12351aec8 100644
--- a/python/sedona/core/jvm/config.py
+++ b/python/sedona/core/jvm/config.py
@@ -200,7 +200,7 @@ class SedonaMeta:
     def get_version(cls, spark_jars: str) -> Optional[str]:
         # Find Spark version, Scala version and Sedona version.
         versions = findall(
-            
r"sedona-(?:python-adapter|spark-shaded)-([^,\n]{3})_([^,\n]{4})-([^,\n]{5})",
+            
r"sedona-(?:python-adapter|spark-shaded|spark)-([^,\n]{3})_([^,\n]{4})-([^,\n]{5})",
             spark_jars,
         )
         print(versions)

Reply via email to