-
Notifications
You must be signed in to change notification settings - Fork 288
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove chrono #1317
remove chrono #1317
Conversation
@@ -2702,7 +2701,6 @@ dependencies = [ | |||
"anyhow", | |||
"async-trait", | |||
"byte-unit", | |||
"chrono", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there still a deps on chrono somewhere?
(I was expecting a larger diff in Cargo.lock)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, on diesel. They use it for serialization and don't plan to replace it diesel-rs/diesel#2928
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems optional though. Do we need that feature?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I answered that here #1317 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for asking the diesel people. They mentioned it was optional. Do we actually use this feature?
We use it in the postgremodel https://github.com/quickwit-oss/quickwit/blob/main/quickwit-metastore/src/postgresql/model.rs#L64 I think we could replace it and use i64 directly NativeDateTime seems to be converted to timestamp which is i64 |
I did a test, and simply replacing the field with i64 will not work without an additional migration step. |
remove chrono
#1296