[
https://issues.apache.org/jira/browse/CALCITE-6066?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18049052#comment-18049052
]
Yu Xu commented on CALCITE-6066:
--------------------------------
Fixed in
[17f2f97|https://github.com/apache/calcite/commit/17f2f973dfda7b7ef935246cccab546f5806e1f9]
Thank you for the contribution [~jensen]
Thank you for the review [~nobigo]
> Add HYPOT function (enabled in Spark library)
> ---------------------------------------------
>
> Key: CALCITE-6066
> URL: https://issues.apache.org/jira/browse/CALCITE-6066
> Project: Calcite
> Issue Type: New Feature
> Components: core
> Affects Versions: 1.35.0
> Reporter: Runkang He
> Assignee: Zhen Chen
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.42.0
>
>
> Add HYPOT function (enabled in Spark library)
> HYPOT: returns sqrt(x^2+ y^2) without intermediate overflow or underflow. For
> example:
> {code:sql}
> SELECT hypot(3, 4);
> > 5.0
> {code}
> See more at [Spark
> |https://spark.apache.org/docs/latest/api/sql/index.html#hypot]doc.
> Note that I have checked there is no function with the same name in
> MySQL/PostgreSQL/Hive/Oracle.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)