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-33990][SQL][TESTS] Remove partition data by v2 ALTER TABLE .. DROP PARTITION #31014

Closed
wants to merge 2 commits into from

Conversation

MaxGekk
Copy link
Member

@MaxGekk MaxGekk commented Jan 4, 2021

What changes were proposed in this pull request?

Remove partition data by ALTER TABLE .. DROP PARTITION in V2 table catalog used in tests.

Why are the changes needed?

This is a bug fix. Before the fix, ALTER TABLE .. DROP PARTITION does not remove the data belongs to the dropped partition. As a consequence of that, the select query returns removed data.

Does this PR introduce any user-facing change?

No

How was this patch tested?

By running tests suites for v1 and v2 catalogs:

$ build/sbt -Phive-2.3 -Phive-thriftserver "test:testOnly *AlterTableDropPartitionSuite"

@MaxGekk
Copy link
Member Author

MaxGekk commented Jan 4, 2021

@cloud-fan @HyukjinKwon Could you review this PR.

@github-actions github-actions bot added the SQL label Jan 4, 2021
Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

+1, LGTM. Thank you, @MaxGekk and @cloud-fan .
Merged to master.

MaxGekk added a commit to MaxGekk/spark that referenced this pull request Feb 1, 2021
… DROP PARTITION`

Remove partition data by `ALTER TABLE .. DROP PARTITION` in V2 table catalog used in tests.

This is a bug fix. Before the fix, `ALTER TABLE .. DROP PARTITION` does not remove the data belongs to the dropped partition. As a consequence of that, the `select` query returns removed data.

No

By running tests suites for v1 and v2 catalogs:
```
$ build/sbt -Phive-2.3 -Phive-thriftserver "test:testOnly *AlterTableDropPartitionSuite"
```

Closes apache#31014 from MaxGekk/fix-drop-partition-v2.

Authored-by: Max Gekk <max.gekk@gmail.com>
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
(cherry picked from commit fc3f226)
Signed-off-by: Max Gekk <max.gekk@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants