Kristin Cowalcijk created SEDONA-673:
----------------------------------------

             Summary: Cannot load GeoParquet without bbox metadata when spatial 
filter is applied
                 Key: SEDONA-673
                 URL: https://issues.apache.org/jira/browse/SEDONA-673
             Project: Apache Sedona
          Issue Type: Bug
            Reporter: Kristin Cowalcijk
             Fix For: 1.7.0


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

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

h3. How to reproduce

Download data with the command

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

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



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to