aboutsummaryrefslogtreecommitdiff
path: root/sql/hive/src/test/java
diff options
context:
space:
mode:
authorReynold Xin <rxin@databricks.com>2016-03-15 10:12:32 -0700
committerReynold Xin <rxin@databricks.com>2016-03-15 10:12:32 -0700
commit5e6f2f45639f727cba43967858eb95b865ed81fa (patch)
tree07d6c86cbe877110adb5f88500e43fb64218519a /sql/hive/src/test/java
parent48978abfa4d8f2cf79a4b053cc8bc7254cc2d61b (diff)
downloadspark-5e6f2f45639f727cba43967858eb95b865ed81fa.tar.gz
spark-5e6f2f45639f727cba43967858eb95b865ed81fa.tar.bz2
spark-5e6f2f45639f727cba43967858eb95b865ed81fa.zip
[SPARK-13893][SQL] Remove SQLContext.catalog/analyzer (internal method)
## What changes were proposed in this pull request? Our internal code can go through SessionState.catalog and SessionState.analyzer. This brings two small benefits: 1. Reduces internal dependency on SQLContext. 2. Removes 2 public methods in Java (Java does not obey package private visibility). More importantly, according to the design in SPARK-13485, we'd need to claim this catalog function for the user-facing public functions, rather than having an internal field. ## How was this patch tested? Existing unit/integration test code. Author: Reynold Xin <rxin@databricks.com> Closes #11716 from rxin/SPARK-13893.
Diffstat (limited to 'sql/hive/src/test/java')
-rw-r--r--sql/hive/src/test/java/org/apache/spark/sql/hive/JavaMetastoreDataSourcesSuite.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/hive/src/test/java/org/apache/spark/sql/hive/JavaMetastoreDataSourcesSuite.java b/sql/hive/src/test/java/org/apache/spark/sql/hive/JavaMetastoreDataSourcesSuite.java
index e9356541c2..bd14a243ea 100644
--- a/sql/hive/src/test/java/org/apache/spark/sql/hive/JavaMetastoreDataSourcesSuite.java
+++ b/sql/hive/src/test/java/org/apache/spark/sql/hive/JavaMetastoreDataSourcesSuite.java
@@ -70,7 +70,7 @@ public class JavaMetastoreDataSourcesSuite {
if (path.exists()) {
path.delete();
}
- hiveManagedPath = new Path(sqlContext.catalog().hiveDefaultTableFilePath(
+ hiveManagedPath = new Path(sqlContext.sessionState().catalog().hiveDefaultTableFilePath(
new TableIdentifier("javaSavedTable")));
fs = hiveManagedPath.getFileSystem(sc.hadoopConfiguration());
if (fs.exists(hiveManagedPath)){