hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "zhaolong (Jira)" <j...@apache.org>
Subject [jira] [Resolved] (HIVE-24101) Invalid table alias order by columns(>=2) if cbo is false
Date Tue, 01 Sep 2020 06:15:00 GMT

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

zhaolong resolved HIVE-24101.
-----------------------------
    Resolution: Duplicate

https://issues.apache.org/jira/browse/HIVE-24100  
Repeated problem

> Invalid table alias order by columns(>=2) if cbo is false
> ---------------------------------------------------------
>
>                 Key: HIVE-24101
>                 URL: https://issues.apache.org/jira/browse/HIVE-24101
>             Project: Hive
>          Issue Type: Bug
>          Components: CBO
>    Affects Versions: 3.1.0
>            Reporter: zhaolong
>            Priority: Major
>         Attachments: image-2020-09-01-11-29-50-729.png
>
>
> create table a
> (
> item_id string, 
> stru_area_id string
> )partitioned by ( PT_DT string) stored as orc;
> create table b
> (
> CREATE_ORG_ID string,
> PROMOTION_ID string,
> PROMOTION_STATUS string
> ) partitioned by (pt_dt string) stored as orc;
> create table c
> (
> STRU_ID string,
> SUP_STRU string
> ) partitioned by(pt_dt string) stored as orc;
> set hive.cbo.enable=false;
> explain
> insert into table a partition( PT_DT = '2020-08-22' )
> (item_id , stru_area_id)
> select 
>  'zzzz' ITEM_ID , T.STRU_ID STRU_AREA_ID 
> from ( 
>  select 
>  STRU_ID STRU_ID ,T0.STRU_ID STRU_ID_BRANCH 
>  from c T0 
> ) T
> inner join ( 
>  select 
>  CREATE_ORG_ID
>  from b TT 
> ) TIV
> on ( STRU_ID_BRANCH = CREATE_ORG_ID ) 
> group by T.STRU_ID
> order by 1,2;
> !image-2020-09-01-11-29-50-729.png!
> if delete order by 1,2 it`s ok.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message