Jia Yu created SEDONA-531:
-----------------------------

             Summary: RDD spatial join in Python throws Not available error
                 Key: SEDONA-531
                 URL: https://issues.apache.org/jira/browse/SEDONA-531
             Project: Apache Sedona
          Issue Type: Bug
    Affects Versions: 1.5.1, 1.5.0, 1.4.1
            Reporter: Jia Yu


I cannot longer access the fieldNames attribute of the resulting RDD. The 
following error appears:

´´´
AttributeError: Not available before 1.0.0 sedona version
´´´

This is interesting because the sedona version being used is not 1.0.0 but 
1.4.1 or higher. Also this used to work without problem for previous versions 
of sedona.

I ran into this issue today migrating from sedona 1.4 to the latest one which 
deprecated the use of the SedonaRegistrator.

 

 

To reproduce:

 

Create a spatial_rdd and attempt to get the fieldNames attribute:

spatial_rdd = Adapter.toSpatialRdd(spatial_rdd.select('local_id','location'), 
'location')
self.search_rdd.analyze()

print(f'showing spatial_rdd.fieldNames: \{spatial_rdd.fieldNames}')



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to