-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-30363][SQL][DOC]Add Documentation for refresh resources. #27023
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
|
ok to test |
|
Test build #115856 has finished for PR 27023 at commit
|
|
|
||
| ### Description | ||
| `REFRESH` is used to invalidate and refresh all the cached data (and the associated metadata) for | ||
| all Dataset, that contains the given data source path. Path matching is by prefix, i.e. "/" would |
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.
Dataset, that -> Datasets that
|
|
||
| ### Examples | ||
| {% highlight sql %} | ||
| REFRESH /tmp/test.jar; |
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.
Pardon, I just don't know the semantics well, but how does refreshing a JAR file relate to invalidating data associated with a Dataset?
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.
Probably, we need more concrete examples, e.g. define a table, cache it, then refresh it by path...
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.
Or, add comments like REFRESH TABLE: https://github.com/apache/spark/blob/master/docs/sql-ref-syntax-aux-refresh-table.md
|
Test build #115958 has finished for PR 27023 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.
Looks reasonable. I guess there's not much to say here.
What changes were proposed in this pull request?
Documentation added for refresh resources command in spark-sql.
Why are the changes needed?
Previously, only refresh table command was documented.
Does this PR introduce any user-facing change?
Yes. Now users can access documentation for refresh resources command.
How was this patch tested?
Manually.