aokolnychyi commented on code in PR #59119:
URL: https://github.com/apache/spark/pull/59119#discussion_r4136590660


##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/RelationResolution.scala:
##########
@@ -514,7 +511,9 @@ class RelationResolution(
   }
 
   def resolveReference(ref: V2TableReference): LogicalPlan = {

Review Comment:
   Then `V2TableReference` object becomes `V2Reference`:
   
   ```
     private def create(relation: DataSourceV2Relation, context: Context): 
V2Reference = {
       val catalog = relation.catalog.get.asTableCatalog
       val identifier = relation.identifier.get
       val ref = relation.table match {
         case changelog: ChangelogTable =>
           V2ChangelogReference(catalog, identifier, relation.options, 
changelog,
             relation.output, context)
         case _ =>
           V2TableReference(catalog, identifier, relation.options,
             V2TableReference.TableInfo(
               tableId = Option(relation.table.id),
               columns = relation.table.columns.toImmutableArraySeq,
               metadataColumns = V2TableUtil.extractMetadataColumns(relation)),
             relation.output, context)
       }
       ref.copyTagsFrom(relation)
       ref
     }
   ```



-- 
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]

Reply via email to