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 8d910aa commit a277120Copy full SHA for a277120
sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveMetastoreCatalog.scala
@@ -428,11 +428,11 @@ private[hive] case class MetastoreRelation
428
}
429
)
430
override def sameResult(plan: LogicalPlan): Boolean = {
431
- val new_plan = plan.asInstanceOf[MetastoreRelation];
432
- plan.getClass == this.getClass &&
433
- plan.children.size == children.size &&
434
- databaseName == new_plan.databaseName &&
435
- tableName == new_plan.tableName
+ plan match {
+ case mr: MetastoreRelation =>
+ mr.databaseName == databaseName && mr.tableName == tableName
+ case _ => false
+ }
436
437
438
val tableDesc = HiveShim.getTableDesc(
0 commit comments