hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Phabricator (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-2901) Hive union with NULL constant and string in same column returns all null
Date Fri, 30 Mar 2012 07:54:57 GMT

     [ https://issues.apache.org/jira/browse/HIVE-2901?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Phabricator updated HIVE-2901:
------------------------------

    Attachment: HIVE-2901.D2541.1.patch

navis requested code review of "HIVE-2901 [jira] Hive union with NULL constant and string
in same column returns all null".
Reviewers: JIRA

  DPAL-1029 Hive union with NULL constant and string in same column returns all null

  select x from (select value as x from src union all select NULL as x from src)a;

  This query produces all nulls, where value is a string column.

  Notably,
  select x from (select key as x from src union all select NULL as x from src)a;
  where key is a string, but can be cast to a double, the query returns correct results.

TEST PLAN
  EMPTY

REVISION DETAIL
  https://reviews.facebook.net/D2541

AFFECTED FILES
  ql/src/java/org/apache/hadoop/hive/ql/exec/FunctionRegistry.java
  ql/src/test/queries/clientpositive/union_null.q

MANAGE HERALD DIFFERENTIAL RULES
  https://reviews.facebook.net/herald/view/differential/

WHY DID I GET THIS EMAIL?
  https://reviews.facebook.net/herald/transcript/5775/

Tip: use the X-Herald-Rules header to filter Herald messages in your client.

                
> Hive union with NULL constant and string in same column returns all null
> ------------------------------------------------------------------------
>
>                 Key: HIVE-2901
>                 URL: https://issues.apache.org/jira/browse/HIVE-2901
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Kevin Wilfong
>            Priority: Critical
>         Attachments: HIVE-2901.D2541.1.patch
>
>
> select x from (select value as x from src union all select NULL as x from src)a;
> This query produces all nulls, where value is a string column.
> Notably, 
> select x from (select key as x from src union all select NULL as x from src)a;
> where key is a string, but can be cast to a double, the query returns correct results.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message