We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7667030 commit 59c884fCopy full SHA for 59c884f
sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveContext.scala
@@ -181,7 +181,9 @@ class HiveContext(sc: SparkContext) extends SQLContext(sc) {
181
val tableFullName =
182
relation.hiveQlTable.getDbName + "." + relation.hiveQlTable.getTableName
183
184
- catalog.client.alterTable(tableFullName, new Table(hiveTTable))
+ catalog.synchronized {
185
+ catalog.client.alterTable(tableFullName, new Table(hiveTTable))
186
+ }
187
}
188
case otherRelation =>
189
throw new NotImplementedError(
0 commit comments