From f65a24412b6691ecdb4254e70d6e7abc846edb66 Mon Sep 17 00:00:00 2001 From: liaoaoyuan97 Date: Tue, 20 Oct 2020 10:23:58 +0900 Subject: [PATCH] [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 Signed-off-by: HyukjinKwon --- 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 453737a2f3..655766d4c6 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**