You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Carl Steinbach (JIRA)" <ji...@apache.org> on 2009/12/18 02:38:18 UTC

[jira] Created: (HIVE-996) "describe function" throws NPE when when called on UDTF or UDAF

"describe function" throws NPE when when called on UDTF or UDAF
---------------------------------------------------------------

                 Key: HIVE-996
                 URL: https://issues.apache.org/jira/browse/HIVE-996
             Project: Hadoop Hive
          Issue Type: Bug
          Components: Query Processor
            Reporter: Carl Steinbach
            Assignee: Carl Steinbach



{noformat}
hive> describe function explode;
describe function explode;
FAILED: Error in metadata: java.lang.NullPointerException
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
hive> describe function sum;
describe function sum;
FAILED: Error in metadata: java.lang.NullPointerException
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
hive> describe function conv;
describe function conv;
OK
conv(num, from_base, to_base) - convert num from from_base to to_base
Time taken: 0.042 seconds
{noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-996) "describe function" throws NPE when when called on UDTF or UDAF

Posted by "Namit Jain (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-996?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Namit Jain updated HIVE-996:
----------------------------

      Description: 
{noformat}
hive> describe function explode;
describe function explode;
FAILED: Error in metadata: java.lang.NullPointerException
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
hive> describe function sum;
describe function sum;
FAILED: Error in metadata: java.lang.NullPointerException
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
hive> describe function conv;
describe function conv;
OK
conv(num, from_base, to_base) - convert num from from_base to to_base
Time taken: 0.042 seconds
{noformat}

  was:

{noformat}
hive> describe function explode;
describe function explode;
FAILED: Error in metadata: java.lang.NullPointerException
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
hive> describe function sum;
describe function sum;
FAILED: Error in metadata: java.lang.NullPointerException
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
hive> describe function conv;
describe function conv;
OK
conv(num, from_base, to_base) - convert num from from_base to to_base
Time taken: 0.042 seconds
{noformat}

    Fix Version/s: 0.5.0

blocker for 0.5

> "describe function" throws NPE when when called on UDTF or UDAF
> ---------------------------------------------------------------
>
>                 Key: HIVE-996
>                 URL: https://issues.apache.org/jira/browse/HIVE-996
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Query Processor
>            Reporter: Carl Steinbach
>            Assignee: Carl Steinbach
>             Fix For: 0.5.0
>
>
> {noformat}
> hive> describe function explode;
> describe function explode;
> FAILED: Error in metadata: java.lang.NullPointerException
> FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
> hive> describe function sum;
> describe function sum;
> FAILED: Error in metadata: java.lang.NullPointerException
> FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
> hive> describe function conv;
> describe function conv;
> OK
> conv(num, from_base, to_base) - convert num from from_base to to_base
> Time taken: 0.042 seconds
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-996) "describe function" throws NPE when when called on UDTF or UDAF

Posted by "Carl Steinbach (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-996?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12797407#action_12797407 ] 

Carl Steinbach commented on HIVE-996:
-------------------------------------

* Updated udaf_max.q.out and udaf_min.q.out


> "describe function" throws NPE when when called on UDTF or UDAF
> ---------------------------------------------------------------
>
>                 Key: HIVE-996
>                 URL: https://issues.apache.org/jira/browse/HIVE-996
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Query Processor
>            Reporter: Carl Steinbach
>            Assignee: Carl Steinbach
>             Fix For: 0.5.0
>
>         Attachments: HIVE-996.2.patch, HIVE-996.3.patch, HIVE-996.patch
>
>
> {noformat}
> hive> describe function explode;
> describe function explode;
> FAILED: Error in metadata: java.lang.NullPointerException
> FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
> hive> describe function sum;
> describe function sum;
> FAILED: Error in metadata: java.lang.NullPointerException
> FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
> hive> describe function conv;
> describe function conv;
> OK
> conv(num, from_base, to_base) - convert num from from_base to to_base
> Time taken: 0.042 seconds
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-996) "describe function" throws NPE when when called on UDTF or UDAF

Posted by "Zheng Shao (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-996?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12797351#action_12797351 ] 

Zheng Shao commented on HIVE-996:
---------------------------------

Overall it looks good.

1. Can you add annotation for UDAFMax and UDAFMin?
2. We need to treat GenericUDAFBridge specially in FunctionInfo.getFunctionClass (you already did it for GenericUDFBridge).

I will leave the rest to Namit.


> "describe function" throws NPE when when called on UDTF or UDAF
> ---------------------------------------------------------------
>
>                 Key: HIVE-996
>                 URL: https://issues.apache.org/jira/browse/HIVE-996
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Query Processor
>            Reporter: Carl Steinbach
>            Assignee: Carl Steinbach
>             Fix For: 0.5.0
>
>         Attachments: HIVE-996.patch
>
>
> {noformat}
> hive> describe function explode;
> describe function explode;
> FAILED: Error in metadata: java.lang.NullPointerException
> FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
> hive> describe function sum;
> describe function sum;
> FAILED: Error in metadata: java.lang.NullPointerException
> FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
> hive> describe function conv;
> describe function conv;
> OK
> conv(num, from_base, to_base) - convert num from from_base to to_base
> Time taken: 0.042 seconds
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-996) "describe function" throws NPE when when called on UDTF or UDAF

Posted by "Namit Jain (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-996?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Namit Jain updated HIVE-996:
----------------------------

      Resolution: Fixed
    Hadoop Flags: [Reviewed]
          Status: Resolved  (was: Patch Available)

Committed. Thanks Carl

> "describe function" throws NPE when when called on UDTF or UDAF
> ---------------------------------------------------------------
>
>                 Key: HIVE-996
>                 URL: https://issues.apache.org/jira/browse/HIVE-996
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Query Processor
>            Reporter: Carl Steinbach
>            Assignee: Carl Steinbach
>             Fix For: 0.5.0
>
>         Attachments: HIVE-996.2.patch, HIVE-996.3.patch, HIVE-996.4.patch, HIVE-996.patch
>
>
> {noformat}
> hive> describe function explode;
> describe function explode;
> FAILED: Error in metadata: java.lang.NullPointerException
> FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
> hive> describe function sum;
> describe function sum;
> FAILED: Error in metadata: java.lang.NullPointerException
> FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
> hive> describe function conv;
> describe function conv;
> OK
> conv(num, from_base, to_base) - convert num from from_base to to_base
> Time taken: 0.042 seconds
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-996) "describe function" throws NPE when when called on UDTF or UDAF

Posted by "Namit Jain (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-996?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12797347#action_12797347 ] 

Namit Jain commented on HIVE-996:
---------------------------------

Great, I will take a look at it right away

> "describe function" throws NPE when when called on UDTF or UDAF
> ---------------------------------------------------------------
>
>                 Key: HIVE-996
>                 URL: https://issues.apache.org/jira/browse/HIVE-996
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Query Processor
>            Reporter: Carl Steinbach
>            Assignee: Carl Steinbach
>             Fix For: 0.5.0
>
>         Attachments: HIVE-996.patch
>
>
> {noformat}
> hive> describe function explode;
> describe function explode;
> FAILED: Error in metadata: java.lang.NullPointerException
> FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
> hive> describe function sum;
> describe function sum;
> FAILED: Error in metadata: java.lang.NullPointerException
> FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
> hive> describe function conv;
> describe function conv;
> OK
> conv(num, from_base, to_base) - convert num from from_base to to_base
> Time taken: 0.042 seconds
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-996) "describe function" throws NPE when when called on UDTF or UDAF

Posted by "Bill Jia (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-996?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bill Jia updated HIVE-996:
--------------------------

    Attachment: HIVE-894.1.patch

(1) Standard apache header added into the new files. 
(2) Codes shared. Added a new file/class SortedArrayUtils.java with two static functions - static void binaryInsert(ArrayList<Double> array, Double value, boolean ascending), and static ArrayList<Double> sortedMerge(ArrayList<Double> a1, ArrayList<Double> a2, boolean ascending, int N). 
(3) Skipped "describe max_n; and describe extended max_n" in the q files, since the tests failed. 

> "describe function" throws NPE when when called on UDTF or UDAF
> ---------------------------------------------------------------
>
>                 Key: HIVE-996
>                 URL: https://issues.apache.org/jira/browse/HIVE-996
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Query Processor
>            Reporter: Carl Steinbach
>            Assignee: Carl Steinbach
>             Fix For: 0.5.0
>
>         Attachments: HIVE-894.1.patch
>
>
> {noformat}
> hive> describe function explode;
> describe function explode;
> FAILED: Error in metadata: java.lang.NullPointerException
> FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
> hive> describe function sum;
> describe function sum;
> FAILED: Error in metadata: java.lang.NullPointerException
> FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
> hive> describe function conv;
> describe function conv;
> OK
> conv(num, from_base, to_base) - convert num from from_base to to_base
> Time taken: 0.042 seconds
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-996) "describe function" throws NPE when when called on UDTF or UDAF

Posted by "Carl Steinbach (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-996?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carl Steinbach updated HIVE-996:
--------------------------------

    Attachment: HIVE-996.patch

> "describe function" throws NPE when when called on UDTF or UDAF
> ---------------------------------------------------------------
>
>                 Key: HIVE-996
>                 URL: https://issues.apache.org/jira/browse/HIVE-996
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Query Processor
>            Reporter: Carl Steinbach
>            Assignee: Carl Steinbach
>             Fix For: 0.5.0
>
>         Attachments: HIVE-996.patch
>
>
> {noformat}
> hive> describe function explode;
> describe function explode;
> FAILED: Error in metadata: java.lang.NullPointerException
> FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
> hive> describe function sum;
> describe function sum;
> FAILED: Error in metadata: java.lang.NullPointerException
> FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
> hive> describe function conv;
> describe function conv;
> OK
> conv(num, from_base, to_base) - convert num from from_base to to_base
> Time taken: 0.042 seconds
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-996) "describe function" throws NPE when when called on UDTF or UDAF

Posted by "Carl Steinbach (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-996?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carl Steinbach updated HIVE-996:
--------------------------------

    Attachment: HIVE-996.4.patch

> "describe function" throws NPE when when called on UDTF or UDAF
> ---------------------------------------------------------------
>
>                 Key: HIVE-996
>                 URL: https://issues.apache.org/jira/browse/HIVE-996
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Query Processor
>            Reporter: Carl Steinbach
>            Assignee: Carl Steinbach
>             Fix For: 0.5.0
>
>         Attachments: HIVE-996.2.patch, HIVE-996.3.patch, HIVE-996.4.patch, HIVE-996.patch
>
>
> {noformat}
> hive> describe function explode;
> describe function explode;
> FAILED: Error in metadata: java.lang.NullPointerException
> FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
> hive> describe function sum;
> describe function sum;
> FAILED: Error in metadata: java.lang.NullPointerException
> FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
> hive> describe function conv;
> describe function conv;
> OK
> conv(num, from_base, to_base) - convert num from from_base to to_base
> Time taken: 0.042 seconds
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-996) "describe function" throws NPE when when called on UDTF or UDAF

Posted by "Bill Jia (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-996?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bill Jia updated HIVE-996:
--------------------------

    Attachment:     (was: HIVE-894.1.patch)

> "describe function" throws NPE when when called on UDTF or UDAF
> ---------------------------------------------------------------
>
>                 Key: HIVE-996
>                 URL: https://issues.apache.org/jira/browse/HIVE-996
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Query Processor
>            Reporter: Carl Steinbach
>            Assignee: Carl Steinbach
>             Fix For: 0.5.0
>
>
> {noformat}
> hive> describe function explode;
> describe function explode;
> FAILED: Error in metadata: java.lang.NullPointerException
> FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
> hive> describe function sum;
> describe function sum;
> FAILED: Error in metadata: java.lang.NullPointerException
> FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
> hive> describe function conv;
> describe function conv;
> OK
> conv(num, from_base, to_base) - convert num from from_base to to_base
> Time taken: 0.042 seconds
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-996) "describe function" throws NPE when when called on UDTF or UDAF

Posted by "Namit Jain (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-996?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12797396#action_12797396 ] 

Namit Jain commented on HIVE-996:
---------------------------------

Dont you need to fix the output files udaf_max.q.out/udaf_min.q.out ?

> "describe function" throws NPE when when called on UDTF or UDAF
> ---------------------------------------------------------------
>
>                 Key: HIVE-996
>                 URL: https://issues.apache.org/jira/browse/HIVE-996
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Query Processor
>            Reporter: Carl Steinbach
>            Assignee: Carl Steinbach
>             Fix For: 0.5.0
>
>         Attachments: HIVE-996.2.patch, HIVE-996.patch
>
>
> {noformat}
> hive> describe function explode;
> describe function explode;
> FAILED: Error in metadata: java.lang.NullPointerException
> FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
> hive> describe function sum;
> describe function sum;
> FAILED: Error in metadata: java.lang.NullPointerException
> FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
> hive> describe function conv;
> describe function conv;
> OK
> conv(num, from_base, to_base) - convert num from from_base to to_base
> Time taken: 0.042 seconds
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-996) "describe function" throws NPE when when called on UDTF or UDAF

Posted by "Carl Steinbach (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-996?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12797428#action_12797428 ] 

Carl Steinbach commented on HIVE-996:
-------------------------------------

@Namit: updated udaf_max.q.out and udaf_min.q.out:

Index: ql/src/test/results/clientpositive/udaf_max.q.out
===================================================================
--- ql/src/test/results/clientpositive/udaf_max.q.out	(revision 0)
+++ ql/src/test/results/clientpositive/udaf_max.q.out	(revision 0)
@@ -0,0 +1,20 @@
+PREHOOK: query: DESCRIBE FUNCTION max
+PREHOOK: type: DESCFUNCTION
+POSTHOOK: query: DESCRIBE FUNCTION max
+POSTHOOK: type: DESCFUNCTION
+max(expr) - Returns the maximum value of expr
+PREHOOK: query: DESCRIBE FUNCTION EXTENDED max
+PREHOOK: type: DESCFUNCTION
+POSTHOOK: query: DESCRIBE FUNCTION EXTENDED max
+POSTHOOK: type: DESCFUNCTION
+max(expr) - Returns the maximum value of expr
+PREHOOK: query: DESCRIBE FUNCTION max
+PREHOOK: type: DESCFUNCTION
+POSTHOOK: query: DESCRIBE FUNCTION max
+POSTHOOK: type: DESCFUNCTION
+max(expr) - Returns the maximum value of expr
+PREHOOK: query: DESCRIBE FUNCTION EXTENDED max
+PREHOOK: type: DESCFUNCTION
+POSTHOOK: query: DESCRIBE FUNCTION EXTENDED max
+POSTHOOK: type: DESCFUNCTION
+max(expr) - Returns the maximum value of expr

Index: ql/src/test/results/clientpositive/udaf_min.q.out
===================================================================
--- ql/src/test/results/clientpositive/udaf_min.q.out	(revision 0)
+++ ql/src/test/results/clientpositive/udaf_min.q.out	(revision 0)
@@ -0,0 +1,20 @@
+PREHOOK: query: DESCRIBE FUNCTION min
+PREHOOK: type: DESCFUNCTION
+POSTHOOK: query: DESCRIBE FUNCTION min
+POSTHOOK: type: DESCFUNCTION
+min(expr) - Returns the minimum value of expr
+PREHOOK: query: DESCRIBE FUNCTION EXTENDED min
+PREHOOK: type: DESCFUNCTION
+POSTHOOK: query: DESCRIBE FUNCTION EXTENDED min
+POSTHOOK: type: DESCFUNCTION
+min(expr) - Returns the minimum value of expr
+PREHOOK: query: DESCRIBE FUNCTION min
+PREHOOK: type: DESCFUNCTION
+POSTHOOK: query: DESCRIBE FUNCTION min
+POSTHOOK: type: DESCFUNCTION
+min(expr) - Returns the minimum value of expr
+PREHOOK: query: DESCRIBE FUNCTION EXTENDED min
+PREHOOK: type: DESCFUNCTION
+POSTHOOK: query: DESCRIBE FUNCTION EXTENDED min
+POSTHOOK: type: DESCFUNCTION
+min(expr) - Returns the minimum value of expr

> "describe function" throws NPE when when called on UDTF or UDAF
> ---------------------------------------------------------------
>
>                 Key: HIVE-996
>                 URL: https://issues.apache.org/jira/browse/HIVE-996
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Query Processor
>            Reporter: Carl Steinbach
>            Assignee: Carl Steinbach
>             Fix For: 0.5.0
>
>         Attachments: HIVE-996.2.patch, HIVE-996.3.patch, HIVE-996.4.patch, HIVE-996.patch
>
>
> {noformat}
> hive> describe function explode;
> describe function explode;
> FAILED: Error in metadata: java.lang.NullPointerException
> FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
> hive> describe function sum;
> describe function sum;
> FAILED: Error in metadata: java.lang.NullPointerException
> FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
> hive> describe function conv;
> describe function conv;
> OK
> conv(num, from_base, to_base) - convert num from from_base to to_base
> Time taken: 0.042 seconds
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-996) "describe function" throws NPE when when called on UDTF or UDAF

Posted by "Namit Jain (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-996?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12797359#action_12797359 ] 

Namit Jain commented on HIVE-996:
---------------------------------

@Carl, can you address Zheng's comments ?

> "describe function" throws NPE when when called on UDTF or UDAF
> ---------------------------------------------------------------
>
>                 Key: HIVE-996
>                 URL: https://issues.apache.org/jira/browse/HIVE-996
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Query Processor
>            Reporter: Carl Steinbach
>            Assignee: Carl Steinbach
>             Fix For: 0.5.0
>
>         Attachments: HIVE-996.patch
>
>
> {noformat}
> hive> describe function explode;
> describe function explode;
> FAILED: Error in metadata: java.lang.NullPointerException
> FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
> hive> describe function sum;
> describe function sum;
> FAILED: Error in metadata: java.lang.NullPointerException
> FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
> hive> describe function conv;
> describe function conv;
> OK
> conv(num, from_base, to_base) - convert num from from_base to to_base
> Time taken: 0.042 seconds
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-996) "describe function" throws NPE when when called on UDTF or UDAF

Posted by "Carl Steinbach (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-996?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12797402#action_12797402 ] 

Carl Steinbach commented on HIVE-996:
-------------------------------------

@namit: sorry, regenerating the patch...

> "describe function" throws NPE when when called on UDTF or UDAF
> ---------------------------------------------------------------
>
>                 Key: HIVE-996
>                 URL: https://issues.apache.org/jira/browse/HIVE-996
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Query Processor
>            Reporter: Carl Steinbach
>            Assignee: Carl Steinbach
>             Fix For: 0.5.0
>
>         Attachments: HIVE-996.2.patch, HIVE-996.patch
>
>
> {noformat}
> hive> describe function explode;
> describe function explode;
> FAILED: Error in metadata: java.lang.NullPointerException
> FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
> hive> describe function sum;
> describe function sum;
> FAILED: Error in metadata: java.lang.NullPointerException
> FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
> hive> describe function conv;
> describe function conv;
> OK
> conv(num, from_base, to_base) - convert num from from_base to to_base
> Time taken: 0.042 seconds
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-996) "describe function" throws NPE when when called on UDTF or UDAF

Posted by "Carl Steinbach (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-996?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12797361#action_12797361 ] 

Carl Steinbach commented on HIVE-996:
-------------------------------------

@Namit: working on it now.

> "describe function" throws NPE when when called on UDTF or UDAF
> ---------------------------------------------------------------
>
>                 Key: HIVE-996
>                 URL: https://issues.apache.org/jira/browse/HIVE-996
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Query Processor
>            Reporter: Carl Steinbach
>            Assignee: Carl Steinbach
>             Fix For: 0.5.0
>
>         Attachments: HIVE-996.patch
>
>
> {noformat}
> hive> describe function explode;
> describe function explode;
> FAILED: Error in metadata: java.lang.NullPointerException
> FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
> hive> describe function sum;
> describe function sum;
> FAILED: Error in metadata: java.lang.NullPointerException
> FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
> hive> describe function conv;
> describe function conv;
> OK
> conv(num, from_base, to_base) - convert num from from_base to to_base
> Time taken: 0.042 seconds
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-996) "describe function" throws NPE when when called on UDTF or UDAF

Posted by "Carl Steinbach (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-996?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12797371#action_12797371 ] 

Carl Steinbach commented on HIVE-996:
-------------------------------------

* Added annotations for UDAFMax and UDAFMin.
* Correctly handle the GenericUDAFBridge case in FunctionInfo.getFunctionClass().


> "describe function" throws NPE when when called on UDTF or UDAF
> ---------------------------------------------------------------
>
>                 Key: HIVE-996
>                 URL: https://issues.apache.org/jira/browse/HIVE-996
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Query Processor
>            Reporter: Carl Steinbach
>            Assignee: Carl Steinbach
>             Fix For: 0.5.0
>
>         Attachments: HIVE-996.2.patch, HIVE-996.patch
>
>
> {noformat}
> hive> describe function explode;
> describe function explode;
> FAILED: Error in metadata: java.lang.NullPointerException
> FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
> hive> describe function sum;
> describe function sum;
> FAILED: Error in metadata: java.lang.NullPointerException
> FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
> hive> describe function conv;
> describe function conv;
> OK
> conv(num, from_base, to_base) - convert num from from_base to to_base
> Time taken: 0.042 seconds
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-996) "describe function" throws NPE when when called on UDTF or UDAF

Posted by "Carl Steinbach (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-996?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carl Steinbach updated HIVE-996:
--------------------------------

    Attachment: HIVE-996.2.patch

> "describe function" throws NPE when when called on UDTF or UDAF
> ---------------------------------------------------------------
>
>                 Key: HIVE-996
>                 URL: https://issues.apache.org/jira/browse/HIVE-996
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Query Processor
>            Reporter: Carl Steinbach
>            Assignee: Carl Steinbach
>             Fix For: 0.5.0
>
>         Attachments: HIVE-996.2.patch, HIVE-996.patch
>
>
> {noformat}
> hive> describe function explode;
> describe function explode;
> FAILED: Error in metadata: java.lang.NullPointerException
> FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
> hive> describe function sum;
> describe function sum;
> FAILED: Error in metadata: java.lang.NullPointerException
> FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
> hive> describe function conv;
> describe function conv;
> OK
> conv(num, from_base, to_base) - convert num from from_base to to_base
> Time taken: 0.042 seconds
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-996) "describe function" throws NPE when when called on UDTF or UDAF

Posted by "Carl Steinbach (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-996?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carl Steinbach updated HIVE-996:
--------------------------------

    Attachment: HIVE-996.3.patch

> "describe function" throws NPE when when called on UDTF or UDAF
> ---------------------------------------------------------------
>
>                 Key: HIVE-996
>                 URL: https://issues.apache.org/jira/browse/HIVE-996
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Query Processor
>            Reporter: Carl Steinbach
>            Assignee: Carl Steinbach
>             Fix For: 0.5.0
>
>         Attachments: HIVE-996.2.patch, HIVE-996.3.patch, HIVE-996.patch
>
>
> {noformat}
> hive> describe function explode;
> describe function explode;
> FAILED: Error in metadata: java.lang.NullPointerException
> FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
> hive> describe function sum;
> describe function sum;
> FAILED: Error in metadata: java.lang.NullPointerException
> FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
> hive> describe function conv;
> describe function conv;
> OK
> conv(num, from_base, to_base) - convert num from from_base to to_base
> Time taken: 0.042 seconds
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-996) "describe function" throws NPE when when called on UDTF or UDAF

Posted by "Carl Steinbach (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-996?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carl Steinbach updated HIVE-996:
--------------------------------

    Status: Patch Available  (was: Open)

* Fix 'describe function' and 'describe function extended' for UDTFs and UDAFs.
* Differentiate between the case where a function does not exist and documentation for the function does not exist.


> "describe function" throws NPE when when called on UDTF or UDAF
> ---------------------------------------------------------------
>
>                 Key: HIVE-996
>                 URL: https://issues.apache.org/jira/browse/HIVE-996
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Query Processor
>            Reporter: Carl Steinbach
>            Assignee: Carl Steinbach
>             Fix For: 0.5.0
>
>         Attachments: HIVE-996.patch
>
>
> {noformat}
> hive> describe function explode;
> describe function explode;
> FAILED: Error in metadata: java.lang.NullPointerException
> FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
> hive> describe function sum;
> describe function sum;
> FAILED: Error in metadata: java.lang.NullPointerException
> FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
> hive> describe function conv;
> describe function conv;
> OK
> conv(num, from_base, to_base) - convert num from from_base to to_base
> Time taken: 0.042 seconds
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-996) "describe function" throws NPE when when called on UDTF or UDAF

Posted by "Namit Jain (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-996?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12797414#action_12797414 ] 

Namit Jain commented on HIVE-996:
---------------------------------

Index: ql/src/test/results/clientpositive/udaf_max.q.out
===================================================================
--- ql/src/test/results/clientpositive/udaf_max.q.out   (revision 0)
+++ ql/src/test/results/clientpositive/udaf_max.q.out   (revision 0)
@@ -0,0 +1,20 @@
+PREHOOK: query: DESCRIBE FUNCTION max
+PREHOOK: type: DESCFUNCTION
+POSTHOOK: query: DESCRIBE FUNCTION max
+POSTHOOK: type: DESCFUNCTION
+There is no documentation for function max
+PREHOOK: query: DESCRIBE FUNCTION EXTENDED max
+PREHOOK: type: DESCFUNCTION
+POSTHOOK: query: DESCRIBE FUNCTION EXTENDED max
+POSTHOOK: type: DESCFUNCTION
+There is no documentation for function max
+PREHOOK: query: DESCRIBE FUNCTION max
+PREHOOK: type: DESCFUNCTION
+POSTHOOK: query: DESCRIBE FUNCTION max
+POSTHOOK: type: DESCFUNCTION
+There is no documentation for function max
+PREHOOK: query: DESCRIBE FUNCTION EXTENDED max
+PREHOOK: type: DESCFUNCTION
+POSTHOOK: query: DESCRIBE FUNCTION EXTENDED max
+POSTHOOK: type: DESCFUNCTION
+There is no documentation for function max



It is still the old one

> "describe function" throws NPE when when called on UDTF or UDAF
> ---------------------------------------------------------------
>
>                 Key: HIVE-996
>                 URL: https://issues.apache.org/jira/browse/HIVE-996
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Query Processor
>            Reporter: Carl Steinbach
>            Assignee: Carl Steinbach
>             Fix For: 0.5.0
>
>         Attachments: HIVE-996.2.patch, HIVE-996.3.patch, HIVE-996.patch
>
>
> {noformat}
> hive> describe function explode;
> describe function explode;
> FAILED: Error in metadata: java.lang.NullPointerException
> FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
> hive> describe function sum;
> describe function sum;
> FAILED: Error in metadata: java.lang.NullPointerException
> FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
> hive> describe function conv;
> describe function conv;
> OK
> conv(num, from_base, to_base) - convert num from from_base to to_base
> Time taken: 0.042 seconds
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-996) "describe function" throws NPE when when called on UDTF or UDAF

Posted by "Namit Jain (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-996?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12797355#action_12797355 ] 

Namit Jain commented on HIVE-996:
---------------------------------

+1

looks good - will commit if the tests pass

> "describe function" throws NPE when when called on UDTF or UDAF
> ---------------------------------------------------------------
>
>                 Key: HIVE-996
>                 URL: https://issues.apache.org/jira/browse/HIVE-996
>             Project: Hadoop Hive
>          Issue Type: Bug
>          Components: Query Processor
>            Reporter: Carl Steinbach
>            Assignee: Carl Steinbach
>             Fix For: 0.5.0
>
>         Attachments: HIVE-996.patch
>
>
> {noformat}
> hive> describe function explode;
> describe function explode;
> FAILED: Error in metadata: java.lang.NullPointerException
> FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
> hive> describe function sum;
> describe function sum;
> FAILED: Error in metadata: java.lang.NullPointerException
> FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
> hive> describe function conv;
> describe function conv;
> OK
> conv(num, from_base, to_base) - convert num from from_base to to_base
> Time taken: 0.042 seconds
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.