-
Notifications
You must be signed in to change notification settings - Fork 28.5k
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
[SPARK-2393][SQL] Cost estimation optimization framework for Catalyst logical plans & sample usage. #1238
Closed
Closed
[SPARK-2393][SQL] Cost estimation optimization framework for Catalyst logical plans & sample usage. #1238
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
56a8e6e
Prototype impl of estimations for Catalyst logical plans.
concretevitamin 5bf5586
Typo.
concretevitamin 84301a4
Refactors.
concretevitamin dcff9bd
Cleanups.
concretevitamin de3ae13
Add parquetAfter() properly in test.
concretevitamin 7a60ab7
s/Estimates/Statistics, s/cardinality/numTuples.
concretevitamin 73412be
Move SQLConf to Catalyst & add default val for sizeInBytes.
concretevitamin 73cde01
Move SQLConf back. Assign default sizeInBytes to SparkLogicalPlan.
concretevitamin 7d9216a
Apply estimation to planning ShuffleHashJoin & BroadcastNestedLoopJoin.
concretevitamin e5bcf5b
Fix optimization conditions & update scala docs to explain.
concretevitamin 3ba8f3e
Add comment.
concretevitamin 4ef0d26
Make Statistics a case class.
concretevitamin 0ef9e5b
Use multiplication instead of sum for default estimates.
concretevitamin 43d38a6
Revert optimization for BroadcastNestedLoopJoin (this fixes tests).
concretevitamin ca5b825
Inject SQLContext into SparkLogicalPlan, removing SQLConf mixin from it.
concretevitamin 2d99eb5
{Cleanup, use synchronized in, enrich} StatisticsSuite.
concretevitamin 573e644
Remove singleton SQLConf and move back `settings` to the trait.
concretevitamin 729a8e2
Update docs to be more explicit.
concretevitamin 549061c
Remove numTuples in Statistics for now.
concretevitamin 01b7a3e
Update scaladoc for a field and move it to @param section.
concretevitamin 6e594b8
Get size info from metastore for MetastoreRelation.
concretevitamin 8bd2816
Add a note on performance of statistics.
concretevitamin 16fc60a
Avoid calling statistics on plans if auto join conversion is disabled.
concretevitamin 9951305
Remove childrenStats.
concretevitamin 2f2fb89
Fix statistics for SparkLogicalPlan.
concretevitamin 8663e84
Use BigInt for stat; for logical leaves, by default throw an exception.
concretevitamin 329071d
Address review comments; turn config name from string to field in SQL…
concretevitamin 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 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
24 changes: 0 additions & 24 deletions
24
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/BaseRelation.scala
This file was deleted.
Oops, something went wrong.
This file contains 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 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 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 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 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 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 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.
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.
FYI: I'm considering adding a way for all physical plans to automatically have a handle to the sqlContext. This will probably happen in the code gen patch.
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.
That will be pretty awesome & reduce much boilerplate code.
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.
marmbrus@d2ad5c5