Skip to content

Conversation

@rxin
Copy link
Contributor

@rxin rxin commented May 24, 2017

What changes were proposed in this pull request?

This is a follow-up to SPARK-20857 to move the broadcast hint from Statistics into a new HintInfo class, so we can be more flexible in adding new hints in the future.

How was this patch tested?

Updated test cases to reflect the change.

@SparkQA
Copy link

SparkQA commented May 24, 2017

Test build #77301 has finished for PR 18087 at commit 19232cf.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
  • case class ResolvedHint(child: LogicalPlan, hints: HintInfo = HintInfo())
  • case class HintInfo(

@rxin
Copy link
Contributor Author

rxin commented May 24, 2017

cc @hvanhovell, @bogdanrdc

Statistics(sizeInBytes = sizeInBytes, isBroadcastable = isBroadcastable)
Statistics(
sizeInBytes = sizeInBytes,
hints = left.stats(conf).hints.resetForJoin())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't propagate isBroadcastable Hints in Intersect?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's actually no-op since Intersect is rewritten to a join always ..

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uh, right.

@gatorsmile
Copy link
Member

LGTM except one comment.

asfgit pushed a commit that referenced this pull request May 24, 2017
## What changes were proposed in this pull request?
This is a follow-up to SPARK-20857 to move the broadcast hint from Statistics into a new HintInfo class, so we can be more flexible in adding new hints in the future.

## How was this patch tested?
Updated test cases to reflect the change.

Author: Reynold Xin <rxin@databricks.com>

Closes #18087 from rxin/SPARK-20867.

(cherry picked from commit a647466)
Signed-off-by: Xiao Li <gatorsmile@gmail.com>
@gatorsmile
Copy link
Member

Thanks! Merging to master/2.2.

@asfgit asfgit closed this in a647466 May 24, 2017
peter-toth pushed a commit to peter-toth/spark that referenced this pull request Oct 6, 2018
## What changes were proposed in this pull request?
This is a follow-up to SPARK-20857 to move the broadcast hint from Statistics into a new HintInfo class, so we can be more flexible in adding new hints in the future.

## How was this patch tested?
Updated test cases to reflect the change.

Author: Reynold Xin <rxin@databricks.com>

Closes apache#18087 from rxin/SPARK-20867.

(cherry picked from commit a647466)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants