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

   ## Did you read the Contributor Guide?
   
   - Yes, I have read the [Contributor 
Rules](https://sedona.apache.org/latest/community/rule/) and [Contributor 
Development Guide](https://sedona.apache.org/latest/community/develop/)
   
   ## Is this PR related to a ticket?
   
   - Yes, and the PR name follows the format `[GH-XXX] my subject`. Closes 
#<issue_number>
   
   ## What changes were proposed in this PR?
     Fixed a bug where the STAC reader would return 0 items when a tuple was 
passed as the datetime
     parameter, while the same data as a list would return expected results.
   
     Problem
   
     The CollectionClient.load_items_df() method only checked for list type 
when handling datetime
     parameters, causing tuples to be ignored and resulting in no temporal 
filtering being applied.
   
     Before:
     t = ("2025-01-01", "2025-02-01")
     items = client.search(datetime=t)  # Returns 0 items
   
     After:
     t = ("2025-01-01", "2025-02-01")
     items = client.search(datetime=t)  # Returns expected items
   
   ## How was this patch tested?
   test_collection_client.py:
   - test_get_items_with_tuple_datetime(): Verifies tuple datetime input works 
for get_items()
   - test_get_dataframe_with_tuple_datetime(): Verifies tuple datetime input 
works for get_dataframe()
   
   ## Did this PR include necessary documentation updates?
   - 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to