Skip to content
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

feat: compatible with postgres interval type #2146

Merged
merged 4 commits into from
Aug 11, 2023

Conversation

QuenKar
Copy link
Contributor

@QuenKar QuenKar commented Aug 10, 2023

I hereby agree to the terms of the GreptimeDB CLA

What's changed and what's your intention?

PLEASE DO NOT LEAVE THIS EMPTY !!!

Please explain IN DETAIL what the changes are in this PR and why they are needed:

implement common_time::interval convert to/from postgres interval using PgInterval

Checklist

  • I have written the necessary rustdoc comments.
  • I have added the necessary unit tests and integration tests.

Refer to a related PR or issue link (optional)

#1952 (comment)
Closes: #2098

@codecov
Copy link

codecov bot commented Aug 10, 2023

Codecov Report

Merging #2146 (41f031e) into develop (587a24e) will decrease coverage by 0.26%.
Report is 5 commits behind head on develop.
The diff coverage is 51.72%.

@@             Coverage Diff             @@
##           develop    #2146      +/-   ##
===========================================
- Coverage    84.84%   84.59%   -0.26%     
===========================================
  Files          693      696       +3     
  Lines       109969   110479     +510     
===========================================
+ Hits         93306    93459     +153     
- Misses       16663    17020     +357     

Copy link
Contributor

@killme2008 killme2008 left a comment

Choose a reason for hiding this comment

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

LGTM

@killme2008
Copy link
Contributor

@sunng87 Please take a look.

@sunng87
Copy link
Member

sunng87 commented Aug 11, 2023

@QuenKar Thank you!

@sunng87 sunng87 added this pull request to the merge queue Aug 11, 2023
@sunng87 sunng87 removed this pull request from the merge queue due to a manual request Aug 11, 2023
@sunng87 sunng87 added this pull request to the merge queue Aug 11, 2023
@sunng87 sunng87 removed this pull request from the merge queue due to a manual request Aug 11, 2023
@sunng87 sunng87 merged commit 6877d08 into GreptimeTeam:develop Aug 11, 2023
13 checks passed
paomian pushed a commit to paomian/greptimedb that referenced this pull request Oct 19, 2023
* feat: impl ToSql/FromSql/ToSqlText for PgInterval.

* chore: remove useless code.

* feat: compatible with postgres interval type.

* chore: cr comment.
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.

Conversion between postgres and interval type
3 participants