Github user chenghao-intel commented on a diff in the pull request:

    https://github.com/apache/spark/pull/7696#discussion_r36157314
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/rules.scala 
---
    @@ -115,6 +116,17 @@ private[sql] case class PreWriteCheck(catalog: 
Catalog) extends (LogicalPlan =>
               // OK
             }
     
    +        // Get all input data source relations of the query.
    +        val srcRelations = query.collect {
    --- End diff --
    
    Actually we can do that in another PR, as will check if the the overwritten 
table is the same as the source table for the `HadoopFsRelation` based data 
source.
    
    This actually will break the json unit test if we don't change the code in 
this PR.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to