srowen commented on a change in pull request #27023: [SPARK-30363][SQL][DOC]Add 
Documentation for refresh resources.
URL: https://github.com/apache/spark/pull/27023#discussion_r361676567
 
 

 ##########
 File path: docs/sql-ref-syntax-aux-resource-mgmt-refresh.md
 ##########
 @@ -0,0 +1,49 @@
+---
+layout: global
+title: REFRESH
+displayTitle: REFRESH
+license: |
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+ 
+     http://www.apache.org/licenses/LICENSE-2.0
+ 
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+---
+
+### Description
+`REFRESH` is used to invalidate and refresh all the cached data (and the 
associated metadata) for
+all Dataset, that contains the given data source path. Path matching is by 
prefix, i.e. "/" would 
+invalidate everything that is cached.
+
+### Syntax
+{% highlight sql %}
+REFRESH resource_name
+{% endhighlight %}
+
+### Parameters
+<dl>
+ <dt><code><em>resource_name</em></code></dt>
+ <dd>The path of the resource that is to be refreshed.</dd>
+</dl>
+
+### Examples
+{% highlight sql %}
+REFRESH /tmp/test.jar;
 
 Review comment:
   Pardon, I just don't know the semantics well, but how does refreshing a JAR 
file relate to invalidating data associated with a Dataset?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to