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-40574][DOCS] Enhance DROP TABLE documentation #38011

Closed
wants to merge 1 commit into from

Conversation

wangyum
Copy link
Member

@wangyum wangyum commented Sep 27, 2022

What changes were proposed in this pull request?

This PR adds PURGE in DROP TABLE documentation.

Related documentation and code:

  1. Hive DROP TABLE documentation:
    https://cwiki.apache.org/confluence/display/hive/languagemanual+ddl
    image
  2. Hive code:
    https://github.com/apache/hive/blob/rel/release-2.3.9/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java#L1185-L1209
  3. Spark code:
    https://github.com/apache/spark/blob/v3.3.0/sql/hive/src/main/scala/org/apache/spark/sql/hive/client/HiveShim.scala#L1317-L1327

Why are the changes needed?

Enhance documentation.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

manual test.

@github-actions github-actions bot added the DOCS label Sep 27, 2022
Copy link
Contributor

@itholic itholic left a comment

Choose a reason for hiding this comment

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

Looks pretty good

Copy link
Contributor

@zhengruifeng zhengruifeng left a comment

Choose a reason for hiding this comment

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

LGTM

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, @wangyum , @itholic , @zhengruifeng .
Merged to master/3.3/3.2.

dongjoon-hyun pushed a commit that referenced this pull request Sep 27, 2022
### What changes were proposed in this pull request?

This PR adds `PURGE` in `DROP TABLE` documentation.

Related documentation and code:
1. Hive `DROP TABLE` documentation:
    https://cwiki.apache.org/confluence/display/hive/languagemanual+ddl
    <img width="877" alt="image" src="https://user-images.githubusercontent.com/5399861/192425153-63ac5373-dd34-48b3-864c-324cf5ba5db9.png">
2. Hive code:
    https://github.com/apache/hive/blob/rel/release-2.3.9/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java#L1185-L1209
3. Spark code:
    https://github.com/apache/spark/blob/v3.3.0/sql/hive/src/main/scala/org/apache/spark/sql/hive/client/HiveShim.scala#L1317-L1327

### Why are the changes needed?

Enhance documentation.

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

manual test.

Closes #38011 from wangyum/SPARK-40574.

Authored-by: Yuming Wang <yumwang@ebay.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit 11eefc8)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
dongjoon-hyun pushed a commit that referenced this pull request Sep 27, 2022
### What changes were proposed in this pull request?

This PR adds `PURGE` in `DROP TABLE` documentation.

Related documentation and code:
1. Hive `DROP TABLE` documentation:
    https://cwiki.apache.org/confluence/display/hive/languagemanual+ddl
    <img width="877" alt="image" src="https://user-images.githubusercontent.com/5399861/192425153-63ac5373-dd34-48b3-864c-324cf5ba5db9.png">
2. Hive code:
    https://github.com/apache/hive/blob/rel/release-2.3.9/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java#L1185-L1209
3. Spark code:
    https://github.com/apache/spark/blob/v3.3.0/sql/hive/src/main/scala/org/apache/spark/sql/hive/client/HiveShim.scala#L1317-L1327

### Why are the changes needed?

Enhance documentation.

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

manual test.

Closes #38011 from wangyum/SPARK-40574.

Authored-by: Yuming Wang <yumwang@ebay.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit 11eefc8)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
@wangyum wangyum deleted the SPARK-40574 branch September 28, 2022 03:48
sunchao pushed a commit to sunchao/spark that referenced this pull request Jun 2, 2023
### What changes were proposed in this pull request?

This PR adds `PURGE` in `DROP TABLE` documentation.

Related documentation and code:
1. Hive `DROP TABLE` documentation:
    https://cwiki.apache.org/confluence/display/hive/languagemanual+ddl
    <img width="877" alt="image" src="https://user-images.githubusercontent.com/5399861/192425153-63ac5373-dd34-48b3-864c-324cf5ba5db9.png">
2. Hive code:
    https://github.com/apache/hive/blob/rel/release-2.3.9/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java#L1185-L1209
3. Spark code:
    https://github.com/apache/spark/blob/v3.3.0/sql/hive/src/main/scala/org/apache/spark/sql/hive/client/HiveShim.scala#L1317-L1327

### Why are the changes needed?

Enhance documentation.

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

manual test.

Closes apache#38011 from wangyum/SPARK-40574.

Authored-by: Yuming Wang <yumwang@ebay.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit 11eefc8)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
4 participants