-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-28798][DOC][SQL]Document DROP TABLE/VIEW statement in SQL Reference. #25533
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
Conversation
|
@shivusondur Could you please attach the screenshot of the page to make it easier for reviewers ? |
|
@shivusondur A few related DOC PRs were merged by @gatorsmile Could you please make changes by following the format of these PRs ? A few things to note:
|
d591db2 to
c171040
Compare
|
@dilipbiswal @srowen @gatorsmile Please review and kindly check for merging. |
| ### Description | ||
|
|
||
| Deletes the table and removes the directory associated with this table from the file system | ||
| if this is not `EXTERNAL` table. If the table is not present it throws exception. |
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.
Nit: an exception
| Deletes the table and removes the directory associated with this table from the file system | ||
| if this is not `EXTERNAL` table. If the table is not present it throws exception. | ||
|
|
||
| In case of External table it only deletes the metadata from metastore database and it will not remove the directory |
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.
Nit: In case of External table, only the associated metadata information are removed from the metastore database.
| </dd> | ||
| <dt><code><em>database_name</em></code></dt> | ||
| <dd> | ||
| Database name where table is present. |
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.
Nit: Specifies the database name where table is present.
| </dd> | ||
| <dt><code><em>table_name</em></code></dt> | ||
| <dd> | ||
| table name to be dropped. |
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.
Nit: Ditto.
docs/sql-ref-syntax-ddl-drop-view.md
Outdated
|
|
||
| **This page is under construction** | ||
| ### Description | ||
| Drops the specified `VIEW`, which was created by `CREATE VIEW` statement. `DROP VIEW` only involves |
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.
How about the following ?
DROP VIEW` removes the metadata associated with a specified view from the catalog.
docs/sql-ref-syntax-ddl-drop-view.md
Outdated
| </dd> | ||
| <dt><code><em>database_name</em></code></dt> | ||
| <dd> | ||
| Database name where view is present. |
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.
Please add "Specifies"
Handled PR according to apache#25523 PR which is already merged. to make uniform accross all docs
cf3aebe to
194a0b0
Compare
|
@dilipbiswal |
|
ok to test |
|
Test build #111093 has finished for PR 25533 at commit
|
| Deletes the table and removes the directory associated with this table from the file system | ||
| if this is not `EXTERNAL` table. If the table is not present it throws an exception. | ||
|
|
||
| In case of External table, only the associated metadata information are removed from the metastore database. |
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.
of an external table
docs/sql-ref-syntax-ddl-drop-view.md
Outdated
|
|
||
| ### Example | ||
| {% highlight sql %} | ||
| -- Assumes a view name `employeeView` exist. |
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.
exists
|
@srowen |
|
Test build #112863 has finished for PR 25533 at commit
|
srowen
left a comment
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.
Looking fine, just a few more nits
|
@srowen |
|
Test build #112950 has finished for PR 25533 at commit
|
|
Merged to master |
What changes were proposed in this pull request?
Added doc for DROP TABLE and DROP VIEW sql command
Why are the changes needed?
For reference DROP TABLE or DROP VIEW in spark-sql
Does this PR introduce any user-facing change?
It updates DROP TABLE or DROP VIEW reference doc
How was this patch tested?
Attached the Snap
DROP TABLE
DROP VIEW

