AlexTelloG opened a new issue, #1247:
URL: https://github.com/apache/sedona/issues/1247
## Expected behavior
When creating a spatial_rdd from a pyspark dataframe I should be able to
access the fieldNames attribute by the following command:
spatial_rdd.fieldNames
Which should give me the additional names included in the spark data frame.
## Actual behavior
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.
## Steps to reproduce the problem
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}')
## Settings
Sedona version = 1.4.1 or higher
Apache Spark version = 3.4.1 or higher
Apache Flink version = ?
API type = Python
Scala version =
JRE version = 1.8, 1.11?
Python version = 3.9
Environment = Standalone
This is part of the spark config for spark-submit:
--packages org.apache.sedona:sedona-spark-3.4_2.12:1.5.1,\
org.datasyslab:geotools-wrapper:1.4.0-28.2,\
uk.co.gresearch.spark:spark-extension_2.13:2.11.0-3.4
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscr...@sedona.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org