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

geometry columns with snake_case names in GeoParquet files cannot be recognized as geometry column

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.5.2

    Description

      This is the code for reproducing this problem:

      from shapely.geometry import Point
      df = spark.createDataFrame([(1, Point(1, 2)), (2, Point(2, 3))], ["id", "test_geom"])
      df.printSchema()
      df.write.format("geoparquet").mode("overwrite").save("tmp_loc")
      df = spark.read.format("geoparquet").load("tmp_loc")
      df.printSchema()
      

      Output:

      root
       |-- id: long (nullable = true)
       |-- test_geom: geometry (nullable = true)
      
      root
       |-- id: long (nullable = true)
       |-- test_geom: binary (nullable = true)
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kontinuation Kristin Cowalcijk
              Votes:
              0 Vote for this issue
              Watchers:
              1 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