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

fix: refactor and fix to_unixtime #2695

Merged
merged 6 commits into from
Nov 6, 2023

Conversation

killme2008
Copy link
Contributor

@killme2008 killme2008 commented Nov 5, 2023

I hereby agree to the terms of the GreptimeDB CLA

What's changed and what's your intention?

Main changes:

  • Fixed to_unixtime process the TimestampMillisecondVector and TimestampNanosecondVector not correctly, return the wrong value. It should return the unix timestamp in seconds.
  • Refactor to_unixtime function to avoid some unnecessary conversions.
  • Supports date type.

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)

@killme2008 killme2008 marked this pull request as ready for review November 5, 2023 23:19
Copy link

codecov bot commented Nov 5, 2023

Codecov Report

Merging #2695 (12dd4ef) into develop (f08a35d) will decrease coverage by 0.10%.
Report is 34 commits behind head on develop.
The diff coverage is 95.90%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2695      +/-   ##
===========================================
- Coverage    84.91%   84.81%   -0.10%     
===========================================
  Files          743      763      +20     
  Lines       120832   122599    +1767     
===========================================
+ Hits        102604   103984    +1380     
- Misses       18228    18615     +387     

@killme2008 killme2008 force-pushed the feature/fix-to-unixtime branch from 6e48402 to 6a8500c Compare November 6, 2023 00:27
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

@killme2008
Copy link
Contributor Author

@waynexia PTAL

@waynexia waynexia enabled auto-merge November 6, 2023 10:54
@waynexia waynexia added this pull request to the merge queue Nov 6, 2023
Merged via the queue into GreptimeTeam:develop with commit f387a09 Nov 6, 2023
12 checks passed
@killme2008 killme2008 deleted the feature/fix-to-unixtime branch January 16, 2024 09:42
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