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-13884][SQL] Remove DescribeCommand's dependency on LogicalPlan #11710

Closed
wants to merge 1 commit into from

Conversation

rxin
Copy link
Contributor

@rxin rxin commented Mar 15, 2016

What changes were proposed in this pull request?

This patch removes DescribeCommand's dependency on LogicalPlan. After this patch, DescribeCommand simply accepts a TableIdentifier. It minimizes the dependency, and blocks my next patch (removes SQLContext dependency from SparkPlanner).

How was this patch tested?

Should be covered by existing unit tests and Hive compatibility tests that run describe table.

@@ -31,33 +33,44 @@ import org.apache.spark.sql.hive.MetastoreRelation
*/
private[hive]
case class DescribeHiveTableCommand(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

once we improve the catalog, we can actually consolidate this and the normal DescribeCommand class.

@rxin
Copy link
Contributor Author

rxin commented Mar 15, 2016

cc @cloud-fan

@SparkQA
Copy link

SparkQA commented Mar 15, 2016

Test build #53151 has finished for PR 11710 at commit ad073fa.

  • This patch fails to build.
  • This patch merges cleanly.
  • This patch adds no public classes.

@cloud-fan
Copy link
Contributor

LGTM overall

@SparkQA
Copy link

SparkQA commented Mar 15, 2016

Test build #2641 has finished for PR 11710 at commit ad073fa.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@rxin
Copy link
Contributor Author

rxin commented Mar 15, 2016

Merging in master.

@asfgit asfgit closed this in e649580 Mar 15, 2016
roygao94 pushed a commit to roygao94/spark that referenced this pull request Mar 22, 2016
## What changes were proposed in this pull request?
This patch removes DescribeCommand's dependency on LogicalPlan. After this patch, DescribeCommand simply accepts a TableIdentifier. It minimizes the dependency, and blocks my next patch (removes SQLContext dependency from SparkPlanner).

## How was this patch tested?
Should be covered by existing unit tests and Hive compatibility tests that run describe table.

Author: Reynold Xin <rxin@databricks.com>

Closes apache#11710 from rxin/SPARK-13884.
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