-
Notifications
You must be signed in to change notification settings - Fork 4.8k
HIVE-27006: Fix ParallelEdgeFixer #4043
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
deniskuzZ
merged 10 commits into
apache:master
from
ngsg:HIVE-27006-Fix-ParallelEdgeFixer
Nov 23, 2023
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
007ab4e
Fix ParallelEdgeFixer
ngsg 78871ae
Set correct schema and colExprMap into RSOps added by DPPOptimization
ngsg b2e5841
Add a qfile test
ngsg de77197
Update qfile output
ngsg b3d13b8
Update qfile output
ngsg 27f2d73
Add comment; update qfile output
ngsg e095fd0
resolve requested changes
ngsg d3cbcf0
restore intermediate RS creation in DPPOptimization; typo
ngsg f3bc161
minor
ngsg f38186b
minor
ngsg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| set hive.auto.convert.join=true; | ||
| set hive.optimize.shared.work.dppunion.merge.eventops=true; | ||
| set hive.optimize.shared.work.dppunion=true; | ||
| set hive.optimize.shared.work.extended=true; | ||
| set hive.optimize.shared.work.parallel.edge.support=true; | ||
| set hive.optimize.shared.work=true; | ||
| set hive.support.concurrency=true; | ||
| set hive.tez.bigtable.minsize.semijoin.reduction=1; | ||
| set hive.txn.manager=org.apache.hadoop.hive.ql.lockmgr.DbTxnManager; | ||
|
|
||
| drop table if exists x1_store_sales; | ||
| drop table if exists x1_date_dim; | ||
|
|
||
| create table x1_store_sales (ss_sold_date_sk int, ss_item_sk int) stored as orc tblproperties('transactional'='true', 'transactional_properties'='default'); | ||
| create table x1_date_dim (d_date_sk int, d_month_seq int, d_year int, d_moy int) stored as orc tblproperties('transactional'='true', 'transactional_properties'='default'); | ||
|
|
||
| insert into x1_date_dim values (1,1,2000,1), (2,2,2001,2), (3,2,2001,3), (4,2,2001,4), (5,2,2001,5), (6,2,2001,6), (7,2,2001,7), (8,2,2001,8); | ||
| insert into x1_store_sales values (1,1),(3,3),(4,4),(5,5),(6,6),(7,7),(8,8),(9,9),(10,10),(11,11); | ||
|
|
||
| alter table x1_store_sales update statistics set('numRows'='123456', 'rawDataSize'='1234567'); | ||
| alter table x1_date_dim update statistics set('numRows'='28', 'rawDataSize'='81449'); | ||
|
|
||
| explain | ||
| select ss_item_sk | ||
| from ( | ||
| select ss_item_sk, ss_sold_date_sk from x1_store_sales | ||
| union all | ||
| select ss_item_sk, ss_sold_date_sk from x1_store_sales | ||
| union all | ||
| select ss_item_sk, ss_sold_date_sk from x1_store_sales | ||
| ) as tmp, | ||
| x1_date_dim | ||
| where ss_sold_date_sk = d_date_sk and d_moy=1; | ||
|
|
||
| select ss_item_sk | ||
| from ( | ||
| select ss_item_sk, ss_sold_date_sk from x1_store_sales | ||
| union all | ||
| select ss_item_sk, ss_sold_date_sk from x1_store_sales | ||
| union all | ||
| select ss_item_sk, ss_sold_date_sk from x1_store_sales | ||
| ) as tmp, | ||
| x1_date_dim | ||
| where ss_sold_date_sk = d_date_sk and d_moy=1; | ||
|
|
||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.