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

Added stringtodate and datetostring UDFs for 5.1.x #2056

Merged
merged 2 commits into from
Oct 18, 2018

Conversation

andybryant
Copy link
Contributor

Description

Added stringtodate and datetostring UDFs to convert to and from a formatted date string and an integer representing days since epoch. This format is used by Kafka Connect to represent Date objects with no time or time zone component.

In a separate commit on the same PR I also updated stringtotimestamp and timestamptostring to use the new UDF api and to support dynamically supplied format patterns.

This is #1890 cherry picked for the 5.1.x branch.

Testing done

Added tests for all new functionality and ran locally. Generated and views updated docs locally.

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 #")

@andybryant andybryant requested review from JimGalasyn and a team as code owners October 16, 2018 02:08
@ghost
Copy link

ghost commented Oct 16, 2018

@confluentinc It looks like @andybryant just signed our Contributor License Agreement. 👍

Always at your service,

clabot

@andybryant
Copy link
Contributor Author

Hi @big-andy-coates. This is #1890 cherry picked for the 5.1.x branch

Cheers
Andy

Copy link
Contributor

@dguy dguy left a comment

Choose a reason for hiding this comment

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

LGTM

@dguy dguy requested a review from a team October 16, 2018 09:45
@dguy
Copy link
Contributor

dguy commented Oct 16, 2018

@confluentinc/ksql can we get another +1 on this so that we can merge it? Has already been merged on master, but would be good to get this into 5.1...

Copy link
Contributor

@rodesai rodesai left a comment

Choose a reason for hiding this comment

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

LGTM

@dguy dguy merged commit 599997d into confluentinc:5.1.x Oct 18, 2018
@dguy
Copy link
Contributor

dguy commented Oct 18, 2018

thanks @andybryant! Merged

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.

4 participants