From 9674af6f6f81066139ea675de724f951bd0d49c9 Mon Sep 17 00:00:00 2001 From: WeichenXu <WeichenXu123@outlook.com> Date: Tue, 19 Jul 2016 18:48:41 -0700 Subject: [PATCH] [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 <WeichenXu123@outlook.com> Closes #14220 from WeichenXu123/update_sql_doc_catalog. --- docs/sql-programming-guide.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/sql-programming-guide.md b/docs/sql-programming-guide.md index 71f3ee40a3..3af935a952 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> -- GitLab