You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Ning Zhang (JIRA)" <ji...@apache.org> on 2009/12/22 23:24:29 UTC

[jira] Created: (HIVE-1009) UNION ALL throws schema-not-match exception if one subquery is TRANSFORM and the other is a simple select

UNION ALL throws schema-not-match exception if one subquery is TRANSFORM and the other is a simple select
---------------------------------------------------------------------------------------------------------

                 Key: HIVE-1009
                 URL: https://issues.apache.org/jira/browse/HIVE-1009
             Project: Hadoop Hive
          Issue Type: Bug
            Reporter: Ning Zhang
            Assignee: Ning Zhang


select s.key, s.value from 
 ( select transform(key, value) using 'cat' as (key, value) from src
   UNION ALL
   select key, value from src) s;

throws schema-not-match exception.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-1009) UNION ALL throws schema-not-match exception if one subquery is TRANSFORM and the other is a simple select

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

Ning Zhang updated HIVE-1009:
-----------------------------

    Status: Patch Available  (was: Open)

> UNION ALL throws schema-not-match exception if one subquery is TRANSFORM and the other is a simple select
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: HIVE-1009
>                 URL: https://issues.apache.org/jira/browse/HIVE-1009
>             Project: Hadoop Hive
>          Issue Type: Bug
>            Reporter: Ning Zhang
>            Assignee: Ning Zhang
>         Attachments: HIVE-1009.patch
>
>
> select s.key, s.value from 
>  ( select transform(key, value) using 'cat' as (key, value) from src
>    UNION ALL
>    select key, value from src) s;
> throws schema-not-match exception.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-1009) UNION ALL throws schema-not-match exception if one subquery is TRANSFORM and the other is a simple select

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

Ning Zhang updated HIVE-1009:
-----------------------------

    Attachment: HIVE-1009.patch

patch has the following changes:
1) in genScriptPlan, the script operator's row resolver was generated using alias as internal column name. We should generate a unique internal column name and set the alias as alias in ColumnInfo. 
2) many log changes due to different explain column name changes. 

> UNION ALL throws schema-not-match exception if one subquery is TRANSFORM and the other is a simple select
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: HIVE-1009
>                 URL: https://issues.apache.org/jira/browse/HIVE-1009
>             Project: Hadoop Hive
>          Issue Type: Bug
>            Reporter: Ning Zhang
>            Assignee: Ning Zhang
>         Attachments: HIVE-1009.patch
>
>
> select s.key, s.value from 
>  ( select transform(key, value) using 'cat' as (key, value) from src
>    UNION ALL
>    select key, value from src) s;
> throws schema-not-match exception.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-1009) UNION ALL throws schema-not-match exception if one subquery is TRANSFORM and the other is a simple select

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

Namit Jain commented on HIVE-1009:
----------------------------------

+1

looks good - will merge if the tests pass

> UNION ALL throws schema-not-match exception if one subquery is TRANSFORM and the other is a simple select
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: HIVE-1009
>                 URL: https://issues.apache.org/jira/browse/HIVE-1009
>             Project: Hadoop Hive
>          Issue Type: Bug
>            Reporter: Ning Zhang
>            Assignee: Ning Zhang
>         Attachments: HIVE-1009.patch
>
>
> select s.key, s.value from 
>  ( select transform(key, value) using 'cat' as (key, value) from src
>    UNION ALL
>    select key, value from src) s;
> throws schema-not-match exception.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-1009) UNION ALL throws schema-not-match exception if one subquery is TRANSFORM and the other is a simple select

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

Namit Jain updated HIVE-1009:
-----------------------------

       Resolution: Fixed
    Fix Version/s: 0.5.0
     Hadoop Flags: [Reviewed]
           Status: Resolved  (was: Patch Available)

Committed. Thanks Ning

> UNION ALL throws schema-not-match exception if one subquery is TRANSFORM and the other is a simple select
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: HIVE-1009
>                 URL: https://issues.apache.org/jira/browse/HIVE-1009
>             Project: Hadoop Hive
>          Issue Type: Bug
>            Reporter: Ning Zhang
>            Assignee: Ning Zhang
>             Fix For: 0.5.0
>
>         Attachments: HIVE-1009.patch
>
>
> select s.key, s.value from 
>  ( select transform(key, value) using 'cat' as (key, value) from src
>    UNION ALL
>    select key, value from src) s;
> throws schema-not-match exception.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.