-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add day(interval) Presto function #9054
Conversation
This pull request was exported from Phabricator. Differential Revision: D54830164 |
✅ Deploy Preview for meta-velox canceled.
|
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. Thank you!
|
||
EXPECT_EQ(1, day(kMillisInDay)); | ||
EXPECT_EQ(1, day(kMillisInDay + kMillisInHour)); | ||
EXPECT_EQ(10, day(10 * kMillisInDay + 7 * kMillisInHour)); |
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.
Can interval be negative? Shall we add some test cases with negative values?
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.
It can. Added a test.
Summary: Pull Request resolved: facebookincubator#9054 Reviewed By: kagamiori Differential Revision: D54830164
efa16de
to
e73870a
Compare
Summary: Pull Request resolved: facebookincubator#9054 Reviewed By: kagamiori Differential Revision: D54830164
This pull request was exported from Phabricator. Differential Revision: D54830164 |
e73870a
to
6d2989f
Compare
This pull request was exported from Phabricator. Differential Revision: D54830164 |
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.
@mbasmanova LGTM. Thanks!
This pull request has been merged in 764aebd. |
Summary: Pull Request resolved: facebookincubator#9054 Reviewed By: kagamiori Differential Revision: D54830164 fbshipit-source-id: 31ebaffd75c08c5c8529435cff3e1ea1afa0421e
Differential Revision: D54830164