-
Notifications
You must be signed in to change notification settings - Fork 334
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(to_unixtime): add initial implementation #1186
Conversation
@waynexia |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job! This patch generally looks good to me. Do you mind also adding some cases in our sqlness suite? Maybe a new file under common/select dir.
Codecov Report
@@ Coverage Diff @@
## develop #1186 +/- ##
===========================================
- Coverage 85.14% 84.72% -0.42%
===========================================
Files 485 495 +10
Lines 71903 72593 +690
===========================================
+ Hits 61223 61508 +285
- Misses 10680 11085 +405 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@waynexia |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your great work ❤️
* feat(to_unixtime): add initial implementation * feat(to_unixtime): use Timestamp for conversion * feat(to_unixtime): implement conversion to Result<VectorRef> * feat(to_unixtime): make unit test pass * feat(to_unixtime): preserve None for invalid timestamps * feat(to_unixtime): address code review suggestions * feat(to_unixtime): add an sqlness test * feat(to_unixtime): adjust the assertion for the sqlness test * Update tests/cases/standalone/common/select/dummy.sql --------- Co-authored-by: Ruihang Xia <[email protected]>
I hereby agree to the terms of the GreptimeDB CLA
What's changed and what's your intention?
The feature adds a new UDF
to_unixtime()
for conversions from a timestamp in RFC3339 format to a Unix timestamp.Checklist
Refer to a related PR or issue link (optional)
#1103