Skip to content

add support for time and time64 #252

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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

shivanshuraj1333
Copy link

@shivanshuraj1333 shivanshuraj1333 commented Jul 12, 2025

fixes #242

related to ClickHouse/ClickHouse#81217

Summary

A short description of the changes with a link to an open issue.

Checklist

Delete items not relevant to your PR:

  • Unit and integration tests covering the common scenarios were added
  • A human-readable description of the changes was provided so that we can include it in CHANGELOG later
  • For significant changes, documentation in README and https://github.com/ClickHouse/clickhouse-docs was updated with further explanations or tutorials

Copy link

windsurf-bot bot commented Jul 12, 2025

PR review rate limit exceeded

@CLAassistant
Copy link

CLAassistant commented Jul 12, 2025

CLA assistant check
All committers have signed the CLA.

@serprex
Copy link
Member

serprex commented Jul 12, 2025

can remove empty test_time_implementation.rs file

@shivanshuraj1333
Copy link
Author

can remove empty test_time_implementation.rs file

Sure, was testing if things are working fine with my local clickhouse server, will clean it up.
Thanks!

@shivanshuraj1333 shivanshuraj1333 force-pushed the feat/issues/242 branch 3 times, most recently from 6f4acfa to 6d3751f Compare July 12, 2025 23:19
@mshustov mshustov requested review from serprex and slvrtrn July 13, 2025 09:11
@mshustov
Copy link
Member

/windsurf-review

Copy link

windsurf-bot bot commented Jul 14, 2025

PR review rate limit exceeded

@shivanshuraj1333
Copy link
Author

working on CI failures...

@shivanshuraj1333 shivanshuraj1333 force-pushed the feat/issues/242 branch 3 times, most recently from 30b2b2b to e6ce37c Compare July 14, 2025 14:54
/// Optional timezone
Time(Option<String>),
/// Precision and optional timezone
Time64(DateTimePrecision, Option<String>),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -160,3 +176,22 @@ fn it_deserializes() {
assert_eq!(actual, sample());
}
}

#[test]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd also add a separate time/64 it for a round-trip, including corner case values

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, WIP

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

@slvrtrn
Copy link
Contributor

slvrtrn commented Jul 15, 2025

Clippy is fixed after #254

@shivanshuraj1333
Copy link
Author

Thanks for the review feedbacks @slvrtrn I shall update once I'm done with the changes.

@shivanshuraj1333
Copy link
Author

How can I trigger the CI?

@shivanshuraj1333
Copy link
Author

tested on local, CI should pass now.

@shivanshuraj1333 shivanshuraj1333 requested a review from slvrtrn July 17, 2025 05:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for Time and Time64 types
5 participants