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
remove no use comment
  • Loading branch information
baishuo committed Jun 13, 2015
commit 9e155f9b2ca51a13a3ac8e35498d2144c729f42d
Original file line number Diff line number Diff line change
Expand Up @@ -272,12 +272,10 @@ class HiveContext(sc: SparkContext) extends SQLContext(sc) {
* @since 1.3.0
*/
def refreshTable(tableName: String): Unit = {
// TODO: Database support...
catalog.refreshTable(catalog.client.currentDatabase, tableName)
}

protected[hive] def invalidateTable(tableName: String): Unit = {
// TODO: Database support...
catalog.invalidateTable(catalog.client.currentDatabase, tableName)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -837,17 +837,17 @@ class MetastoreDataSourcesSuite extends QueryTest with SQLTestUtils with BeforeA
test("SPARK-8156:create table to specific database by 'use dbname' ") {

val df = (1 to 3).map(i => (i, s"val_$i", i * 2)).toDF("a", "b", "c")
sqlContext.sql("""create database if not exists testdb8516""")
sqlContext.sql("""use testdb8516""")
sqlContext.sql("""create database if not exists testdb8156""")
sqlContext.sql("""use testdb8156""")
df.write
.format("parquet")
.mode(SaveMode.Overwrite)
.saveAsTable("ttt3")

checkAnswer(
sqlContext.sql("show TABLES in testdb8516").filter("tableName = 'ttt3'"),
sqlContext.sql("show TABLES in testdb8156").filter("tableName = 'ttt3'"),
Row("ttt3", false))
sqlContext.sql("""use default""")
sqlContext.sql("""drop database if exists testdb8516 CASCADE""")
sqlContext.sql("""drop database if exists testdb8156 CASCADE""")
}
}