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

feat: Add mathematical operators for IntervalYearMonth type #11612

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pramodsatya
Copy link
Collaborator

@pramodsatya pramodsatya commented Nov 21, 2024

Add support for mathematical functions plus, minus, multiply, and divide
with IntervalYearMonth type. The function signatures added match that of Presto,
accounting for the Presto function signature changes in prestodb/presto#24089.

@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 Nov 21, 2024
Copy link

netlify bot commented Nov 21, 2024

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit 0afc30c
🔍 Latest deploy log https://app.netlify.com/sites/meta-velox/deploys/6759af511d57610008fae0bf

Copy link
Collaborator

@aditi-pandit aditi-pandit left a comment

Choose a reason for hiding this comment

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

Thanks @pramodsatya.

We can use more templates in this code I feel to reduce the volume of new code. PTAL.

velox/functions/prestosql/Arithmetic.h Outdated Show resolved Hide resolved
velox/functions/prestosql/Arithmetic.h Show resolved Hide resolved
velox/functions/prestosql/tests/ArithmeticTest.cpp Outdated Show resolved Hide resolved
@pramodsatya
Copy link
Collaborator Author

Thanks @aditi-pandit, updated the PR to use more templates and reduce the lines of new code. Could you please take another look?

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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants