Github user felixcheung commented on a diff in the pull request:

    https://github.com/apache/spark/pull/22721#discussion_r225418234
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/InsertIntoHadoopFsRelationCommand.scala
 ---
    @@ -189,6 +189,7 @@ case class InsertIntoHadoopFsRelationCommand(
           sparkSession.catalog.refreshByPath(outputPath.toString)
     
           if (catalogTable.nonEmpty) {
    +        
sparkSession.catalog.refreshTable(catalogTable.get.identifier.quotedString)
    --- End diff --
    
    btw, I thought the cost of refreshing the table can be quite high?


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to