Uploaded image for project: 'Apache Sedona'
  1. Apache Sedona
  2. SEDONA-531

RDD spatial join in Python throws Not available error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.1, 1.5.0, 1.5.1
    • 1.5.2

    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

          Activity

            People

              Unassigned Unassigned
              jiayu Jia Yu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m