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

Add day(interval) Presto function #9054

Closed

Conversation

mbasmanova
Copy link
Contributor

Differential Revision: D54830164

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 12, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D54830164

Copy link

netlify bot commented Mar 12, 2024

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit 6d2989f
🔍 Latest deploy log https://app.netlify.com/sites/meta-velox/deploys/65f0f2e8e163d50008350d7d

Copy link
Contributor

@kagamiori kagamiori left a 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));
Copy link
Contributor

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?

Copy link
Contributor Author

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.

mbasmanova added a commit to mbasmanova/velox-1 that referenced this pull request Mar 13, 2024
Summary: Pull Request resolved: facebookincubator#9054

Reviewed By: kagamiori

Differential Revision: D54830164
Summary: Pull Request resolved: facebookincubator#9054

Reviewed By: kagamiori

Differential Revision: D54830164
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D54830164

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D54830164

Copy link
Contributor

@xiaoxmeng xiaoxmeng left a comment

Choose a reason for hiding this comment

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

@mbasmanova LGTM. Thanks!

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 764aebd.

Joe-Abraham pushed a commit to Joe-Abraham/velox that referenced this pull request Jun 7, 2024
Summary: Pull Request resolved: facebookincubator#9054

Reviewed By: kagamiori

Differential Revision: D54830164

fbshipit-source-id: 31ebaffd75c08c5c8529435cff3e1ea1afa0421e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants