Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-48760][SQL][DOCS][FOLLOWUP] Add CLUSTER BY to doc sql-ref-syntax-ddl-alter-table.md #47254

Closed
wants to merge 4 commits into from

Conversation

panbingkun
Copy link
Contributor

@panbingkun panbingkun commented Jul 8, 2024

What changes were proposed in this pull request?

The pr is following up #47156, aims to

  • add CLUSTER BY to doc sql-ref-syntax-ddl-alter-table.md
  • move parser tests from o.a.s.s.c.p.DDLParserSuite to AlterTableClusterByParserSuite
  • use checkError to check exception in o.a.s.s.e.c.AlterTableClusterBySuiteBase

Why are the changes needed?

  • Enable the doc sql-ref-syntax-ddl-alter-table.md to cover new syntax ALTER TABLE ... CLUSTER BY ....
  • Align with other similar tests, eg: AlterTableRename*

Does this PR introduce any user-facing change?

Yes, Make end-users can query the explanation of CLUSTER BY through the doc sql-ref-syntax-ddl-alter-table.md.

How was this patch tested?

Updated UT.

Was this patch authored or co-authored using generative AI tooling?

No.

@panbingkun panbingkun changed the title [SPARK-48760][SQL][FOLLOWUP] Add CLUSTER BY to doc sql-ref-syntax-ddl-alter-table.md [SPARK-48760][SQL][DOCS][TESTS][FOLLOWUP] Add CLUSTER BY to doc sql-ref-syntax-ddl-alter-table.md Jul 8, 2024
@panbingkun
Copy link
Contributor Author

panbingkun commented Jul 8, 2024

cc @zedtang @HyukjinKwon @cloud-fan

@panbingkun panbingkun marked this pull request as ready for review July 8, 2024 09:36
@panbingkun panbingkun changed the title [SPARK-48760][SQL][DOCS][TESTS][FOLLOWUP] Add CLUSTER BY to doc sql-ref-syntax-ddl-alter-table.md [SPARK-48760][SQL][DOCS][FOLLOWUP] Add CLUSTER BY to doc sql-ref-syntax-ddl-alter-table.md Jul 9, 2024
@cloud-fan
Copy link
Contributor

thanks, merging to master!

@cloud-fan cloud-fan closed this in fdbacdf Jul 9, 2024
ericm-db pushed a commit to ericm-db/spark that referenced this pull request Jul 10, 2024
…yntax-ddl-alter-table.md`

### What changes were proposed in this pull request?
The pr is  following up apache#47156, aims to
- add `CLUSTER BY` to doc `sql-ref-syntax-ddl-alter-table.md`
- move parser tests from `o.a.s.s.c.p.DDLParserSuite` to `AlterTableClusterByParserSuite`
- use `checkError` to check exception in `o.a.s.s.e.c.AlterTableClusterBySuiteBase`

### Why are the changes needed?
- Enable the doc `sql-ref-syntax-ddl-alter-table.md` to cover new syntax `ALTER TABLE ... CLUSTER BY ...`.
- Align with other similar tests, eg: AlterTableRename*

### Does this PR introduce _any_ user-facing change?
Yes, Make end-users can query the explanation of `CLUSTER BY` through the doc `sql-ref-syntax-ddl-alter-table.md`.

### How was this patch tested?
Updated UT.

### Was this patch authored or co-authored using generative AI tooling?
No.

Closes apache#47254 from panbingkun/SPARK-48760_FOLLOWUP.

Authored-by: panbingkun <panbingkun@baidu.com>
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
jingz-db pushed a commit to jingz-db/spark that referenced this pull request Jul 22, 2024
…yntax-ddl-alter-table.md`

### What changes were proposed in this pull request?
The pr is  following up apache#47156, aims to
- add `CLUSTER BY` to doc `sql-ref-syntax-ddl-alter-table.md`
- move parser tests from `o.a.s.s.c.p.DDLParserSuite` to `AlterTableClusterByParserSuite`
- use `checkError` to check exception in `o.a.s.s.e.c.AlterTableClusterBySuiteBase`

### Why are the changes needed?
- Enable the doc `sql-ref-syntax-ddl-alter-table.md` to cover new syntax `ALTER TABLE ... CLUSTER BY ...`.
- Align with other similar tests, eg: AlterTableRename*

### Does this PR introduce _any_ user-facing change?
Yes, Make end-users can query the explanation of `CLUSTER BY` through the doc `sql-ref-syntax-ddl-alter-table.md`.

### How was this patch tested?
Updated UT.

### Was this patch authored or co-authored using generative AI tooling?
No.

Closes apache#47254 from panbingkun/SPARK-48760_FOLLOWUP.

Authored-by: panbingkun <panbingkun@baidu.com>
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants