Skip to content

Commit db311fd

Browse files
committed
minor cleanup
1 parent 5d8422d commit db311fd

File tree

1 file changed

+1
-3
lines changed
  • sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis

1 file changed

+1
-3
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -748,8 +748,6 @@ class Analyzer(
748748
* [[ResolveRelations]] still resolves v1 tables.
749749
*/
750750
object ResolveTables extends Rule[LogicalPlan] {
751-
import org.apache.spark.sql.connector.catalog.CatalogV2Implicits._
752-
753751
def apply(plan: LogicalPlan): LogicalPlan = ResolveTempViews(plan).resolveOperatorsUp {
754752
case u: UnresolvedRelation =>
755753
lookupV2Relation(u.multipartIdentifier)
@@ -780,7 +778,7 @@ class Analyzer(
780778
}
781779
if (maybeTempView.isDefined) {
782780
throw new AnalysisException(
783-
s"A temp view '${unresolved.originalNameParts.quoted}' cannot be handled by V2 commands.")
781+
s"A temp view '${unresolved.originalNameParts.head}' cannot be handled by V2 commands.")
784782
}
785783

786784
CatalogV2Util.loadRelation(unresolved.catalog, unresolved.tableName)

0 commit comments

Comments
 (0)