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: impl duration datatype and vectors #2180

Merged
merged 9 commits into from Sep 18, 2023

Conversation

QuenKar
Copy link
Contributor

@QuenKar QuenKar commented Aug 16, 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:

Main change:

  1. implement DurationType in src/datatypes/src/types.
  2. implement Datatype, Vector, Scalar, WrapperType traits for Duration type, we can use DurationSecondVector,DurationMillisecondVector etc.
  3. implement some conversion between Duration and gRPC, JSON, arrow duration arrays, ScalarValue etc.

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)

@codecov
Copy link

codecov bot commented Aug 16, 2023

Codecov Report

Merging #2180 (493d32c) into develop (c42cce5) will decrease coverage by 0.04%.
Report is 1 commits behind head on develop.
The diff coverage is 76.83%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2180      +/-   ##
===========================================
- Coverage    77.44%   77.41%   -0.04%     
===========================================
  Files          726      728       +2     
  Lines       114219   114939     +720     
===========================================
+ Hits         88461    88976     +515     
- Misses       25758    25963     +205     

@killme2008
Copy link
Contributor

@QuenKar Thanks for your PR. Is this PR ready for review? If so, there are some conflicts that have to be resolved.

@QuenKar QuenKar force-pushed the feat/duration-datatype branch 2 times, most recently from dfffb09 to 50e60e4 Compare August 25, 2023 08:23
@QuenKar
Copy link
Contributor Author

QuenKar commented Aug 25, 2023

@killme2008 thx, I resolved the conflicts, please take a look.

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.

Good job!

Cargo.toml Outdated Show resolved Hide resolved
src/api/src/helper.rs Outdated Show resolved Hide resolved
src/servers/src/postgres/types.rs Show resolved Hide resolved
@killme2008
Copy link
Contributor

@waynexia Please take a look

src/api/src/helper.rs Outdated Show resolved Hide resolved
src/datatypes/src/data_type.rs Outdated Show resolved Hide resolved
src/datatypes/src/types/duration_type.rs Outdated Show resolved Hide resolved
src/sql/src/statements.rs Show resolved Hide resolved
@QuenKar QuenKar marked this pull request as draft September 13, 2023 06:52
@QuenKar QuenKar force-pushed the feat/duration-datatype branch 2 times, most recently from e45a0f7 to da7f51d Compare September 18, 2023 02:48
@QuenKar QuenKar marked this pull request as ready for review September 18, 2023 02:54
@QuenKar
Copy link
Contributor Author

QuenKar commented Sep 18, 2023

@evenyag If you have time, please take a look(•̀ᴗ• )

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

@evenyag evenyag added this pull request to the merge queue Sep 18, 2023
Merged via the queue into GreptimeTeam:develop with commit 14e6998 Sep 18, 2023
11 checks passed
paomian pushed a commit to paomian/greptimedb that referenced this pull request Oct 19, 2023
* feat: impl datatype, vector traits for duration.

* feat: duration and grpc.

* test: add unit test cases.

* chore: style and test case.

* fix: update greptime-proto version and helper.rs

* chore: fix type name.

* Update src/datatypes/src/data_type.rs

Co-authored-by: Yingwen <realevenyag@gmail.com>

* chore: cr.

* chore: fix greptime-proto

---------

Co-authored-by: Yingwen <realevenyag@gmail.com>
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.

None yet

3 participants