xiaozhiyan opened a new issue, #104:
URL: https://github.com/apache/iceberg-rust/issues/104

   Hi there, I've pulled `main` branch at 
https://github.com/apache/iceberg-rust/commit/a6d98c332385f5e89e8cb643df7ea15c5ec820e7
 and found that tests `test_create_table` and `test_update_table` fail due to 
type error.
   
   ```
   error[E0277]: can't compare `{integer}` with `chrono::DateTime<chrono::Utc>`
       --> crates/catalog/rest/src/catalog.rs:1281:9
        |
   1281 |         assert_eq!(1657810967051, table.metadata().last_updated_ms());
        |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 
no implementation for `{integer} == chrono::DateTime<chrono::Utc>`
   
   error[E0277]: can't compare `{integer}` with `chrono::DateTime<chrono::Utc>`
       --> crates/catalog/rest/src/catalog.rs:1453:9
        |
   1453 |         assert_eq!(1657810967051, table.metadata().last_updated_ms());
        |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 
no implementation for `{integer} == chrono::DateTime<chrono::Utc>`
   ```
   
   We may need to add `.timestamp_millis()` to the following two lines.
   - 
https://github.com/apache/iceberg-rust/commit/a6d98c332385f5e89e8cb643df7ea15c5ec820e7#diff-cb9d997d5104f8406186a80782bdc7f9bde4426ec307b73ce710d94bfae5ac5aR1281
   - 
https://github.com/apache/iceberg-rust/commit/a6d98c332385f5e89e8cb643df7ea15c5ec820e7#diff-cb9d997d5104f8406186a80782bdc7f9bde4426ec307b73ce710d94bfae5ac5aR1453


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