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 DATEADD and DATESUB functions #7744

Merged
merged 2 commits into from
Jul 1, 2021

Conversation

jzaralim
Copy link
Contributor

Description

as the title says. this won't pass until #7733 is merged since that PR contains changes required to enable DATE for UDFs.

Testing done

QTT + unit tests.

Reviewer checklist

  • Ensure docs are updated if necessary. (eg. if a user visible feature is being added or changed).
  • Ensure relevant issues are linked (description should include text like "Fixes #")

@jzaralim jzaralim requested a review from spena June 29, 2021 16:26
@jzaralim jzaralim requested review from JimGalasyn and a team as code owners June 29, 2021 16:26
Copy link
Member

@JimGalasyn JimGalasyn left a comment

Choose a reason for hiding this comment

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

LGTM!

"outputs": [
{"topic": "TEST2", "key": 0, "value": {"VALUE": 0}},
{"topic": "TEST2", "key": 0, "value": {"VALUE": 5}},
{"topic": "TEST2", "key": 0, "value": {"VALUE": -3}}
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure if supporting this negative results. What does a DATE data type does when detecting a negative value?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Connect translates dates before Epoch to negative numbers, so in this case its 1969-12-28.

Copy link
Member

@spena spena left a comment

Choose a reason for hiding this comment

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

LGTM

@jzaralim jzaralim merged commit c63e924 into confluentinc:master Jul 1, 2021
@jzaralim jzaralim deleted the date-math branch July 1, 2021 04:11
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.

3 participants