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 e0f919b commit c1ed29dCopy full SHA for c1ed29d
sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveMetastoreCatalog.scala
@@ -450,12 +450,12 @@ private[hive] class HiveMetastoreCatalog(hive: HiveContext) extends Catalog with
450
// Replaces all `MetastoreRelation`s with corresponding `ParquetRelation2`s, and fixes
451
// attribute IDs referenced in other nodes.
452
plan.transformUp {
453
- case r: MetastoreRelation => {
+ case r: MetastoreRelation if relationMap.contains(r) => {
454
val parquetRelation = relationMap(r)
455
val withAlias =
456
r.alias.map(a => Subquery(a, parquetRelation)).getOrElse(
457
Subquery(r.tableName, parquetRelation))
458
-
+
459
withAlias
460
}
461
case other => other.transformExpressions {
0 commit comments