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

    https://github.com/apache/spark/pull/8023#discussion_r37259065
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/InsertIntoHadoopFsRelation.scala
 ---
    @@ -160,6 +160,9 @@ private[sql] case class InsertIntoHadoopFsRelation(
           logInfo("Skipping insertion into a relation that already exists.")
         }
     
    +    // Invalidate the cache.
    --- End diff --
    
    @yhuai We need to refresh the `relation` to get the latest file status 
right here, however, we couldn't find the correct relation from `catalog`, 
probably we need to provide a API for `catalog`, which support get the relation 
by `data path`.
    
    And even user refresh the file status explicitly, I don't think we have 
correct API for that, do we?


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