[ 
https://issues.apache.org/jira/browse/HIVE-2182?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John Sichi updated HIVE-2182:
-----------------------------

    Status: Open  (was: Patch Available)

I got merge conflicts trying to apply the latest patch.


At revision 1170007.
(Stripping trailing CRs from patch.)
patching file 
ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFBridge.java
(Stripping trailing CRs from patch.)
patching file ql/src/test/queries/clientnegative/udfnull.q
(Stripping trailing CRs from patch.)
patching file ql/src/test/results/clientnegative/udfnull.q.out
(Stripping trailing CRs from patch.)
patching file ql/src/test/results/compiler/plan/cast1.q.xml
Hunk #2 FAILED at 62.
Hunk #3 FAILED at 124.
Hunk #4 FAILED at 160.
Hunk #5 succeeded at 371 (offset 4 lines).
Hunk #7 succeeded at 455 (offset 4 lines).
Hunk #9 succeeded at 526 (offset 4 lines).
Hunk #11 succeeded at 622 (offset 4 lines).
Hunk #13 succeeded at 1066 (offset 4 lines).
Hunk #15 FAILED at 1131.
Hunk #16 FAILED at 1193.
5 out of 16 hunks FAILED -- saving rejects to file 
ql/src/test/results/compiler/plan/cast1.q.xml.rej
(Stripping trailing CRs from patch.)
patching file ql/src/test/results/compiler/plan/groupby1.q.xml
(Stripping trailing CRs from patch.)
patching file ql/src/test/results/compiler/plan/groupby2.q.xml
Hunk #13 succeeded at 1408 (offset 4 lines).
(Stripping trailing CRs from patch.)
patching file ql/src/test/results/compiler/plan/groupby3.q.xml
(Stripping trailing CRs from patch.)
patching file ql/src/test/results/compiler/plan/groupby4.q.xml
(Stripping trailing CRs from patch.)
patching file ql/src/test/results/compiler/plan/groupby5.q.xml
(Stripping trailing CRs from patch.)
patching file ql/src/test/results/compiler/plan/groupby6.q.xml
(Stripping trailing CRs from patch.)
patching file ql/src/test/results/compiler/plan/input20.q.xml
Hunk #1 FAILED at 1.
Hunk #2 FAILED at 62.
Hunk #3 FAILED at 124.
Hunk #6 FAILED at 850.
Hunk #7 FAILED at 862.
Hunk #8 FAILED at 919.
Hunk #9 FAILED at 981.
Hunk #10 FAILED at 1015.
8 out of 10 hunks FAILED -- saving rejects to file 
ql/src/test/results/compiler/plan/input20.q.xml.rej
(Stripping trailing CRs from patch.)
patching file ql/src/test/results/compiler/plan/input8.q.xml
Hunk #1 FAILED at 1.
Hunk #2 FAILED at 62.
Hunk #3 FAILED at 124.
Hunk #4 FAILED at 156.
Hunk #5 succeeded at 314 (offset 4 lines).
Hunk #7 succeeded at 403 (offset 4 lines).
Hunk #8 FAILED at 641.
Hunk #9 FAILED at 653.
Hunk #10 FAILED at 710.
Hunk #11 FAILED at 772.
8 out of 11 hunks FAILED -- saving rejects to file 
ql/src/test/results/compiler/plan/input8.q.xml.rej
(Stripping trailing CRs from patch.)
patching file ql/src/test/results/compiler/plan/join2.q.xml
(Stripping trailing CRs from patch.)
patching file ql/src/test/results/compiler/plan/sample1.q.xml
Hunk #5 succeeded at 555 (offset 4 lines).
Hunk #7 succeeded at 639 (offset 4 lines).
Hunk #9 succeeded at 885 (offset 4 lines).
Hunk #11 succeeded at 1021 (offset 4 lines).
(Stripping trailing CRs from patch.)
patching file ql/src/test/results/compiler/plan/sample2.q.xml
(Stripping trailing CRs from patch.)
patching file ql/src/test/results/compiler/plan/sample3.q.xml
(Stripping trailing CRs from patch.)
patching file ql/src/test/results/compiler/plan/sample4.q.xml
(Stripping trailing CRs from patch.)
patching file ql/src/test/results/compiler/plan/sample5.q.xml
(Stripping trailing CRs from patch.)
patching file ql/src/test/results/compiler/plan/sample6.q.xml
(Stripping trailing CRs from patch.)
patching file ql/src/test/results/compiler/plan/sample7.q.xml
(Stripping trailing CRs from patch.)
patching file ql/src/test/results/compiler/plan/udf1.q.xml
Hunk #5 succeeded at 510 (offset 4 lines).
Hunk #7 succeeded at 606 (offset 4 lines).
Hunk #9 succeeded at 702 (offset 4 lines).
Hunk #11 succeeded at 798 (offset 4 lines).
Hunk #13 succeeded at 894 (offset 4 lines).
Hunk #15 succeeded at 997 (offset 4 lines).
Hunk #17 succeeded at 1093 (offset 4 lines).
Hunk #19 succeeded at 1203 (offset 4 lines).
Hunk #21 succeeded at 1306 (offset 4 lines).
Hunk #23 succeeded at 1904 (offset 4 lines).
Hunk #25 succeeded at 2023 (offset 4 lines).
(Stripping trailing CRs from patch.)
patching file ql/src/test/results/compiler/plan/udf4.q.xml
Hunk #5 succeeded at 523 (offset 4 lines).
Hunk #7 succeeded at 585 (offset 4 lines).
Hunk #9 succeeded at 662 (offset 4 lines).
Hunk #11 succeeded at 717 (offset 4 lines).
Hunk #13 succeeded at 794 (offset 4 lines).
Hunk #15 succeeded at 849 (offset 4 lines).
Hunk #17 succeeded at 919 (offset 4 lines).
Hunk #19 succeeded at 996 (offset 4 lines).
Hunk #21 succeeded at 1051 (offset 4 lines).
Hunk #23 succeeded at 1126 (offset 4 lines).
Hunk #25 succeeded at 1212 (offset 4 lines).
Hunk #27 succeeded at 1296 (offset 4 lines).
Hunk #29 succeeded at 1846 (offset 4 lines).
Hunk #31 succeeded at 1965 (offset 4 lines).
(Stripping trailing CRs from patch.)
patching file ql/src/test/results/compiler/plan/udf6.q.xml
Hunk #5 succeeded at 357 (offset 4 lines).
Hunk #7 succeeded at 584 (offset 4 lines).
Hunk #9 succeeded at 703 (offset 4 lines).


> Avoid null pointer exception when executing UDF
> -----------------------------------------------
>
>                 Key: HIVE-2182
>                 URL: https://issues.apache.org/jira/browse/HIVE-2182
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Processor
>    Affects Versions: 0.5.0, 0.8.0
>         Environment: Hadoop 0.20.1, Hive0.8.0 and SUSE Linux Enterprise 
> Server 10 SP2 (i586) - Kernel 2.6.16.60-0.21-smp (5)
>            Reporter: Chinna Rao Lalam
>            Assignee: Chinna Rao Lalam
>         Attachments: HIVE-2182.1.patch, HIVE-2182.2.patch, HIVE-2182.3.patch, 
> HIVE-2182.4.patch, HIVE-2182.patch
>
>
> For using UDF's executed following steps
> {noformat}
> add jar /home/udf/udf.jar;
> create temporary function grade as 'udf.Grade';
> select m.userid,m.name,grade(m.maths,m.physics,m.chemistry) from marks m;
> {noformat}
> But from the above steps if we miss the first step (add jar) and execute 
> remaining steps
> {noformat}
> create temporary function grade as 'udf.Grade';
> select m.userid,m.name,grade(m.maths,m.physics,m.chemistry) from marks m;
> {noformat}
> In tasktracker it is throwing this exception
> {noformat}
> Caused by: java.lang.RuntimeException: Map operator initialization failed
>                at 
> org.apache.hadoop.hive.ql.exec.ExecMapper.configure(ExecMapper.java:121)
>                ... 18 more
> Caused by: java.lang.RuntimeException: java.lang.NullPointerException
>                at 
> org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:115)
>                at 
> org.apache.hadoop.hive.ql.udf.generic.GenericUDFBridge.initialize(GenericUDFBridge.java:126)
>                at 
> org.apache.hadoop.hive.ql.exec.ExprNodeGenericFuncEvaluator.initialize(ExprNodeGenericFuncEvaluator.java:133)
>                at 
> org.apache.hadoop.hive.ql.exec.Operator.initEvaluators(Operator.java:878)
>                at 
> org.apache.hadoop.hive.ql.exec.Operator.initEvaluatorsAndReturnStruct(Operator.java:904)
>                at 
> org.apache.hadoop.hive.ql.exec.SelectOperator.initializeOp(SelectOperator.java:60)
>                at 
> org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:357)
>                at 
> org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:433)
>                at 
> org.apache.hadoop.hive.ql.exec.Operator.initializeChildren(Operator.java:389)
>                at 
> org.apache.hadoop.hive.ql.exec.TableScanOperator.initializeOp(TableScanOperator.java:133)
>                at 
> org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:357)
>                at 
> org.apache.hadoop.hive.ql.exec.MapOperator.initializeOp(MapOperator.java:444)
>                at 
> org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:357)
>                at 
> org.apache.hadoop.hive.ql.exec.ExecMapper.configure(ExecMapper.java:98)
>                ... 18 more
> Caused by: java.lang.NullPointerException
>                at 
> java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:768)
>                at 
> org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:107)
>                ... 31 more
> {noformat}
> Instead of null pointer exception it should throw meaning full exception

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to