Skip to content

Conversation

@huaxingao
Copy link
Contributor

@huaxingao huaxingao commented Mar 30, 2020

What changes were proposed in this pull request?

Add a page to list all commands in SQL Reference...

Why are the changes needed?

so it's easier for user to find a specific command.

Does this PR introduce any user-facing change?

before:
image

after:
image

image

Also move use database from query category to ddl category.

How was this patch tested?

Manually build and check

@SparkQA
Copy link

SparkQA commented Mar 30, 2020

Test build #120602 has finished for PR 28074 at commit 083d479.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Mar 30, 2020

Test build #120605 has finished for PR 28074 at commit 571765a.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

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.

### Data Definition Statements
Copy link
Member

Choose a reason for hiding this comment

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

- [TRUNCATE TABLE](sql-ref-syntax-ddl-truncate-table.html)
- [USE DATABASE](sql-ref-syntax-qry-select-usedb.html)

### Data Manipulation Statements
Copy link
Member

Choose a reason for hiding this comment

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

ditto: DML Statements?

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

@SparkQA
Copy link

SparkQA commented Mar 31, 2020

Test build #120624 has finished for PR 28074 at commit c8c9f17.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@huaxingao
Copy link
Contributor Author

@srowen This is for 3.0. Thank you!

@maropu maropu closed this in 1a7f964 Mar 31, 2020
maropu pushed a commit that referenced this pull request Mar 31, 2020
…ence

### What changes were proposed in this pull request?
Add a page to list all commands in SQL Reference...

### Why are the changes needed?
so it's easier for user to find a specific command.

### Does this PR introduce any user-facing change?
before:
![image](https://user-images.githubusercontent.com/13592258/77938658-ec03e700-726a-11ea-983c-7a559cc0aae2.png)

after:
![image](https://user-images.githubusercontent.com/13592258/77937899-d3df9800-7269-11ea-85db-749a9521576a.png)

![image](https://user-images.githubusercontent.com/13592258/77937924-db9f3c80-7269-11ea-9441-7603feee421c.png)

Also move ```use database``` from query category to ddl category.

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

Closes #28074 from huaxingao/list-all.

Authored-by: Huaxin Gao <[email protected]>
Signed-off-by: Takeshi Yamamuro <[email protected]>
(cherry picked from commit 1a7f964)
Signed-off-by: Takeshi Yamamuro <[email protected]>
@maropu
Copy link
Member

maropu commented Mar 31, 2020

Thanks, @huaxingao ! Merged to master/3.0. btw, have we done all the works about the SQL references? It seems the RC1 for 3.0 will be started in a few days.

@huaxingao
Copy link
Contributor Author

Thanks! @maropu @srowen
@gatorsmile wants a few more. I am working on functions right now, will probably submit a PR for UDF later today.

@huaxingao huaxingao deleted the list-all branch March 31, 2020 23:51
@maropu
Copy link
Member

maropu commented Mar 31, 2020

ok, thanks for the work! cc: @dongjoon-hyun

sjincho pushed a commit to sjincho/spark that referenced this pull request Apr 15, 2020
…ence

### What changes were proposed in this pull request?
Add a page to list all commands in SQL Reference...

### Why are the changes needed?
so it's easier for user to find a specific command.

### Does this PR introduce any user-facing change?
before:
![image](https://user-images.githubusercontent.com/13592258/77938658-ec03e700-726a-11ea-983c-7a559cc0aae2.png)

after:
![image](https://user-images.githubusercontent.com/13592258/77937899-d3df9800-7269-11ea-85db-749a9521576a.png)

![image](https://user-images.githubusercontent.com/13592258/77937924-db9f3c80-7269-11ea-9441-7603feee421c.png)

Also move ```use database``` from query category to ddl category.

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

Closes apache#28074 from huaxingao/list-all.

Authored-by: Huaxin Gao <[email protected]>
Signed-off-by: Takeshi Yamamuro <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants