Skip to content

Commit c400c52

Browse files
committed
fix
1 parent 664d6f1 commit c400c52

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/AnalysisException.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,5 @@ class AnalysisException protected[sql] (
4949
}
5050
}
5151

52-
class SQLFeatureNotSupportedException(feature: String)
52+
class SQLFeatureNotSupportedException(val feature: String)
5353
extends AnalysisException(s"$feature is not supported.")

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/catalog/SessionCatalog.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ class SessionCatalog(
455455
try {
456456
externalCatalog.tableExists(db, table)
457457
} catch {
458-
case _: SQLFeatureNotSupportedException => true
458+
case e: SQLFeatureNotSupportedException if e.feature == "Hive index table" => true
459459
}
460460
}
461461
}

0 commit comments

Comments
 (0)