aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReynold Xin <rxin@databricks.com>2016-07-05 12:06:41 -0700
committerReynold Xin <rxin@databricks.com>2016-07-05 12:06:41 -0700
commit5b7a1770ac9cf36a1e92b31d10fe6eeee92fef17 (patch)
tree0dd0eea34812274539a31dfa552cf60fef53c349
parent1fca9da95dc9b9aaf9ae75fd7456378861d8b409 (diff)
downloadspark-5b7a1770ac9cf36a1e92b31d10fe6eeee92fef17.tar.gz
spark-5b7a1770ac9cf36a1e92b31d10fe6eeee92fef17.tar.bz2
spark-5b7a1770ac9cf36a1e92b31d10fe6eeee92fef17.zip
[HOTFIX] Fix build break.
-rw-r--r--sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/InsertIntoHiveTable.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/InsertIntoHiveTable.scala b/sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/InsertIntoHiveTable.scala
index 529d388716..3d58d490a5 100644
--- a/sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/InsertIntoHiveTable.scala
+++ b/sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/InsertIntoHiveTable.scala
@@ -298,7 +298,7 @@ case class InsertIntoHiveTable(
// Invalidate the cache.
sqlContext.sharedState.cacheManager.invalidateCache(table)
- sqlContext.sessionState.catalog.invalidateTable(table.catalogTable.identifier)
+ sqlContext.sessionState.catalog.refreshTable(table.catalogTable.identifier)
// It would be nice to just return the childRdd unchanged so insert operations could be chained,
// however for now we return an empty list to simplify compatibility checks with hive, which