rambleraptor commented on PR #3207: URL: https://github.com/apache/iceberg-python/pull/3207#issuecomment-4616863903
I've been playing around with this PR and I ran into something. Here's a quick demo script for your own testing. One row, 1/1/24, we'd expect to be able to query it in this script. ``` schema = Schema(NestedField(1, "ts", TimestampType(), required=False)) sql = "CAST(ts AS year) > 2020" row = Record(datetime_to_micros(datetime(2024, 1, 1))) print(expression_evaluator(schema, parser.parse(sql), case_sensitive=True)(row)) # False ``` -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
