You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Kevin Wilfong (Created) (JIRA)" <ji...@apache.org> on 2012/03/24 02:55:25 UTC

[jira] [Created] (HIVE-2901) Hive union with NULL constant and string in same column returns all null

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


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

        

[jira] [Commented] (HIVE-2901) Hive union with NULL constant and string in same column returns all null

Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-2901?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13248260#comment-13248260 ] 

Hudson commented on HIVE-2901:
------------------------------

Integrated in Hive-trunk-h0.21 #1357 (See [https://builds.apache.org/job/Hive-trunk-h0.21/1357/])
    HIVE-2901 Hive union with NULL constant and string in same column returns all null
(Navis via namit) (Revision 1310179)

     Result = SUCCESS
namit : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1310179
Files : 
* /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/FunctionRegistry.java
* /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java
* /hive/trunk/ql/src/test/queries/clientpositive/union_null.q
* /hive/trunk/ql/src/test/results/clientpositive/union_null.q.out

                
> 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
>            Assignee: Navis
>            Priority: Critical
>         Attachments: HIVE-2901.D2541.1.patch, HIVE-2901.D2541.2.patch, HIVE-2901.D2541.3.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

        

[jira] [Updated] (HIVE-2901) Hive union with NULL constant and string in same column returns all null

Posted by "Navis (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-2901?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Navis updated HIVE-2901:
------------------------

    Status: Patch Available  (was: Open)
    
> 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
>            Assignee: Navis
>            Priority: Critical
>         Attachments: HIVE-2901.D2541.1.patch, HIVE-2901.D2541.2.patch, HIVE-2901.D2541.3.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

        

[jira] [Updated] (HIVE-2901) Hive union with NULL constant and string in same column returns all null

Posted by "Phabricator (Updated) (JIRA)" <ji...@apache.org>.
     [ 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.3.patch

navis updated the revision "HIVE-2901 [jira] Hive union with NULL constant and string in same column returns all null".
Reviewers: JIRA

  1. For union all, common type need not to be compared.

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

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

                
> 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
>            Assignee: Navis
>            Priority: Critical
>         Attachments: HIVE-2901.D2541.1.patch, HIVE-2901.D2541.2.patch, HIVE-2901.D2541.3.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

        

[jira] [Updated] (HIVE-2901) Hive union with NULL constant and string in same column returns all null

Posted by "Phabricator (Updated) (JIRA)" <ji...@apache.org>.
     [ 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

        

[jira] [Updated] (HIVE-2901) Hive union with NULL constant and string in same column returns all null

Posted by "Phabricator (Updated) (JIRA)" <ji...@apache.org>.
     [ 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.2.patch

navis updated the revision "HIVE-2901 [jira] Hive union with NULL constant and string in same column returns all null".
Reviewers: JIRA

  Missed test result

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
  ql/src/test/results/clientpositive/union_null.q.out

                
> 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
>            Assignee: Navis
>            Priority: Critical
>         Attachments: HIVE-2901.D2541.1.patch, HIVE-2901.D2541.2.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

        

[jira] [Updated] (HIVE-2901) Hive union with NULL constant and string in same column returns all null

Posted by "Ashutosh Chauhan (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-2901?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ashutosh Chauhan updated HIVE-2901:
-----------------------------------

    Fix Version/s: 0.9.0
    
> 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
>            Assignee: Navis
>            Priority: Critical
>             Fix For: 0.9.0
>
>         Attachments: HIVE-2901.D2541.1.patch, HIVE-2901.D2541.2.patch, HIVE-2901.D2541.3.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

        

[jira] [Assigned] (HIVE-2901) Hive union with NULL constant and string in same column returns all null

Posted by "Navis (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-2901?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Navis reassigned HIVE-2901:
---------------------------

    Assignee: Navis
    
> 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
>            Assignee: Navis
>            Priority: Critical
>         Attachments: HIVE-2901.D2541.1.patch, HIVE-2901.D2541.2.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

        

[jira] [Updated] (HIVE-2901) Hive union with NULL constant and string in same column returns all null

Posted by "Namit Jain (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-2901?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Namit Jain updated HIVE-2901:
-----------------------------

      Resolution: Fixed
    Hadoop Flags: Reviewed
          Status: Resolved  (was: Patch Available)

Committed. Thanks Navis
                
> 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
>            Assignee: Navis
>            Priority: Critical
>         Attachments: HIVE-2901.D2541.1.patch, HIVE-2901.D2541.2.patch, HIVE-2901.D2541.3.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

        

[jira] [Commented] (HIVE-2901) Hive union with NULL constant and string in same column returns all null

Posted by "Phabricator (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-2901?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13247829#comment-13247829 ] 

Phabricator commented on HIVE-2901:
-----------------------------------

njain has accepted the revision "HIVE-2901 [jira] Hive union with NULL constant and string in same column returns all null".

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

BRANCH
  DPAL-1029

                
> 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
>            Assignee: Navis
>            Priority: Critical
>         Attachments: HIVE-2901.D2541.1.patch, HIVE-2901.D2541.2.patch, HIVE-2901.D2541.3.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