cloud-fan commented on a change in pull request #25774: [SPARK-29069][SQL] 
ResolveInsertInto should not do table lookup
URL: https://github.com/apache/spark/pull/25774#discussion_r323770221
 
 

 ##########
 File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala
 ##########
 @@ -671,6 +671,15 @@ class Analyzer(
           case scala.Right(tableOpt) => tableOpt
         }
         v2TableOpt.map(DataSourceV2Relation.create).getOrElse(u)
+
+      case i @ InsertIntoStatement(u: UnresolvedRelation, _, _, _, _) if 
i.query.resolved =>
 
 Review comment:
   simpler to `ResolveRelations`, `ResolveTables` should handle both 
`UnresolvedRelation` and `InsertIntoStatement(UnresolvedRelation, ...)`.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to