[ https://issues.apache.org/jira/browse/HIVE-6645?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13941251#comment-13941251 ]
Hive QA commented on HIVE-6645: ------------------------------- {color:red}Overall{color}: -1 at least one tests failed Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12635126/HIVE-6645.2.patch {color:red}ERROR:{color} -1 due to 1 failed/errored test(s), 5416 tests executed *Failed tests:* {noformat} org.apache.hadoop.hive.cli.TestMinimrCliDriver.testCliDriver_bucket_num_reducers {noformat} Test results: http://bigtop01.cloudera.org:8080/job/PreCommit-HIVE-Build/1872/testReport Console output: http://bigtop01.cloudera.org:8080/job/PreCommit-HIVE-Build/1872/console Messages: {noformat} Executing org.apache.hive.ptest.execution.PrepPhase Executing org.apache.hive.ptest.execution.ExecutionPhase Executing org.apache.hive.ptest.execution.ReportingPhase Tests exited with: TestsFailedException: 1 tests failed {noformat} This message is automatically generated. ATTACHMENT ID: 12635126 > to_date()/to_unix_timestamp() fail with NPE if input is null > ------------------------------------------------------------ > > Key: HIVE-6645 > URL: https://issues.apache.org/jira/browse/HIVE-6645 > Project: Hive > Issue Type: Bug > Components: UDF > Reporter: Jason Dere > Assignee: Jason Dere > Attachments: HIVE-6645.1.patch, HIVE-6645.2.patch, HIVE-6645.2.patch > > > {noformat} > hive> describe tab2; > Query ID = jdere_20140312185454_e3ed213e-8b3a-4963-b815-19965edad587 > OK > c1 timestamp None > Time taken: 0.155 seconds, Fetched: 1 row(s) > hive> select * from tab2; > Query ID = jdere_20140312185454_8a009070-df79-45de-8642-e85668a378d7 > OK > NULL > NULL > NULL > NULL > NULL > Time taken: 0.067 seconds, Fetched: 5 row(s) > hive> select to_unix_timestamp(c1) from tab2; > hive> select to_date(c1) from tab2; > {noformat} > Fails with errors like: > {noformat} > java.lang.Exception: java.lang.RuntimeException: > org.apache.hadoop.hive.ql.metadata.HiveException: Hive Runtime Error while > processing row {"c1":null} > at > org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:401) > Caused by: java.lang.RuntimeException: > org.apache.hadoop.hive.ql.metadata.HiveException: Hive Runtime Error while > processing row {"c1":null} > at > org.apache.hadoop.hive.ql.exec.mr.ExecMapper.map(ExecMapper.java:195) > at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:54) > at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:429) > at org.apache.hadoop.mapred.MapTask.run(MapTask.java:341) > at > org.apache.hadoop.mapred.LocalJobRunner$Job$MapTaskRunnable.run(LocalJobRunner.java:233) > at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439) > at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) > at java.util.concurrent.FutureTask.run(FutureTask.java:138) > at > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) > at java.lang.Thread.run(Thread.java:680) > Caused by: org.apache.hadoop.hive.ql.metadata.HiveException: Hive Runtime > Error while processing row {"c1":null} > at > org.apache.hadoop.hive.ql.exec.MapOperator.process(MapOperator.java:534) > at > org.apache.hadoop.hive.ql.exec.mr.ExecMapper.map(ExecMapper.java:177) > ... 10 more > Caused by: org.apache.hadoop.hive.ql.metadata.HiveException: Error evaluating > to_date(c1) > at > org.apache.hadoop.hive.ql.exec.SelectOperator.processOp(SelectOperator.java:84) > at org.apache.hadoop.hive.ql.exec.Operator.forward(Operator.java:790) > at > org.apache.hadoop.hive.ql.exec.TableScanOperator.processOp(TableScanOperator.java:92) > at org.apache.hadoop.hive.ql.exec.Operator.forward(Operator.java:790) > at > org.apache.hadoop.hive.ql.exec.MapOperator.process(MapOperator.java:524) > ... 11 more > Caused by: java.lang.NullPointerException > at > org.apache.hadoop.hive.ql.udf.generic.GenericUDFDate.evaluate(GenericUDFDate.java:106) > at > org.apache.hadoop.hive.ql.exec.ExprNodeGenericFuncEvaluator._evaluate(ExprNodeGenericFuncEvaluator.java:166) > at > org.apache.hadoop.hive.ql.exec.ExprNodeEvaluator.evaluate(ExprNodeEvaluator.java:77) > at > org.apache.hadoop.hive.ql.exec.ExprNodeEvaluator.evaluate(ExprNodeEvaluator.java:65) > at > org.apache.hadoop.hive.ql.exec.SelectOperator.processOp(SelectOperator.java:79) > ... 15 more > {noformat} -- This message was sent by Atlassian JIRA (v6.2#6252)