XuQianJin-Stars commented on code in PR #3648:
URL: https://github.com/apache/calcite/pull/3648#discussion_r1468428068


##########
core/src/main/java/org/apache/calcite/sql/fun/SqlLibraryOperators.java:
##########
@@ -2142,6 +2142,18 @@ private static RelDataType 
deriveTypeMapFromEntries(SqlOperatorBinding opBinding
           OperandTypes.NUMERIC_OPTIONAL_NUMERIC,
           SqlFunctionCategory.NUMERIC);
 
+  /** The "LOG2(value)" function.
+   *
+   * @see SqlStdOperatorTable#LN
+   * @see SqlStdOperatorTable#LOG10
+   */
+  @LibraryOperator(libraries = {MYSQL, SPARK})

Review Comment:
   I noticed that PostgreSQL, SQL Server, and Oracle all support the processing 
of the LOG2 function. You can check if this link can help improve this PR: 
https://www.w3resource.com/oracle/oracle-numeric-functions/oracle-log-function.php



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to