Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix
  • Loading branch information
gatorsmile committed Sep 29, 2017
commit cfa078260964b3baf782d9cdab3e967f5243ba10
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ object SessionCatalog {
/**
* An internal catalog that is used by a Spark Session. This internal catalog serves as a
* proxy to the underlying metastore (e.g. Hive Metastore) and it also manages temporary
* tables and functions of the Spark Session that it belongs to.
* views and functions of the Spark Session that it belongs to.
*
* This class must be thread-safe.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@ abstract class DDLSuite extends QueryTest with SQLTestUtils {
checkAnswer(spark.table("teachers"), df)
}

test("rename temporary table - destination table with database name") {
test("rename temporary view - destination table with database name") {
withTempView("tab1") {
sql(
"""
Expand All @@ -820,7 +820,7 @@ abstract class DDLSuite extends QueryTest with SQLTestUtils {
}
}

test("rename temporary table") {
test("rename temporary view") {
withTempView("tab1", "tab2") {
spark.range(10).createOrReplaceTempView("tab1")
sql("ALTER TABLE tab1 RENAME TO tab2")
Expand All @@ -832,7 +832,7 @@ abstract class DDLSuite extends QueryTest with SQLTestUtils {
}
}

test("rename temporary table - destination table already exists") {
test("rename temporary view - destination table already exists") {
withTempView("tab1", "tab2") {
sql(
"""
Expand Down