GitHub user wangyum opened a pull request:

    https://github.com/apache/spark/pull/22721

    [SPARK-25403][SQL] Refreshes the table after inserting the table

    ## What changes were proposed in this pull request?
    Refreshes the table after inserting the table, Otherwise, we will encounter 
inconsistency, such as mentioned in `SPARK-25403`.
    In fact, the `InsertIntoHiveTable` refreshes the table after inserting the 
table:
    
https://github.com/apache/spark/blob/f8b4d5aafd1923d9524415601469f8749b3d0811/sql/hive/src/main/scala/org/apache/spark/sql/hive/execution/InsertIntoHiveTable.scala#L107-L108
    
    ## How was this patch tested?
    
    unit tests


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/wangyum/spark SPARK-25403

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/22721.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #22721
    
----
commit 8a7f4af6b0e02c772f950c9a61e17eec5b988ef2
Author: Yuming Wang <yumwang@...>
Date:   2018-10-15T05:09:58Z

    Refresh table after insert into table

----


---

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

Reply via email to