[
https://issues.apache.org/jira/browse/CALCITE-6066?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Runkang He updated CALCITE-6066:
--------------------------------
Description:
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.
was:
Add HYPOT function (enabled in Spark library)
HYPOT: calculates the hypotenuse of a right-angle triangle. 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.
> 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: Runkang He
> Priority: Major
>
> 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)