-
Notifications
You must be signed in to change notification settings - Fork 4.7k
HIVE-28853: SharedWorkOptimizer should always consider MapJoin operators' InMemoryDataSize. #5717
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
base: master
Are you sure you want to change the base?
HIVE-28853: SharedWorkOptimizer should always consider MapJoin operators' InMemoryDataSize. #5717
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor comment.
ql/src/java/org/apache/hadoop/hive/ql/optimizer/SharedWorkOptimizer.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM +1
@kasakrisz Can you please take a second look.
ql/src/java/org/apache/hadoop/hive/ql/optimizer/SharedWorkOptimizer.java
Outdated
Show resolved
Hide resolved
ql/src/java/org/apache/hadoop/hive/ql/optimizer/SharedWorkOptimizer.java
Outdated
Show resolved
Hide resolved
ql/src/java/org/apache/hadoop/hive/ql/optimizer/SharedWorkOptimizer.java
Outdated
Show resolved
Hide resolved
ec5d1ba
to
1de8b9a
Compare
@kasakrisz , I have updated the patch according to your review. Could you review the changes again? |
@ngsg |
@kasakrisz , I have updated the qfile output. It looks like I forgot to compile the project after rebase. Thanks for pointing that out. |
@ngsg |
0858fa4
to
0d61ae0
Compare
|
What changes were proposed in this pull request?
The patch modifies
SharedWorkOptimizer.extractSharedOptimizationInfoForRoot
to consider MapJoin's inMemoryDataSize.Why are the changes needed?
Current SharedWorkOptimizer may produce a vertex with a large number of MapJoins, potentially causing the MapJoin HashTables to exceed available memory. This patch prevents such misbehaviour.
Does this PR introduce any user-facing change?
No
Is the change a dependency upgrade?
No
How was this patch tested?
I tested the patch by qfile test.