Caican Cai created CALCITE-6224:
-----------------------------------
Summary: Add LOG2 function on SqlStdOperatorTable
Key: CALCITE-6224
URL: https://issues.apache.org/jira/browse/CALCITE-6224
Project: Calcite
Issue Type: New Feature
Components: core
Affects Versions: 1.36.0
Reporter: Caican Cai
Fix For: 1.37.0
The log2 function is supported in many databases, such as spark, mysql,
postgres, etc.
{code:java}
> SELECT log2(2);
1.0 {code}
links:
[https://spark.apache.org/docs/3.4.0/api/sql/index.html#log2]
https://dev.mysql.com/doc/refman/8.0/en/mathematical-functions.html#function_log2
--
This message was sent by Atlassian Jira
(v8.20.10#820010)