hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hive QA (JIRA)" <>
Subject [jira] [Commented] (HIVE-16505) Support "unknown" boolean truth value
Date Wed, 06 Jun 2018 21:21:00 GMT


Hive QA commented on HIVE-16505:

Here are the results of testing the latest attachment:

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

{color:red}ERROR:{color} -1 due to 1 failed/errored test(s), 14448 tests executed
*Failed tests:*
TestMiniLlapLocalCliDriver - did not produce a TEST-*.xml file (likely timed out) (batchId=167)

Test results:
Console output:
Test logs:

Executing org.apache.hive.ptest.execution.TestCheckPhase
Executing org.apache.hive.ptest.execution.PrepPhase
Executing org.apache.hive.ptest.execution.YetusPhase
Executing org.apache.hive.ptest.execution.ExecutionPhase
Executing org.apache.hive.ptest.execution.ReportingPhase
Tests exited with: TestsFailedException: 1 tests failed

This message is automatically generated.

ATTACHMENT ID: 12926468 - PreCommit-HIVE-Build

> Support "unknown" boolean truth value
> -------------------------------------
>                 Key: HIVE-16505
>                 URL:
>             Project: Hive
>          Issue Type: Sub-task
>          Components: SQL
>            Reporter: Zoltan Haindrich
>            Assignee: Laszlo Bodor
>            Priority: Major
>         Attachments: HIVE-16505.01.patch, HIVE-16505.02.patch, HIVE-16505.03.patch
> according to the standard, boolean truth value might be: {{TRUE|FALSE|UNKNOWN}}.
> similar queries to the following should be supported:
> {code:java}
> select 1 where null is unknown;
> select 1 where (select cast(null as boolean) ) is unknown;
> {code}
> "unknown" behaves similarily to null. {{(null=null) is null}}
> "All boolean values and SQL truth values are comparable and all are assignable to a site
of type boolean. The value True is greater than the value False, and any comparison involving
the null value or an Unknown truth value will return an Unknown result. The values True and
False may be assigned to any site having a boolean data type; assignment of Unknown, or the
null value, is subject to the nullability characteristic of the target."
> *Truth table for the AND boolean operator*
> AND True False Unknown
> True True False Unknown
> False False False False
> Unknown Unknown False Unknown
> *Truth table for the OR boolean operator*
> OR True False Unknown
> True True True True
> False True False Unknown
> Unknown True Unknown Unknown
> *Truth table for the IS boolean operator*
> True True False False
> False False True False
> Unknown False False True

This message was sent by Atlassian JIRA

View raw message