-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-28799][DOC]Documentation for Truncate command #25557
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-28799][DOC]Documentation for Truncate command #25557
Conversation
|
@PavithraRamachandran Hello could you please update this by following the convention of existing merged PRS. |
54c440b to
64c3254
Compare
|
@dilipbiswal and @srowen i have reworked on the documentation. Kindly review |
|
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. |
|
@srowen i have reworked. Could you review. |
| **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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is -> are
|
@srowen I have handled the review comments. Could you verify? |
|
Test build #4875 has finished for PR 25557 at commit
|
|
Merged to master |
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.