Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/_data/menu-sql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@
url: sql-ref-syntax-ddl-truncate-table.html
- text: REPAIR TABLE
url: sql-ref-syntax-ddl-repair-table.html
- text: USE DATABASE
url: sql-ref-syntax-qry-select-usedb.html
- text: Data Manipulation Statements
url: sql-ref-syntax-dml.html
subitems:
Expand Down Expand Up @@ -152,8 +154,6 @@
url: sql-ref-syntax-qry-select-distribute-by.html
- text: LIMIT Clause
url: sql-ref-syntax-qry-select-limit.html
- text: USE database
url: sql-ref-syntax-qry-select-usedb.html
- text: EXPLAIN
url: sql-ref-syntax-qry-explain.html
- text: Auxiliary Statements
Expand Down
1 change: 1 addition & 0 deletions docs/sql-ref-syntax-ddl.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,4 @@ Data Definition Statements are used to create or modify the structure of databas
- [DROP VIEW](sql-ref-syntax-ddl-drop-view.html)
- [TRUNCATE TABLE](sql-ref-syntax-ddl-truncate-table.html)
- [REPAIR TABLE](sql-ref-syntax-ddl-repair-table.html)
- [USE DATABASE](sql-ref-syntax-qry-select-usedb.html)
62 changes: 61 additions & 1 deletion docs/sql-ref-syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,64 @@ license: |
limitations under the License.
---

Spark SQL is Apache Spark's module for working with structured data. The SQL Syntax section describes the SQL syntax in detail along with usage examples when applicable.
Spark SQL is Apache Spark's module for working with structured data. The SQL Syntax section describes the SQL syntax in detail along with usage examples when applicable. This document provides a list of Data Definition and Data Manipulation Statements, as well as Data Retrieval and Auxiliary Statements.

### DDL Statements
- [ALTER DATABASE](sql-ref-syntax-ddl-alter-database.html)
- [ALTER TABLE](sql-ref-syntax-ddl-alter-table.html)
- [ALTER VIEW](sql-ref-syntax-ddl-alter-view.html)
- [CREATE DATABASE](sql-ref-syntax-ddl-create-database.html)
- [CREATE FUNCTION](sql-ref-syntax-ddl-create-function.html)
- [CREATE TABLE](sql-ref-syntax-ddl-create-table.html)
- [CREATE VIEW](sql-ref-syntax-ddl-create-view.html)
- [DROP DATABASE](sql-ref-syntax-ddl-drop-database.html)
- [DROP FUNCTION](sql-ref-syntax-ddl-drop-function.html)
- [DROP TABLE](sql-ref-syntax-ddl-drop-table.html)
- [DROP VIEW](sql-ref-syntax-ddl-drop-view.html)
- [REPAIR TABLE](sql-ref-syntax-ddl-repair-table.html)
- [TRUNCATE TABLE](sql-ref-syntax-ddl-truncate-table.html)
- [USE DATABASE](sql-ref-syntax-qry-select-usedb.html)

### DML Statements
- [INSERT INTO](sql-ref-syntax-dml-insert-into.html)
- [INSERT OVERWRITE](sql-ref-syntax-dml-insert-overwrite-table.html)
- [INSERT OVERWRITE DIRECTORY](sql-ref-syntax-dml-insert-overwrite-directory.html)
- [INSERT OVERWRITE DIRECTORY with Hive format](sql-ref-syntax-dml-insert-overwrite-directory-hive.html)
- [LOAD](sql-ref-syntax-dml-load.html)

### Data Retrieval Statements
- [CLUSTER BY Clause](sql-ref-syntax-qry-select-clusterby.html)
- [DISTRIBUTE BY Clause](sql-ref-syntax-qry-select-distribute-by.html)
- [EXPLAIN](sql-ref-syntax-qry-explain.html)
- [GROUP BY Clause](sql-ref-syntax-qry-select-groupby.html)
- [HAVING Clause](sql-ref-syntax-qry-select-having.html)
- [LIMIT Clause](sql-ref-syntax-qry-select-limit.html)
- [ORDER BY Clause](sql-ref-syntax-qry-select-orderby.html)
- [SORT BY Clause](sql-ref-syntax-qry-select-sortby.html)
- [WHERE Clause](sql-ref-syntax-qry-select-where.html)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need these links to the sub-categoris of SELECT? Just linking to sql-ref-syntax-qry-select.md here is not enough?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your comment. I want to list all the sql statements on one page, so I prefer to have all the links here.


### Auxiliary Statements
- [ADD FILE](sql-ref-syntax-aux-resource-mgmt-add-file.html)
- [ADD JAR](sql-ref-syntax-aux-resource-mgmt-add-jar.html)
- [ANALYZE TABLE](sql-ref-syntax-aux-analyze-table.html)
- [CACHE TABLE](sql-ref-syntax-aux-cache-cache-table.html)
- [CLEAR CACHE](sql-ref-syntax-aux-cache-clear-cache.html)
- [DESCRIBE DATABASE](sql-ref-syntax-aux-describe-database.html)
- [DESCRIBE FUNCTION](sql-ref-syntax-aux-describe-function.html)
- [DESCRIBE QUERY](sql-ref-syntax-aux-describe-query.html)
- [DESCRIBE TABLE](sql-ref-syntax-aux-describe-table.html)
- [LIST FILE](sql-ref-syntax-aux-resource-mgmt-list-file.html)
- [LIST JAR](sql-ref-syntax-aux-resource-mgmt-list-jar.html)
- [REFRESH](sql-ref-syntax-aux-cache-refresh.html)
- [REFRESH TABLE](sql-ref-syntax-aux-refresh-table.html)
- [SET](sql-ref-syntax-aux-conf-mgmt-set.html)
- [SHOW COLUMNS](sql-ref-syntax-aux-show-columns.html)
- [SHOW CREATE TABLE](sql-ref-syntax-aux-show-create-table.html)
- [SHOW DATABASES](sql-ref-syntax-aux-show-databases.html)
- [SHOW FUNCTIONS](sql-ref-syntax-aux-show-functions.html)
- [SHOW PARTITIONS](sql-ref-syntax-aux-show-partitions.html)
- [SHOW TABLE EXTENDED](sql-ref-syntax-aux-show-table.html)
- [SHOW TABLES](sql-ref-syntax-aux-show-tables.html)
- [SHOW TBLPROPERTIES](sql-ref-syntax-aux-show-tblproperties.html)
- [UNCACHE TABLE](sql-ref-syntax-aux-cache-uncache-table.html)
- [UNSET](sql-ref-syntax-aux-conf-mgmt-reset.html)