[
https://issues.apache.org/jira/browse/PHOENIX-4866?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17044625#comment-17044625
]
Hadoop QA commented on PHOENIX-4866:
------------------------------------
{color:red}-1 overall{color}. Here are the results of testing the latest
attachment
http://issues.apache.org/jira/secure/attachment/12994539/PHOENIX-4866.master.v1.patch
against master branch at commit e1aee8e5d3fe335450db583f01cf91af1e6c5c7e.
ATTACHMENT ID: 12994539
{color:green}+1 @author{color}. The patch does not contain any @author
tags.
{color:green}+1 tests included{color}. The patch appears to include 0 new
or modified tests.
{color:green}+1 javac{color}. The applied patch does not increase the
total number of javac compiler warnings.
{color:green}+1 release audit{color}. The applied patch does not increase
the total number of release audit warnings.
{color:green}+1 lineLengths{color}. The patch does not introduce lines
longer than 100
{color:green}+1 core tests{color}. The patch passed unit tests in .
Test results:
https://builds.apache.org/job/PreCommit-PHOENIX-Build/3486//testReport/
Console output:
https://builds.apache.org/job/PreCommit-PHOENIX-Build/3486//console
This message is automatically generated.
> UDFs get error: org.apache.phoenix.schema.FunctionNotFoundException: ERROR
> 6001 (42F01): Function undefined
> -----------------------------------------------------------------------------------------------------------
>
> Key: PHOENIX-4866
> URL: https://issues.apache.org/jira/browse/PHOENIX-4866
> Project: Phoenix
> Issue Type: Bug
> Affects Versions: 5.0.0
> Environment: [^ArrayDistinctFunction.java]
> Reporter: cherish peng
> Assignee: Richard Antal
> Priority: Blocker
> Labels: User-Defined-Function, functions, udfs
> Fix For: 5.0.0
>
> Attachments: ArrayDistinctFunction.java, PHOENIX-4866.master.v1.patch
>
> Original Estimate: 72h
> Remaining Estimate: 72h
>
> I built an udf `ARRAY_DISTINCT`, When i exec:
> {color:#d04437}①{color} SELECT ARRAY_DISTINCT(ARRAY['A', 'B', 'A', 'C'],
> TRUE);
> throw error:
>
> {code:java}
> org.apache.phoenix.schema.FunctionNotFoundException: ERROR 6001 (42F01):
> Function undefined. functionName=ARRAY_DISTINCT at
> org.apache.phoenix.compile.FromCompiler$1.resolveFunction(FromCompiler.java:134)
> at
> org.apache.phoenix.compile.ExpressionCompiler.visitLeave(ExpressionCompiler.java:327)
> {code}
>
> However when i exec:
> {color:#d04437}②{color} SELECT ARRAY_DISTINCT(ARRAY['A', 'B', 'A', 'C'],
> TRUE) {color:#f79232}FROM TABLE_NAME;{color}
> output:
> *+---------------------+*
> *|* *ARRAY['A','B','C']* *|*
> *+---------------------+*
> *+---------------------+*
>
> {color:#d04437}③{color} SELECT
> ARRAY_DISTINCT({color:#f79232}array_elements{color}, TRUE) as arr
> {color:#f79232}FROM TABLE_NAME;{color}**
> {color:#f79232}output:{color}
> *+---------------------+*
> *| ARR* * ** |*
> *+---------------------+*
> *| ARRAY['A','B','C'] |***
> *+---------------------+*
>
> The DDL:
> CREATE FUNCTION ARRAY_DISTINCT(VARCHAR[], BOOLEAN) RETURNS VARCHAR AS
> 'com.godalgo.udf.ArrayDistinctFunction';
> My Environment: apache-phoenix-5.0.0-HBase-2.0-bin hbase-2.0.0 hadoop-3.1.0
>
> I tried the built-in functions which provided by Phoenix, ALL OF THEM ARE OK .
> *I had putted ARRAY_DISTINCT's SOURCE TO attachment.*
--
This message was sent by Atlassian Jira
(v8.3.4#803005)