Repository: spark Updated Branches: refs/heads/branch-2.0 307f8922b -> f58fd4620
[SPARK-16568][SQL][DOCUMENTATION] update sql programming guide refreshTable API in python code ## What changes were proposed in this pull request? update `refreshTable` API in python code of the sql-programming-guide. This API is added in SPARK-15820 ## How was this patch tested? N/A Author: WeichenXu <weichenxu...@outlook.com> Closes #14220 from WeichenXu123/update_sql_doc_catalog. (cherry picked from commit 9674af6f6f81066139ea675de724f951bd0d49c9) Signed-off-by: Reynold Xin <r...@databricks.com> Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/f58fd462 Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/f58fd462 Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/f58fd462 Branch: refs/heads/branch-2.0 Commit: f58fd4620f703fba0c8be0724c0150b08e984a2b Parents: 307f892 Author: WeichenXu <weichenxu...@outlook.com> Authored: Tue Jul 19 18:48:41 2016 -0700 Committer: Reynold Xin <r...@databricks.com> Committed: Tue Jul 19 18:48:49 2016 -0700 ---------------------------------------------------------------------- docs/sql-programming-guide.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/f58fd462/docs/sql-programming-guide.md ---------------------------------------------------------------------- diff --git a/docs/sql-programming-guide.md b/docs/sql-programming-guide.md index a88efb7..8d92a43 100644 --- a/docs/sql-programming-guide.md +++ b/docs/sql-programming-guide.md @@ -869,8 +869,8 @@ spark.catalog().refreshTable("my_table"); <div data-lang="python" markdown="1"> {% highlight python %} -# spark is an existing HiveContext -spark.refreshTable("my_table") +# spark is an existing SparkSession +spark.catalog.refreshTable("my_table") {% endhighlight %} </div> --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org For additional commands, e-mail: commits-h...@spark.apache.org