[SPARK-28799][DOC]Documentation for Truncate command#25557
Closed
PavithraRamachandran wants to merge 5 commits intoapache:masterfrom
Closed
[SPARK-28799][DOC]Documentation for Truncate command#25557PavithraRamachandran wants to merge 5 commits intoapache:masterfrom
PavithraRamachandran wants to merge 5 commits intoapache:masterfrom
Conversation
Contributor
|
@PavithraRamachandran Hello could you please update this by following the convention of existing merged PRS. |
54c440b to
64c3254
Compare
Contributor
Author
|
@dilipbiswal and @srowen i have reworked on the documentation. Kindly review |
Member
|
Is this copied from Hive or Databricks docs? it looks like some phrases are. I get that there are just not many ways to express the exact same idea, but rewording the prose a little bit would be better. |
Contributor
Author
|
@srowen i have reworked. Could you review. |
srowen
requested changes
Sep 17, 2019
| **This page is under construction** | ||
| ### Description | ||
| The `TRUNCATE TABLE` statement removes all the rows from a table or partition(s). The table must not be a view | ||
| or an external/temporary table. Inorder to truncate multiple partitions at once, user can specify the partitions |
Member
There was a problem hiding this comment.
Inorder -> In order
user -> the user
back-tick partition_spec
| -- Removes all rows from the table in the partion specified | ||
| TRUNCATE TABLE Student partition(age=10); | ||
|
|
||
| --After truncate execution, records belonging to partition age=10 is removed |
Contributor
Author
|
@srowen I have handled the review comments. Could you verify? |
srowen
approved these changes
Sep 17, 2019
|
Test build #4875 has finished for PR 25557 at commit
|
Member
|
Merged to master |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
Document TRUNCATE statement in SQL Reference Guide.
Why are the changes needed?
Adding documentation for SQL reference.
Does this PR introduce any user-facing change?
yes
Before:
There was no documentation for this.
After.


How was this patch tested?
Used jekyll build and serve to verify.