[
https://issues.apache.org/jira/browse/HIVE-23908?focusedWorklogId=463180&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-463180
]
ASF GitHub Bot logged work on HIVE-23908:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 25/Jul/20 00:42
Start Date: 25/Jul/20 00:42
Worklog Time Spent: 10m
Work Description: jcamachor commented on a change in pull request #1302:
URL: https://github.com/apache/hive/pull/1302#discussion_r460341568
##########
File path:
ql/src/test/results/clientpositive/llap/constraints_optimization.q.out
##########
@@ -2689,13 +2689,17 @@ POSTHOOK: Input: default@store_sales
#### A masked pattern was here ####
CBO PLAN:
HiveProject(c_customer_id=[$1])
- HiveAggregate(group=[{0, 1}])
- HiveJoin(condition=[=($0, $8)], joinType=[inner], algorithm=[none],
cost=[not available])
- HiveProject(c_customer_sk=[$0], c_customer_id=[$1], c_first_name=[$8],
c_last_name=[$9], c_preferred_cust_flag=[$10], c_birth_country=[$14],
c_login=[$15], c_email_address=[$16])
- HiveTableScan(table=[[default, customer]], table:alias=[customer])
- HiveProject(ss_customer_sk=[$3])
- HiveFilter(condition=[IS NOT NULL($3)])
- HiveTableScan(table=[[default, store_sales]],
table:alias=[store_sales])
+ HiveSemiJoin(condition=[=($0, $2)], joinType=[semi])
Review comment:
We should not trigger the optimization in this case, since it is just
doing consecutively the same join. However, this is not actually related to
this patch. Can we create a follow-up?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 463180)
Time Spent: 20m (was: 10m)
> Rewrite plan to join back tables: handle root input is an Aggregate
> -------------------------------------------------------------------
>
> Key: HIVE-23908
> URL: https://issues.apache.org/jira/browse/HIVE-23908
> Project: Hive
> Issue Type: Improvement
> Reporter: Krisztian Kasa
> Assignee: Krisztian Kasa
> Priority: Major
> Labels: pull-request-available
> Time Spent: 20m
> Remaining Estimate: 0h
>
> {code}
> EXPLAIN CBO
> SELECT
> C_CUSTOMER_ID
> FROM
> CUSTOMER
> , STORE_SALES
> WHERE
> C_CUSTOMER_SK = SS_CUSTOMER_SK
> GROUP BY
> C_CUSTOMER_SK
> , C_CUSTOMER_ID
> , C_FIRST_NAME
> , C_LAST_NAME
> , C_PREFERRED_CUST_FLAG
> , C_BIRTH_COUNTRY
> , C_LOGIN
> , C_EMAIL_ADDRESS
> {code}
> {code}
> HiveProject(c_customer_id=[$1])
> HiveAggregate(group=[{0, 1}])
> HiveProject($f0=[$0], $f1=[$1], $f2=[$2], $f3=[$3], $f4=[$4], $f5=[$5],
> $f6=[$6], $f7=[$7])
> HiveJoin(condition=[=($0, $8)], joinType=[inner], algorithm=[none],
> cost=[not available])
> HiveProject(c_customer_sk=[$0], c_customer_id=[$1],
> c_first_name=[$8], c_last_name=[$9], c_preferred_cust_flag=[$10],
> c_birth_country=[$14], c_login=[$15], c_email_address=[$16])
> HiveTableScan(table=[[default, customer]], table:alias=[customer])
> HiveProject(ss_customer_sk=[$3])
> HiveFilter(condition=[IS NOT NULL($3)])
> HiveTableScan(table=[[default, store_sales]],
> table:alias=[store_sales])
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)