Skip to content
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-2187] Explain should not run the optimizer twice. #1123

Closed
wants to merge 2 commits into from

Conversation

rxin
Copy link
Contributor

@rxin rxin commented Jun 19, 2014

@marmbrus
Copy link
Contributor

Nice, this LGTM. This will also make it easy to possibly add the option to view the optimized logical plan though explain at some point as well.

// Actually "EXPLAIN" command doesn't cause any side effect.
override protected[sql] lazy val sideEffectResult: Seq[String] = this.toString.split("\n")
// Run through the optimizer to generate the physical plan.
// This is really side effect free but we follow the infrastructure anyway...
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it? Have we fixed all the bugs where generating a plan actually fires off Spark jobs? :P

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I hope so ..... That was an old comment I just rewrote anyway ...

@AmplabJenkins
Copy link

Merged build triggered.

@AmplabJenkins
Copy link

Merged build started.

@AmplabJenkins
Copy link

Merged build finished.

@AmplabJenkins
Copy link

Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/15886/

@AmplabJenkins
Copy link

Merged build triggered.

@AmplabJenkins
Copy link

Merged build started.

@AmplabJenkins
Copy link

Merged build finished. All automated tests passed.

@AmplabJenkins
Copy link

All automated tests passed.
Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/15893/

@rxin
Copy link
Contributor Author

rxin commented Jun 19, 2014

Ok I am merging this in master & branch-1.0.

asfgit pushed a commit that referenced this pull request Jun 19, 2014
@yhuai @marmbrus @concretevitamin

Author: Reynold Xin <rxin@apache.org>

Closes #1123 from rxin/explain and squashes the following commits:

def83b0 [Reynold Xin] Update unit tests for explain.
a9d3ba8 [Reynold Xin] [SPARK-2187] Explain should not run the optimizer twice.

(cherry picked from commit 640c294)
Signed-off-by: Reynold Xin <rxin@apache.org>
@asfgit asfgit closed this in 640c294 Jun 19, 2014
pdeyhim pushed a commit to pdeyhim/spark-1 that referenced this pull request Jun 25, 2014
@yhuai @marmbrus @concretevitamin

Author: Reynold Xin <rxin@apache.org>

Closes apache#1123 from rxin/explain and squashes the following commits:

def83b0 [Reynold Xin] Update unit tests for explain.
a9d3ba8 [Reynold Xin] [SPARK-2187] Explain should not run the optimizer twice.
@rxin rxin deleted the explain branch August 13, 2014 08:03
xiliu82 pushed a commit to xiliu82/spark that referenced this pull request Sep 4, 2014
@yhuai @marmbrus @concretevitamin

Author: Reynold Xin <rxin@apache.org>

Closes apache#1123 from rxin/explain and squashes the following commits:

def83b0 [Reynold Xin] Update unit tests for explain.
a9d3ba8 [Reynold Xin] [SPARK-2187] Explain should not run the optimizer twice.
wangyum pushed a commit that referenced this pull request May 26, 2023
)

* [CARMEL-6355] Auto update table statistics based on write metrics

* Fix UT

* Fix UT

* Fix UT

* Fix UT

* Fix UT
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