NobiGo commented on code in PR #3789:
URL: https://github.com/apache/calcite/pull/3789#discussion_r1632131142


##########
core/src/main/java/org/apache/calcite/adapter/enumerable/RexImpTable.java:
##########
@@ -211,6 +211,7 @@
 import static org.apache.calcite.sql.fun.SqlLibraryOperators.LOG2;
 import static org.apache.calcite.sql.fun.SqlLibraryOperators.LOGICAL_AND;
 import static org.apache.calcite.sql.fun.SqlLibraryOperators.LOGICAL_OR;
+import static org.apache.calcite.sql.fun.SqlLibraryOperators.LOG_MYSQLSPARK;

Review Comment:
   It is strange we use LOG_MYSQLSPARK. May be LOG_SPARK or LOG_MYSQL. we will 
add the `libraries` label in SqlLibraryOperators to show the function can work 
in which database.



##########
core/src/main/java/org/apache/calcite/sql/fun/SqlLibraryOperators.java:
##########
@@ -2214,6 +2222,7 @@ private static RelDataType 
deriveTypeMapFromEntries(SqlOperatorBinding opBinding
           OperandTypes.NUMERIC,
           SqlFunctionCategory.NUMERIC);
 
+

Review Comment:
   Delete the blank line.



##########
site/_docs/reference.md:
##########
@@ -2789,7 +2789,8 @@ In the following:
 | f s | LEN(string)                                  | Equivalent to 
`CHAR_LENGTH(string)`
 | b f s | LENGTH(string)                             | Equivalent to 
`CHAR_LENGTH(string)`
 | h s | LEVENSHTEIN(string1, string2)                | Returns the Levenshtein 
distance between *string1* and *string2*
-| b | LOG(numeric1 [, numeric2 ])                    | Returns the logarithm 
of *numeric1* to base *numeric2*, or base e if *numeric2* is not present
+| b p | LOG(numeric1 [, numeric2 ])                  | Returns the logarithm 
of *numeric1* to base *numeric2*, or base e if *numeric2* is not present
+| m s | LOG(numeric1 [, numeric2 ])                  | Returns the logarithm 
of *numeric1* to base *numeric2*, or base e if *numeric2* is not present

Review Comment:
   Need to add a description to illustrate the difference before LOG.



-- 
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: commits-unsubscr...@calcite.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to