[
https://issues.apache.org/jira/browse/TRAFODION-2208?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15492891#comment-15492891
]
ASF GitHub Bot commented on TRAFODION-2208:
-------------------------------------------
Github user traflm commented on a diff in the pull request:
https://github.com/apache/incubator-trafodion/pull/703#discussion_r78925378
--- Diff: core/sql/exp/exp_math_func.cpp ---
@@ -348,7 +349,18 @@ ex_expr::exp_return_type ExFunctionMath::eval(char
*op_data[],
return ex_expr::EXPR_ERROR;
}
- *(double *)op_data[0] = MathLog10(*(double *)op_data[1], err);
+ *(double *)op_data[0] = MathLog2(*(double *)op_data[1], err);
--- End diff --
oops, yes. Sorry about this bug.
> function support: log2,IS_IPV4,IS_IPV6 etc
> ------------------------------------------
>
> Key: TRAFODION-2208
> URL: https://issues.apache.org/jira/browse/TRAFODION-2208
> Project: Apache Trafodion
> Issue Type: Sub-task
> Reporter: liu ming
> Assignee: liu ming
>
> add built-in function
> IS_IPV4
> IS_IPV6
> LOG2
> Also try to enhance the least to accept multiple input arguments which is
> required in both Oracle/MySQL.
> This will be an example about how to add new built-in functions, so start
> with some very simple functions.
> One of the important goal is to guide the following developing works.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)