kevinjqliu commented on issue #1108:
URL: 
https://github.com/apache/iceberg-python/issues/1108#issuecomment-2322911398

   Thanks for the example @JasperHG90 
   Here's a notebook to help with debugging. 
   https://gist.github.com/kevinjqliu/bc0b6457b27a89e3628720896fb24195
   
   Something I noticed is that the overwrite filter is expected to match only 1 
"timestamp" partition, the (2023, 1, 1, 0) one. 
   ```
       overwrite_filter=E.And(
           E.And(
               E.GreaterThanOrEqual("timestamp", dt.datetime(2023, 1, 1, 
0).isoformat()),
               E.LessThan("timestamp", dt.datetime(2023, 1, 1, 1).isoformat()),
           ),
           E.EqualTo("category", "A"),
       )
   ```
   So I changed it to 
   ```
           E.EqualTo("timestamp", dt.datetime(2023, 1, 1, 0).isoformat()),
   ```
   
   And the resulting table is as expected 
   
   The error above only happens with specifying the 2 timestamp filters. 
Perhaps the issue is related to how the expressions are evaluated 


-- 
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: issues-unsubscr...@iceberg.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to