Skip to content

Conversation

@cloud-fan
Copy link
Contributor

What changes were proposed in this pull request?

HiveExternalCatalog should be the only interface to talk to the hive metastore. In MetastoreRelation we can just use ExternalCatalog instead of HiveClient to interact with hive metastore, and add missing API in ExternalCatalog.

How was this patch tested?

existing tests.

@cloud-fan
Copy link
Contributor Author

cc @yhuai @gatorsmile

@SparkQA
Copy link

SparkQA commented Oct 13, 2016

Test build #66882 has finished for PR 15460 at commit 79ec4fe.

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

@SparkQA
Copy link

SparkQA commented Oct 13, 2016

Test build #66893 has finished for PR 15460 at commit f3ba6e0.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@rxin
Copy link
Contributor

rxin commented Oct 13, 2016

cc @ericl

@ericl
Copy link
Contributor

ericl commented Oct 13, 2016

LGTM

@rxin
Copy link
Contributor

rxin commented Oct 13, 2016

A bunch of mysterious failures ...

@ericl
Copy link
Contributor

ericl commented Oct 13, 2016

LGTM if tests pass :)

@yhuai
Copy link
Contributor

yhuai commented Oct 13, 2016

Caused by: sbt.ForkMain$ForkError: org.apache.spark.sql.catalyst.analysis.NoSuchTableException: Table or view 'default' not found in database 'srcpart'; Seems we swapped the db and table name somehow.

client.getPartitions(db, table, partialSpec)
}

override def listPartitionsByFilter(
Copy link
Member

Choose a reason for hiding this comment

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

Need a test case in HiveExternalCatalogSuite, just like the other APIs?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added

@gatorsmile
Copy link
Member

LGTM except one comment about test case

@SparkQA
Copy link

SparkQA commented Oct 14, 2016

Test build #66922 has finished for PR 15460 at commit 628fd05.

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

@SparkQA
Copy link

SparkQA commented Oct 14, 2016

Test build #66948 has finished for PR 15460 at commit 82df987.

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

@asfgit asfgit closed this in 2fb12b0 Oct 14, 2016
@cloud-fan
Copy link
Contributor Author

thanks for the review, merging to master!

robert3005 pushed a commit to palantir/spark that referenced this pull request Nov 1, 2016
…instead of hive client

## What changes were proposed in this pull request?

`HiveExternalCatalog` should be the only interface to talk to the hive metastore. In `MetastoreRelation` we can just use `ExternalCatalog` instead of `HiveClient` to interact with hive metastore,  and add missing API in `ExternalCatalog`.

## How was this patch tested?

existing tests.

Author: Wenchen Fan <[email protected]>

Closes apache#15460 from cloud-fan/relation.
uzadude pushed a commit to uzadude/spark that referenced this pull request Jan 27, 2017
…instead of hive client

## What changes were proposed in this pull request?

`HiveExternalCatalog` should be the only interface to talk to the hive metastore. In `MetastoreRelation` we can just use `ExternalCatalog` instead of `HiveClient` to interact with hive metastore,  and add missing API in `ExternalCatalog`.

## How was this patch tested?

existing tests.

Author: Wenchen Fan <[email protected]>

Closes apache#15460 from cloud-fan/relation.
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.

6 participants