[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.
This commit is contained in:
parent
004e29cba5
commit
9674af6f6f
|
@ -869,8 +869,8 @@ spark.catalog().refreshTable("my_table");
|
||||||
<div data-lang="python" markdown="1">
|
<div data-lang="python" markdown="1">
|
||||||
|
|
||||||
{% highlight python %}
|
{% highlight python %}
|
||||||
# spark is an existing HiveContext
|
# spark is an existing SparkSession
|
||||||
spark.refreshTable("my_table")
|
spark.catalog.refreshTable("my_table")
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue