-
Couldn't load subscription status.
- Fork 28.9k
[SPARK-12470] [SQL] Fix size reduction calculation #10421
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
Conversation
|
I believe this is uncovering a test failure in ExchangeCoordinatorSuite so this please hold this PR until I investigate further.
EDIT above tests now working with this PR merged into latest master I'd appreciate it if someone could verify the patch as I'm pretty sure it is correct. |
|
@rxin as the original author of this code could you please review the PR? |
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.
It may be better to use number of bytes for sizeReduction (also update the comments).
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.
OK. sorted. Can this be run by Jenkins tests?
|
@rxin I had finished the refactoring long time ago. |
|
LGTM, pending for tests. |
|
Test build #2268 has finished for PR 10421 at commit
|
|
Jenkins, OK to test. |
|
Fixed scala style check Please retest |
|
Test build #2273 has finished for PR 10421 at commit
|
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.
$sizeReduction
|
re-merged with latest master Please retest |
|
Test build #2282 has finished for PR 10421 at commit
|
|
I will let @davies merge it. |
also only allocate required buffer size Author: Pete Robbins <[email protected]> Closes #10421 from robbinspg/master. (cherry picked from commit b504b6a) Signed-off-by: Davies Liu <[email protected]> Conflicts: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/codegen/GenerateUnsafeRowJoiner.scala
|
Merged into master and 1.6 branch, thanks! |
|
Merging this into the 1.6 stream has caused a test failure in org.apache.spark.sql.execution.ExchangeCoordinatorSuite.determining the number of reducers: aggregate operator There was a change in master in the ExchangeCoordinatorSuite which set the expected partition sizes to a new value. I do not understand why the change in this PR affects the input partition sizes but it does. I think this is a test issue rather than an issue with this PR. Should I raise a new Jira to fix the expected partition sizes? |
|
cc @yhuai on this one |
|
I have a fix for the test failure. Should I create a new Jira and PR? |
|
created https://issues.apache.org/jira/browse/SPARK-12647 and associated PR |
also only allocate required buffer size