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

refactor: not allowed int64 type as time index #2460

Merged
merged 6 commits into from
Sep 22, 2023

Conversation

QuenKar
Copy link
Contributor

@QuenKar QuenKar commented Sep 21, 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. remove is_timestamp_compatible() from datatype trait.
  2. remove int64 => timestamp from match arms.
  3. remove int64 to timestamp from mito2.

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)

@QuenKar QuenKar marked this pull request as ready for review September 21, 2023 06:35
@codecov
Copy link

codecov bot commented Sep 21, 2023

Codecov Report

Merging #2460 (abbe67b) into develop (339e12c) will increase coverage by 6.93%.
Report is 18 commits behind head on develop.
The diff coverage is 85.71%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2460      +/-   ##
===========================================
+ Coverage    77.55%   84.48%   +6.93%     
===========================================
  Files          717      725       +8     
  Lines       112479   115051    +2572     
===========================================
+ Hits         87228    97198    +9970     
+ Misses       25251    17853    -7398     

@QuenKar QuenKar marked this pull request as draft September 21, 2023 06:47
@QuenKar QuenKar marked this pull request as ready for review September 21, 2023 07:10
src/store-api/src/metadata.rs Outdated Show resolved Hide resolved
src/store-api/src/metadata.rs Outdated Show resolved Hide resolved
QuenKar and others added 2 commits September 22, 2023 10:58
Co-authored-by: dennis zhuang <killme2008@gmail.com>
@killme2008 killme2008 requested a review from v0y4g3r September 22, 2023 03:24
@killme2008
Copy link
Contributor

@v0y4g3r PTAL

Copy link
Contributor

@evenyag evenyag left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@v0y4g3r v0y4g3r left a comment

Choose a reason for hiding this comment

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

LGTM

@v0y4g3r v0y4g3r added this pull request to the merge queue Sep 22, 2023
Merged via the queue into GreptimeTeam:develop with commit aef9e7b Sep 22, 2023
13 checks passed
paomian pushed a commit to paomian/greptimedb that referenced this pull request Oct 19, 2023
* refactor: remove is_timestamp_compatible.

* chore: fmt

* refactor: remove int64 to timestamp match

* chore

* chore: apply suggestions from code review

Co-authored-by: dennis zhuang <killme2008@gmail.com>

* chore: fmt

---------

Co-authored-by: dennis zhuang <killme2008@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.

4 participants