bryanck commented on code in PR #13979:
URL: https://github.com/apache/iceberg/pull/13979#discussion_r2927390420
##########
spark/v4.1/spark-extensions/src/main/scala/org/apache/spark/sql/catalyst/analysis/ResolveViews.scala:
##########
@@ -62,6 +68,48 @@ case class ResolveViews(spark: SparkSession) extends
Rule[LogicalPlan] with Look
.map(_ => ResolvedV2View(catalog.asViewCatalog, ident))
.getOrElse(u)
+ case u @ UnResolvedRelationFromView(
+ tableParts @ CatalogAndIdentifier(catalog, tableIdent),
+ viewChain,
+ options,
+ isStreaming) =>
+ // Build List<TableIdentifier> from the view chain.
+ // Each chain element is [catalog, ns1, ns2, ..., viewName] — skip the
catalog (first element)
+ // since TableIdentifier only contains namespace + name.
+ val viewIdentifiers = viewChain.map { parts =>
Review Comment:
This logic might need to be updated also if you update the view chain in
`createViewRelation()`
--
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]