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-48793][SQL][TESTS] Unify v1 and v2 ALTER TABLE .. DROP|RENAME COLUMN[S] ... tests #47199

Closed
wants to merge 3 commits into from

Conversation

panbingkun
Copy link
Contributor

@panbingkun panbingkun commented Jul 3, 2024

What changes were proposed in this pull request?

The pr aims to:

  • Move parser tests from o.a.s.s.c.p.DDLParserSuite and o.a.s.s.c.p.ErrorParserSuite to AlterTableRenameColumnParserSuite & AlterTableDropColumnParserSuite
  • Add a test for DSv2 ALTER TABLE .. DROP|RENAME to v2.AlterTableDropColumnSuite & v2.AlterTableRenameColumnSuite

(This PR includes the unification of two commands: DROP COLUMN & RENAME COLUMN)

Why are the changes needed?

  • To improve test coverage.
  • Align with other similar tests, eg: AlterTableRename*

Does this PR introduce any user-facing change?

No, only tests.

How was this patch tested?

  • Add new UT
  • Pass GA.

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

No.

@github-actions github-actions bot added the SQL label Jul 3, 2024
@panbingkun panbingkun changed the title [SPARK-48793][SQL][TESTS] Unify v1 and v2 ALTER TABLE .. DROP (COLUMN | COLUMNS) ... tests [SPARK-48793][SQL][TESTS] Unify v1 and v2 ALTER TABLE .. DROP|RENAME COLUMN[S] ... tests Jul 8, 2024
@panbingkun
Copy link
Contributor Author

cc @cloud-fan

@panbingkun panbingkun marked this pull request as ready for review July 8, 2024 07:34
@cloud-fan
Copy link
Contributor

thanks, merging to master!

@cloud-fan cloud-fan closed this in dbc420f Jul 11, 2024
jingz-db pushed a commit to jingz-db/spark that referenced this pull request Jul 22, 2024
…NAME` COLUMN ...` tests

### What changes were proposed in this pull request?
The pr aims to:
- Move parser tests from `o.a.s.s.c.p.DDLParserSuite` and `o.a.s.s.c.p.ErrorParserSuite` to `AlterTableRenameColumnParserSuite` & `AlterTableDropColumnParserSuite`
- Add a test for DSv2 ALTER TABLE .. `DROP|RENAME` to `v2.AlterTableDropColumnSuite` & `v2.AlterTableRenameColumnSuite`

(This PR includes the unification of two commands: `DROP COLUMN` & `RENAME COLUMN`)

### Why are the changes needed?
- To improve test coverage.
- Align with other similar tests, eg: AlterTableRename*

### Does this PR introduce _any_ user-facing change?
No, only tests.

### How was this patch tested?
- Add new UT
- Pass GA.

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

Closes apache#47199 from panbingkun/alter_table_drop_column.

Authored-by: panbingkun <[email protected]>
Signed-off-by: Wenchen Fan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants