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

Cannot load GeoParquet without bbox metadata when spatial filter is applied

    XMLWordPrintableJSON

Details

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

    Description

      When reading geoparquet which does not have bbox in metadata query like below fails with Index OutofBoundException

      sparkSession.read
              .format("geoparquet")
              .load(overtureBBOX)
              .where("ST_Intersects(geometry, ST_PolygonFromEnvelope(0, 0, 1, 1))")
              .count()
      The issue was when evaluating predicate pushdowns
      

      How to reproduce

      Download data with the command

      uv run overturemaps download --bbox 0,0,1,1 -f geoparquet --type=place -o bbox.geoparquet
      

      then try to load it with some predicate like contains or within.

      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