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

Hive QA commented on HIVE-17029:
--------------------------------



Here are the results of testing the latest attachment:
https://issues.apache.org/jira/secure/attachment/12885781/HIVE-17029.1.patch

{color:green}SUCCESS:{color} +1 due to 1 test(s) being added or modified.

{color:red}ERROR:{color} -1 due to 6 failed/errored test(s), 11029 tests 
executed
*Failed tests:*
{noformat}
TestAccumuloCliDriver - did not produce a TEST-*.xml file (likely timed out) 
(batchId=230)
TestDummy - did not produce a TEST-*.xml file (likely timed out) (batchId=230)
TestTxnCommandsBase - did not produce a TEST-*.xml file (likely timed out) 
(batchId=280)
org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver[insert_values_orig_table_use_metadata]
 (batchId=61)
org.apache.hadoop.hive.cli.TestPerfCliDriver.testCliDriver[query14] 
(batchId=234)
org.apache.hadoop.hive.cli.TestPerfCliDriver.testCliDriver[query23] 
(batchId=234)
{noformat}

Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/6714/testReport
Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/6714/console
Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-6714/

Messages:
{noformat}
Executing org.apache.hive.ptest.execution.TestCheckPhase
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: 6 tests failed
{noformat}

This message is automatically generated.

ATTACHMENT ID: 12885781 - PreCommit-HIVE-Build

> HPL/SQL: Comparison if not null-safe
> ------------------------------------
>
>                 Key: HIVE-17029
>                 URL: https://issues.apache.org/jira/browse/HIVE-17029
>             Project: Hive
>          Issue Type: Bug
>          Components: hpl/sql
>            Reporter: Carter Shanklin
>            Assignee: Dmitry Tolpeko
>         Attachments: HIVE-17029.1.patch
>
>
> This bug is part of a series of issues and surprising behavior I encountered 
> writing a reporting script that would aggregate values and give rows 
> different classifications based on an the aggregate. Addressing some or all 
> of these issues would make HPL/SQL more accessible to newcomers.
> If you run a statement like:
> {code}
>   if val1i > val2i then
>     print('val1 greater');
>   end if;
> {code}
> And either val1 or val2 is null, you will get an exception similar to the 
> following:
> {code}
> Unhandled exception in HPL/SQL
> java.lang.NullPointerException
>         at org.apache.hive.hplsql.Var.compareTo(Var.java:453)
>         at 
> org.apache.hive.hplsql.Expression.operatorCompare(Expression.java:454)
>         at 
> org.apache.hive.hplsql.Expression.execBoolBinary(Expression.java:178)
>         at org.apache.hive.hplsql.Exec.visitBool_expr_binary(Exec.java:1589)
>         at org.apache.hive.hplsql.Exec.visitBool_expr_binary(Exec.java:52)
>         at 
> org.apache.hive.hplsql.HplsqlParser$Bool_expr_binaryContext.accept(HplsqlParser.java:19397)
>         at 
> org.antlr.v4.runtime.tree.AbstractParseTreeVisitor.visitChildren(AbstractParseTreeVisitor.java:70)
>         at 
> org.apache.hive.hplsql.HplsqlBaseVisitor.visitBool_expr_atom(HplsqlBaseVisitor.java:1316)
>         at 
> org.apache.hive.hplsql.HplsqlParser$Bool_expr_atomContext.accept(HplsqlParser.java:18985)
>         at 
> org.antlr.v4.runtime.tree.AbstractParseTreeVisitor.visit(AbstractParseTreeVisitor.java:42)
>         at org.apache.hive.hplsql.Expression.visit(Expression.java:660)
>         at org.apache.hive.hplsql.Expression.eval(Expression.java:624)
>         at org.apache.hive.hplsql.Expression.execBool(Expression.java:121)
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to