hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hive QA (JIRA)" <>
Subject [jira] [Commented] (HIVE-12941) Unexpected result when using MIN() on struct with NULL in first field
Date Sat, 06 Feb 2016 08:05:39 GMT


Hive QA commented on HIVE-12941:

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 8 failed/errored test(s), 10038 tests executed
*Failed tests:*
TestMiniTezCliDriver-vectorized_parquet.q-explainuser_4.q-orc_merge6.q-and-12-more - did not
produce a TEST-*.xml file

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.ExecutionPhase
Executing org.apache.hive.ptest.execution.ReportingPhase
Tests exited with: TestsFailedException: 8 tests failed

This message is automatically generated.

ATTACHMENT ID: 12786277 - PreCommit-HIVE-TRUNK-Build

> Unexpected result when using MIN() on struct with NULL in first field
> ---------------------------------------------------------------------
>                 Key: HIVE-12941
>                 URL:
>             Project: Hive
>          Issue Type: Bug
>          Components: Hive
>    Affects Versions: 1.1.0
>            Reporter: Jan-Erik Hedbom
>            Assignee: Yongzhi Chen
>         Attachments: HIVE-12941.1.patch
> Using MIN() on struct with NULL in first field of a row yields NULL as result.
> Example:
> select min(a) FROM (select 1 as a union all select 2 as a union all select cast(null
as int) as a) tmp;
> OK
> _c0
> 1
> As expected. But if we wrap it in a struct:
> select min(a) FROM (select named_struct("field",1) as a union all select named_struct("field",2)
as a union all select named_struct("field",cast(null as int)) as a) tmp;
> OK
> _c0
> Using MAX() works as expected for structs.

This message was sent by Atlassian JIRA

View raw message