Skip to content
Closed
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
modify style
  • Loading branch information
baishuo committed Jun 25, 2015
commit c09cb9fdd153db01132159dd6b83a4c08b596692
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,15 @@ case class DropTable(
val databaseName = dbAndTableName
.lift(dbAndTableName.size -2)
.getOrElse(hiveContext.catalog.client.currentDatabase)
//tempDbname is used to pass the test "drop_partitions_filter"
//when we set hive.exec.drop.ignorenonexistent=false and run "drop table dbname.tablename"
//Hive will throws out Exception (This is a bug of Hive)
// tempDbname is used to pass the test "drop_partitions_filter"
// when we set hive.exec.drop.ignorenonexistent=false and run "drop table dbname.tablename"
// Hive will throws out Exception (This is a bug of Hive)
val tempDbname =
if (hiveContext.hiveconf.getBoolVar(HiveConf.ConfVars.DROPIGNORESNONEXISTENT))
s"$databaseName."else ""
if (hiveContext.hiveconf.getBoolVar(HiveConf.ConfVars.DROPIGNORESNONEXISTENT)) {
s"$databaseName."
} else {
""
}
try {
hiveContext.cacheManager.tryUncacheQuery(hiveContext.table(dbAndTableName.last))
} catch {
Expand Down