You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by gu...@apache.org on 2020/10/20 01:34:54 UTC

[spark] branch branch-3.0 updated: [SPARK-33181][SQL][DOCS] Document Load Table Directly from File in SQL Select Reference

This is an automated email from the ASF dual-hosted git repository.

gurwls223 pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/branch-3.0 by this push:
     new c3af7c6  [SPARK-33181][SQL][DOCS] Document Load Table Directly from File in SQL Select Reference
c3af7c6 is described below

commit c3af7c6e66e4385c57ae38839653804bf6e3b1c1
Author: liaoaoyuan97 <al...@columbia.edu>
AuthorDate: Tue Oct 20 10:23:58 2020 +0900

    [SPARK-33181][SQL][DOCS] Document Load Table Directly from File in SQL Select Reference
    
    ### What changes were proposed in this pull request?
    
    Add the link to the feature: "Run SQL on files directly" to SQL reference documentation page
    
    ### Why are the changes needed?
    
    To make SQL Reference complete
    
    ### Does this PR introduce _any_ user-facing change?
    
    yes. Previously, reading in sql from file directly is not included in the documentation: https://spark.apache.org/docs/latest/sql-ref-syntax-qry-select.html, not listed in from_items. The new link is added to the select statement documentation, like the below:
    
    ![image](https://user-images.githubusercontent.com/16770242/96517999-c34f3900-121e-11eb-8d56-c4ba0432855e.png)
    ![image](https://user-images.githubusercontent.com/16770242/96518808-8126f700-1220-11eb-8c98-fb398eee0330.png)
    
    ### How was this patch tested?
    
    Manually built and tested
    
    Closes #30095 from liaoaoyuan97/master.
    
    Authored-by: liaoaoyuan97 <al...@columbia.edu>
    Signed-off-by: HyukjinKwon <gu...@apache.org>
    (cherry picked from commit f65a24412b6691ecdb4254e70d6e7abc846edb66)
    Signed-off-by: HyukjinKwon <gu...@apache.org>
---
 docs/sql-ref-syntax-qry-select.md | 1 +
 1 file changed, 1 insertion(+)

diff --git a/docs/sql-ref-syntax-qry-select.md b/docs/sql-ref-syntax-qry-select.md
index 453737a..655766d 100644
--- a/docs/sql-ref-syntax-qry-select.md
+++ b/docs/sql-ref-syntax-qry-select.md
@@ -85,6 +85,7 @@ SELECT [ hints , ... ] [ ALL | DISTINCT ] { named_expression [ , ... ] }
      * [Table-value function](sql-ref-syntax-qry-select-tvf.html)
      * [Inline table](sql-ref-syntax-qry-select-inline-table.html)
      * Subquery
+     * [File](sql-data-sources-load-save-functions.html#run-sql-on-files-directly)
      
 * **PIVOT**
 


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