Skip to content
Closed
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 21 additions & 3 deletions docs/sql-ref-syntax-aux-cache-uncache-table.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,32 @@ license: |
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
---

**This page is under construction**
### Description
`UNCACHE TABLE` removes the entries and associated data from the in-memory and/or on-disk cache for the given table. The

@dilipbiswal dilipbiswal Sep 4, 2019

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit : for a ?

underlying entries should already have been brought to cache by previous `CACHE TABLE` operation. `UNCACHE TABLE` on a non-existing table throws Exception if `IF EXISTS` is not specified.
### Syntax
{% highlight sql %}
UNCACHE TABLE [ IF EXISTS ] table_name
{% endhighlight %}
### Parameters
<dl>
<dt><code><em>table_name</em></code></dt>
<dd>The name of the table to be uncached.</dd>
</dl>
### Examples
{% highlight sql %}
UNCACHE TABLE t1;
{% endhighlight %}
### Related Statements
* [CACHE TABLE](sql-ref-syntax-aux-cache-cache-table.html)
* [CLEAR CACHE](sql-ref-syntax-aux-cache-clear-cache.html)