Skip to content

Commit 23a1610

Browse files
author
Andrew Or
committed
HiveCatalog -> HiveExternalCatalog
1 parent ab3cd7d commit 23a1610

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveContext.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class HiveContext private[hive](
8686
@transient private[hive] val executionHive: HiveClientImpl,
8787
@transient private[hive] val metadataHive: HiveClient,
8888
isRootContext: Boolean,
89-
@transient private[sql] val hiveCatalog: HiveCatalog)
89+
@transient private[sql] val hiveCatalog: HiveExternalCatalog)
9090
extends SQLContext(sc, cacheManager, listener, isRootContext, hiveCatalog) with Logging {
9191
self =>
9292

@@ -98,7 +98,7 @@ class HiveContext private[hive](
9898
execHive,
9999
metaHive,
100100
true,
101-
new HiveCatalog(metaHive))
101+
new HiveExternalCatalog(metaHive))
102102
}
103103

104104
def this(sc: SparkContext) = {

sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveCatalog.scala renamed to sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveExternalCatalog.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import org.apache.spark.sql.hive.client.HiveClient
3434
* A persistent implementation of the system catalog using Hive.
3535
* All public methods must be synchronized for thread-safety.
3636
*/
37-
private[spark] class HiveCatalog(client: HiveClient) extends ExternalCatalog with Logging {
37+
private[spark] class HiveExternalCatalog(client: HiveClient) extends ExternalCatalog with Logging {
3838
import ExternalCatalog._
3939

4040
// Exceptions thrown by the hive client that we would like to wrap

sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveMetastoreCatalog.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ private[hive] object HiveSerDe {
102102
* Legacy catalog for interacting with the Hive metastore.
103103
*
104104
* This is still used for things like creating data source tables, but in the future will be
105-
* cleaned up to integrate more nicely with [[HiveCatalog]].
105+
* cleaned up to integrate more nicely with [[HiveExternalCatalog]].
106106
*/
107107
private[hive] class HiveMetastoreCatalog(val client: HiveClient, hive: HiveContext)
108108
extends Logging {

sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveSessionCatalog.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import org.apache.spark.sql.types.StructType
2828

2929

3030
class HiveSessionCatalog(
31-
externalCatalog: HiveCatalog,
31+
externalCatalog: HiveExternalCatalog,
3232
client: HiveClient,
3333
context: HiveContext,
3434
conf: SQLConf)

sql/hive/src/main/scala/org/apache/spark/sql/hive/test/TestHive.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class TestHiveContext private[hive](
8282
executionHive: HiveClientImpl,
8383
metadataHive: HiveClient,
8484
isRootContext: Boolean,
85-
hiveCatalog: HiveCatalog,
85+
hiveCatalog: HiveExternalCatalog,
8686
val warehousePath: File,
8787
val scratchDirPath: File,
8888
metastoreTemporaryConf: Map[String, String])
@@ -114,7 +114,7 @@ class TestHiveContext private[hive](
114114
executionHive,
115115
metadataHive,
116116
true,
117-
new HiveCatalog(metadataHive),
117+
new HiveExternalCatalog(metadataHive),
118118
warehousePath,
119119
scratchDirPath,
120120
metastoreTemporaryConf)

sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveCatalogSuite.scala renamed to sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveExternalCatalogSuite.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ import org.apache.spark.sql.hive.client.{HiveClient, IsolatedClientLoader}
2626
import org.apache.spark.util.Utils
2727

2828
/**
29-
* Test suite for the [[HiveCatalog]].
29+
* Test suite for the [[HiveExternalCatalog]].
3030
*/
31-
class HiveCatalogSuite extends CatalogTestCases {
31+
class HiveExternalCatalogSuite extends CatalogTestCases {
3232

3333
private val client: HiveClient = {
3434
IsolatedClientLoader.forVersion(
@@ -41,7 +41,7 @@ class HiveCatalogSuite extends CatalogTestCases {
4141
protected override val utils: CatalogTestUtils = new CatalogTestUtils {
4242
override val tableInputFormat: String = "org.apache.hadoop.mapred.SequenceFileInputFormat"
4343
override val tableOutputFormat: String = "org.apache.hadoop.mapred.SequenceFileOutputFormat"
44-
override def newEmptyCatalog(): ExternalCatalog = new HiveCatalog(client)
44+
override def newEmptyCatalog(): ExternalCatalog = new HiveExternalCatalog(client)
4545
}
4646

4747
protected override def resetState(): Unit = client.reset()

0 commit comments

Comments
 (0)