Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.4.1, 1.5.0, 1.5.1
Description
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}')
Attachments
Issue Links
- duplicates
-
SEDONA-472 Adapter API no longer works with unshaded jar
- Resolved
- links to