nastra commented on code in PR #9343:
URL: https://github.com/apache/iceberg/pull/9343#discussion_r1442615912
##########
spark/v3.5/spark-extensions/src/main/scala/org/apache/spark/sql/catalyst/analysis/ResolveViews.scala:
##########
@@ -53,6 +57,17 @@ case class ResolveViews(spark: SparkSession) extends
Rule[LogicalPlan] with Look
loadView(catalog, ident)
.map(createViewRelation(parts, _))
.getOrElse(u)
+
+ case u@UnresolvedTableOrView(CatalogAndIdentifier(catalog, ident), _, _) =>
+ loadView(catalog, ident)
+ .map(_ => ResolvedV2View(catalog.asViewCatalog, ident))
+ .getOrElse(u)
+
+ case RenameTable(ResolvedV2View(oldCatalog, oldIdent),
CatalogAndIdentifier(newCatalog, newIdent), true) =>
Review Comment:
I added this to `isView@true` so that it's clearer. I checked the Spark code
and the `to` identifier isn't resolved anywhere and just passed as-is when
doing a rename
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]