-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Conversation
@@ -0,0 +1,67 @@ | |||
/* | |||
* Copyright 2018 Confluent Inc. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: 2019
There was a problem hiding this comment.
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!
ksql-engine/src/main/java/io/confluent/ksql/function/udf/math/Ceil.java
Outdated
Show resolved
Hide resolved
ksql-engine/src/main/java/io/confluent/ksql/function/udf/math/Ceil.java
Outdated
Show resolved
Hide resolved
ksql-engine/src/main/java/io/confluent/ksql/function/udf/math/Floor.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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
ksql-engine/src/main/java/io/confluent/ksql/function/InternalFunctionRegistry.java
Outdated
Show resolved
Hide resolved
50d9675
to
1cb4f45
Compare
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.
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
math.json
Reviewer checklist