Skip to content

Commit

Permalink
[SPARK-32171][SQL][DOCS] Change file locations for use db and refresh…
Browse files Browse the repository at this point in the history
… table

### What changes were proposed in this pull request?

docs/sql-ref-syntax-qry-select-usedb.md -> docs/sql-ref-syntax-ddl-usedb.md
docs/sql-ref-syntax-aux-refresh-table.md -> docs/sql-ref-syntax-aux-cache-refresh-table.md

### Why are the changes needed?
usedb belongs to DDL. Its location should be consistent with other DDL commands file locations
similar reason for refresh table

### Does this PR introduce _any_ user-facing change?
before change, when clicking USE DATABASE, the side bar menu shows select commands
<img width="1200" alt="Screen Shot 2020-07-04 at 9 05 35 AM" src="https://user-images.githubusercontent.com/13592258/86516696-b45f8a80-bdd7-11ea-8dba-3a5cca22aad3.png">

after change, when clicking USE DATABASE, the side bar menu shows DDL commands
<img width="1120" alt="Screen Shot 2020-07-04 at 9 06 06 AM" src="https://user-images.githubusercontent.com/13592258/86516703-bf1a1f80-bdd7-11ea-8a90-ae7eaaafd44c.png">

before change, when clicking refresh table, the side bar menu shows Auxiliary statements
<img width="1200" alt="Screen Shot 2020-07-04 at 9 30 40 AM" src="https://user-images.githubusercontent.com/13592258/86516877-3d2af600-bdd9-11ea-9568-0a6f156f57da.png">

after change, when clicking refresh table, the side bar menu shows Cache statements
<img width="1199" alt="Screen Shot 2020-07-04 at 9 35 21 AM" src="https://user-images.githubusercontent.com/13592258/86516937-b4f92080-bdd9-11ea-8ad1-5f5a7f58d76b.png">

### How was this patch tested?
Manually build and check

Closes apache#28995 from huaxingao/docs_fix.

Authored-by: Huaxin Gao <[email protected]>
Signed-off-by: Huaxin Gao <[email protected]>
  • Loading branch information
huaxingao committed Jul 5, 2020
1 parent 42f01e3 commit 492d5d1
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions docs/_data/menu-sql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
- text: REPAIR TABLE
url: sql-ref-syntax-ddl-repair-table.html
- text: USE DATABASE
url: sql-ref-syntax-qry-select-usedb.html
url: sql-ref-syntax-ddl-usedb.html
- text: Data Manipulation Statements
url: sql-ref-syntax-dml.html
subitems:
Expand Down Expand Up @@ -207,7 +207,7 @@
- text: CLEAR CACHE
url: sql-ref-syntax-aux-cache-clear-cache.html
- text: REFRESH TABLE
url: sql-ref-syntax-aux-refresh-table.html
url: sql-ref-syntax-aux-cache-refresh-table.html
- text: REFRESH
url: sql-ref-syntax-aux-cache-refresh.html
- text: DESCRIBE
Expand Down
2 changes: 1 addition & 1 deletion docs/sql-ref-syntax-aux-cache-cache-table.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,5 @@ CACHE TABLE testCache OPTIONS ('storageLevel' 'DISK_ONLY') SELECT * FROM testDat

* [CLEAR CACHE](sql-ref-syntax-aux-cache-clear-cache.html)
* [UNCACHE TABLE](sql-ref-syntax-aux-cache-uncache-table.html)
* [REFRESH TABLE](sql-ref-syntax-aux-refresh-table.html)
* [REFRESH TABLE](sql-ref-syntax-aux-cache-refresh-table.html)
* [REFRESH](sql-ref-syntax-aux-cache-refresh.html)
2 changes: 1 addition & 1 deletion docs/sql-ref-syntax-aux-cache-clear-cache.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ CLEAR CACHE;

* [CACHE TABLE](sql-ref-syntax-aux-cache-cache-table.html)
* [UNCACHE TABLE](sql-ref-syntax-aux-cache-uncache-table.html)
* [REFRESH TABLE](sql-ref-syntax-aux-refresh-table.html)
* [REFRESH TABLE](sql-ref-syntax-aux-cache-refresh-table.html)
* [REFRESH](sql-ref-syntax-aux-cache-refresh.html)
File renamed without changes.
2 changes: 1 addition & 1 deletion docs/sql-ref-syntax-aux-cache-refresh.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ REFRESH "hdfs://path/to/table";
* [CACHE TABLE](sql-ref-syntax-aux-cache-cache-table.html)
* [CLEAR CACHE](sql-ref-syntax-aux-cache-clear-cache.html)
* [UNCACHE TABLE](sql-ref-syntax-aux-cache-uncache-table.html)
* [REFRESH TABLE](sql-ref-syntax-aux-refresh-table.html)
* [REFRESH TABLE](sql-ref-syntax-aux-cache-refresh-table.html)
2 changes: 1 addition & 1 deletion docs/sql-ref-syntax-aux-cache-uncache-table.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@ UNCACHE TABLE t1;

* [CACHE TABLE](sql-ref-syntax-aux-cache-cache-table.html)
* [CLEAR CACHE](sql-ref-syntax-aux-cache-clear-cache.html)
* [REFRESH TABLE](sql-ref-syntax-aux-refresh-table.html)
* [REFRESH TABLE](sql-ref-syntax-aux-cache-refresh-table.html)
* [REFRESH](sql-ref-syntax-aux-cache-refresh.html)
2 changes: 1 addition & 1 deletion docs/sql-ref-syntax-aux-cache.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ license: |
* [CACHE TABLE statement](sql-ref-syntax-aux-cache-cache-table.html)
* [UNCACHE TABLE statement](sql-ref-syntax-aux-cache-uncache-table.html)
* [CLEAR CACHE statement](sql-ref-syntax-aux-cache-clear-cache.html)
* [REFRESH TABLE statement](sql-ref-syntax-aux-refresh-table.html)
* [REFRESH TABLE statement](sql-ref-syntax-aux-cache-refresh-table.html)
* [REFRESH statement](sql-ref-syntax-aux-cache-refresh.html)
File renamed without changes.
2 changes: 1 addition & 1 deletion docs/sql-ref-syntax-ddl.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,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)
* [USE DATABASE](sql-ref-syntax-ddl-usedb.html)
4 changes: 2 additions & 2 deletions docs/sql-ref-syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Spark SQL is Apache Spark's module for working with structured data. The SQL Syn
* [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)
* [USE DATABASE](sql-ref-syntax-ddl-usedb.html)

### DML Statements

Expand Down Expand Up @@ -82,7 +82,7 @@ Spark SQL is Apache Spark's module for working with structured data. The SQL Syn
* [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)
* [REFRESH TABLE](sql-ref-syntax-aux-cache-refresh-table.html)
* [RESET](sql-ref-syntax-aux-conf-mgmt-reset.html)
* [SET](sql-ref-syntax-aux-conf-mgmt-set.html)
* [SHOW COLUMNS](sql-ref-syntax-aux-show-columns.html)
Expand Down

0 comments on commit 492d5d1

Please sign in to comment.