hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hive QA (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-15517) NOT (x <=> y) returns NULL if x or y is NULL
Date Wed, 01 Feb 2017 03:02:51 GMT

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

Hive QA commented on HIVE-15517:
--------------------------------



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

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

{color:red}ERROR:{color} -1 due to 4 failed/errored test(s), 10993 tests executed
*Failed tests:*
{noformat}
TestCliDriver - did not produce a TEST-*.xml file (likely timed out) (batchId=13)
	[avro_joins.q,serde_reported_schema.q,annotate_stats_join_pkfk.q,udf_unix_timestamp.q,union22.q,describe_comment_nonascii.q,orc_analyze.q,schema_evol_orc_acidvec_part_update.q,partition_date.q,stats15.q,tez_join_result_complex.q,input36.q,alter_numbuckets_partitioned_table2_h23.q,transform_ppr1.q,spark_vectorized_dynamic_partition_pruning.q,unionDistinct_2.q,udaf_histogram_numeric.q,authorization_index.q,auto_join26.q,list_bucket_dml_3.q,alter_table_partition_drop.q,cbo_stats.q,vector_count.q,decimal_trailing.q,parquet_types_vectorization.q,smb_mapjoin_22.q,vector_decimal_6.q,autoColumnStats_8.q,input5.q,sample1.q]
TestDerbyConnector - did not produce a TEST-*.xml file (likely timed out) (batchId=235)
org.apache.hadoop.hive.cli.TestEncryptedHDFSCliDriver.testCliDriver[encryption_join_with_different_encryption_keys]
(batchId=159)
org.apache.hadoop.hive.cli.TestPerfCliDriver.testCliDriver[query14] (batchId=223)
{noformat}

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

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: 4 tests failed
{noformat}

This message is automatically generated.

ATTACHMENT ID: 12850345 - PreCommit-HIVE-Build

> NOT (x <=> y) returns NULL if x or y is NULL
> --------------------------------------------
>
>                 Key: HIVE-15517
>                 URL: https://issues.apache.org/jira/browse/HIVE-15517
>             Project: Hive
>          Issue Type: Bug
>          Components: Hive, Operators, Query Processor, SQL
>    Affects Versions: 1.2.1
>            Reporter: Alexey Bedrintsev
>            Assignee: Pengcheng Xiong
>         Attachments: HIVE-15517.01.patch
>
>
> I created a table as following:
> create table test(x string, y string);
> insert into test values ('q', 'q'), ('q', 'w'), (NULL, 'q'), ('q', NULL), (NULL, NULL);
> Then I try to compare values taking NULLs into account:
> select *, x<=>y, not (x<=> y), (x <=> y) = false from test;
> OK
> q       q       true    false   false
> q       w       false   true    true
> q       NULL    false   NULL    true
> NULL    q       false   NULL    true
> NULL    NULL    true    NULL    false
> I expected that 4th column will be the same as 5th one but actually got NULL as result
of "not false" and "not true" expressions.
> Hive 1.2.1000.2.5.0.0-1245
> Subversion git://c66-slave-20176e25-3/grid/0/jenkins/workspace/HDP-parallel-centos6/SOURCES/hive
-r da6c690d384d1666f5a5f450be5cbc54e2fe4bd6
> Compiled by jenkins on Fri Aug 26 01:39:52 UTC 2016
> From source with checksum c30648316a632f7a753f4359e5c8f4d6



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message