Github user brandonJY commented on a diff in the pull request: https://github.com/apache/spark/pull/20325#discussion_r162837134 --- Diff: docs/sql-programming-guide.md --- @@ -580,6 +580,9 @@ default local Hive metastore (using Derby) for you. Unlike the `createOrReplaceT Hive metastore. Persistent tables will still exist even after your Spark program has restarted, as long as you maintain your connection to the same metastore. A DataFrame for a persistent table can be created by calling the `table` method on a `SparkSession` with the name of the table. +Notice that for `DataFrames` is built on Hive table, `insertInto` should be used instead of `saveAsTable`. --- End diff -- Ah, I see. In that case, I don't see the necessary to mention `insertInto` in this doc any more. I am closing this PR. Feel free to reopen it if necessary. I would also suggest to mark https://issues.apache.org/jira/browse/SPARK-22808 as reolvsed and linked it to https://issues.apache.org/jira/browse/SPARK-19152
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org