You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Weizhong (JIRA)" <ji...@apache.org> on 2016/08/27 08:22:20 UTC

[jira] [Commented] (HIVE-12540) Create function failed, but show functions display it

    [ https://issues.apache.org/jira/browse/HIVE-12540?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15441021#comment-15441021 ] 

Weizhong commented on HIVE-12540:
---------------------------------

I mean if the function create failed, we can't display it when run "show functions", but now it did. I run on Hive 2.1, it still have the problem.
{noformat}
hive> create function abc as 'abc';
Failed to register default.abc using class abc
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.FunctionTask
hive> show functions like "default.*";
OK
default.abc
Time taken: 0.021 seconds, Fetched: 1 row(s)
{noformat}

> Create function failed, but show functions display it
> -----------------------------------------------------
>
>                 Key: HIVE-12540
>                 URL: https://issues.apache.org/jira/browse/HIVE-12540
>             Project: Hive
>          Issue Type: Bug
>          Components: Hive
>    Affects Versions: 1.2.0, 1.2.1
>            Reporter: Weizhong
>            Priority: Minor
>
> {noformat}
> 0: jdbc:hive2://vm119:10000> create function udfTest as 'hive.udf.UDFArrayNotE';
> ERROR : Failed to register default.udftest using class hive.udf.UDFArrayNotE
> Error: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.FunctionTask (state=08S01,code=1)
> 0: jdbc:hive2://vm119:10000> show functions;
> +-------------------------+--+
> |        tab_name         |
> +-------------------------+--+
> | ...                     |
> | default.udftest         |
> | ...                     |
> +-------------------------+--+
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)