You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/10/07 16:51:48 UTC

[GitHub] [spark] huaxingao commented on a change in pull request #25895: [SPARK-28816][DOC][SQL] Document ADD JAR statement in SQL Reference

huaxingao commented on a change in pull request #25895: [SPARK-28816][DOC][SQL] Document ADD JAR statement in SQL Reference
URL: https://github.com/apache/spark/pull/25895#discussion_r332126746
 
 

 ##########
 File path: docs/sql-ref-syntax-aux-resource-mgmt-add-file.md
 ##########
 @@ -19,4 +19,32 @@ license: |
   limitations under the License.
 ---
 
-**This page is under construction**
+### Description
+`ADD FILE` adds a file, JAR or archive to the list of resources. The added file can be listed using [LIST FILE](sql-ref-syntax-aux-resource-mgmt-list-file.html).
+
+### Syntax
+{% highlight sql %}
+ADD FILE file_name
+{% endhighlight %}
+
+### Parameters
+<dl>
+ <dt><code><em>file_name</em></code></dt>
+ <dd>The name of the file, JAR or archive to be added.</dd>
+</dl>
+
+### Examples
+{% highlight sql %}
+ add FILE /tmp/test1.jar;
 
 Review comment:
   Right. Adding a JAR file as a 'file' won't be on the classpath. 
   I will modify the PR to make it only show ```add JAR``` for JARs and ```add FILE``` for files. Thanks!

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

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