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/08/31 20:34:07 UTC

[GitHub] [spark] dilipbiswal commented on a change in pull request #25522: [SPARK-28787][DOC][SQL]Document LOAD DATA statement in SQL Reference

dilipbiswal commented on a change in pull request #25522: [SPARK-28787][DOC][SQL]Document LOAD DATA statement in SQL Reference
URL: https://github.com/apache/spark/pull/25522#discussion_r319735632
 
 

 ##########
 File path: docs/sql-ref-syntax-dml-load.md
 ##########
 @@ -19,4 +19,63 @@ license: |
   limitations under the License.
 ---
 
-**This page is under construction**
+### Description
+`LOAD DATA` loads data from a directoy or a file into a table or into a partition in the table. A partition spec should be specified whenever the target table is partitioned. The `LOAD DATA` statement can only be used with tables created using the Hive format.
 
 Review comment:
   @huaxingao What if we say it this way  ? Please feel free to change it the way you see fit.
   
   LOAD DATA statement loads the data into a table from the user specified directory or file. If a directory is specified then all the files from the directory are loaded. If a file is specified then only the single file is loaded. Additionally the `LOAD` statement takes an optional partition specication. When a `partiion-spec` is specified, the data files (when input source is a directory) or the single file (when input source is a file) are loaded into the target table.
   

----------------------------------------------------------------
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