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

fix: the Abs, Ceil and Floor methods now return proper types #3948

Merged
merged 1 commit into from
Nov 22, 2019

Conversation

agavra
Copy link
Contributor

@agavra agavra commented Nov 21, 2019

BREAKING CHANGE: abs, ceil and floor will now return types aligned with
other databases systems (i.e. the same type as the input). Previously
these udfs would always return Double.

fixes #3790

Testing done

  • Updated math.json

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

@agavra agavra requested a review from a team as a code owner November 21, 2019 23:27
@@ -0,0 +1,67 @@
/*
* Copyright 2018 Confluent Inc.
Copy link
Member

Choose a reason for hiding this comment

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

nit: 2019

Copy link
Contributor Author

Choose a reason for hiding this comment

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

so many derps 🤦‍♂ - this is what I get for thinking this was an "easy PR" and not paying attention to details. Thanks for catching them @stevenpyzhang!

Copy link
Member

@stevenpyzhang stevenpyzhang left a comment

Choose a reason for hiding this comment

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

LGTM, other than some copy paste errors. Also, provideSchema in Abs.java could be renamed to follow the convention in Ceil/Floor

@agavra agavra force-pushed the return_types branch 2 times, most recently from 50d9675 to 1cb4f45 Compare November 22, 2019 16:51
BREAKING CHANGE: abs, ceil and floor will now return types aligned with
other databases systems (i.e. the same type as the input). Previously
these udfs would always return Double.
@agavra agavra merged commit 3d6e119 into confluentinc:master Nov 22, 2019
@agavra agavra deleted the return_types branch November 22, 2019 19:23
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.

Breaking change: fix return types on inbuilt functions
2 participants