Skip to content

Commit 4c9847d

Browse files
committed
Resorts to SQL for Python metadata refreshing snippet
1 parent 756e660 commit 4c9847d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/sql-programming-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1040,7 +1040,7 @@ for (teenName in collect(teenNames)) {
10401040

10411041
{% highlight python %}
10421042
# sqlContext is an existing HiveContext
1043-
sqlContext.refreshTable("my_table")
1043+
sqlContext.sql("REFRESH TABLE my_table")
10441044
{% endhighlight %}
10451045

10461046
</div>

0 commit comments

Comments
 (0)