-
Notifications
You must be signed in to change notification settings - Fork 2.5k
[CALCITE-6066] Add HYPOT function (enabled in Spark library) #4720
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
Conversation
xuzifu666
left a comment
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.
Compared to the previous implementation, the overall implementation seems OK. I've left some minor comments.
core/src/main/java/org/apache/calcite/sql/fun/SqlLibraryOperators.java
Outdated
Show resolved
Hide resolved
testkit/src/main/java/org/apache/calcite/test/SqlOperatorTest.java
Outdated
Show resolved
Hide resolved
xuzifu666
left a comment
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
| f0.checkFails("^hypot(3, 4)^", | ||
| "No match found for function signature HYPOT\\(<NUMERIC>, <NUMERIC>\\)", | ||
| false); | ||
| final SqlOperatorFixture f = f0.withLibrary(SqlLibrary.SPARK); |
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.
This PR also supports ClickHouse, so should the Library section also include ClickHouse?
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.
Addressed
NobiGo
left a comment
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
3c05689 to
4c7d3ba
Compare
|



See CALCITE-6066
Referring to #3489, it appears to be complete, but there are currently conflicts with merging into the main branch, and it hasn't been maintained for a long time. I've resubmitted this PR.