Imbruced opened a new pull request, #1681:
URL: https://github.com/apache/sedona/pull/1681

   
   ## Did you read the Contributor Guide?
   
   - Yes, I have read the [Contributor 
Rules](https://sedona.apache.org/latest-snapshot/community/rule/) and 
[Contributor Development 
Guide](https://sedona.apache.org/latest-snapshot/community/develop/)
   
   ## Is this PR related to a JIRA ticket?
   
   NO
   
   ## What changes were proposed in this PR?
   When reading geoparquet which does not have bbox in metadata query like 
below fails with Index OutofBoundException
   ```scala
   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 
   ```bash
   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.
   
   
   ## How was this patch tested?
   Unit test testing the given issue
   
   
   ## Did this PR include necessary documentation updates?
   no
   
   - Yes, I am adding a new API. I am using the [current SNAPSHOT version 
number](https://github.com/apache/sedona/blob/99239524f17389fc4ae9548ea88756f8ea538bb9/pom.xml#L29)
 in `vX.Y.Z` format.
   - Yes, I have updated the documentation.
   - No, this PR does not affect any public API so no need to change the 
documentation.
   


-- 
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

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to