Skip to content

Commit 327032c

Browse files
authored
docs(native): Update documentation for Hive Connector (#26658)
## Description Remove the topic **How to invalidate directory list cache?** from the documentation, and consolidate the content from the removed topic into **Invalidate Directory ListCache** ## Motivation and Context To remove duplicate documentation for invalidate directory list cache in Hive Connector [Issue Reference Link](#26101) ## Impact 1) Consolidated contents from **How to invalidate directory list cache?** block to **Invalidate Directory List Cache** block in hive.rst file 2) Removed **How to invalidate directory list cache?** block from hive.rst file ## Test Plan Tested locally. Attaching the screenshots. <img width="1353" height="1032" alt="image" src="https://github.com/user-attachments/assets/249e41be-8d90-4eb6-990f-63e228431184" /> <img width="1353" height="1032" alt="image" src="https://github.com/user-attachments/assets/962f549c-a24f-442b-a6e6-84f757604e42" /> ## Contributor checklist - [ ] Please make sure your submission complies with our [contributing guide](https://github.com/prestodb/presto/blob/master/CONTRIBUTING.md), in particular [code style](https://github.com/prestodb/presto/blob/master/CONTRIBUTING.md#code-style) and [commit standards](https://github.com/prestodb/presto/blob/master/CONTRIBUTING.md#commit-standards). - [ ] PR description addresses the issue accurately and concisely. If the change is non-trivial, a GitHub Issue is referenced. - [ ] Documented new properties (with its default value), SQL syntax, functions, or other functionality. - [ ] If release notes are required, they follow the [release notes guidelines](https://github.com/prestodb/presto/wiki/Release-Notes-Guidelines). - [ ] Adequate tests were added if applicable. - [ ] CI passed. - [ ] If adding new dependencies, verified they have an [OpenSSF Scorecard](https://securityscorecards.dev/#the-checks) score of 5.0 or higher (or obtained explicit TSC approval for lower scores). ## Release Notes == NO RELEASE NOTE ==
1 parent 367b7d7 commit 327032c

File tree

1 file changed

+7
-14
lines changed
  • presto-docs/src/main/sphinx/connector

1 file changed

+7
-14
lines changed

presto-docs/src/main/sphinx/connector/hive.rst

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,13 +1040,16 @@ Sync Partition Metadata
10401040
Invalidate Directory List Cache
10411041
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
10421042

1043-
* ``system.invalidate_directory_list_cache()``
1043+
Invalidating directory list cache is useful when the files are added or deleted in the cache directory path and you want to make the changes visible to Presto immediately.
1044+
There are a couple of ways for invalidating this cache:
1045+
1046+
* The Hive connector exposes a procedure over JMX (``com.facebook.presto.hive.CachingDirectoryLister#flushCache``) to invalidate the directory list cache. You can call this procedure to invalidate the directory list cache by connecting via jconsole or jmxterm. This procedure flushes all the cache entries.
10441047

1045-
Flush full directory list cache.
1048+
* The Hive connector exposes ``system.invalidate_directory_list_cache`` procedure which gives the flexibility to invalidate the list cache completely or partially as per the requirement and can be invoked in various ways.
10461049

1047-
* ``system.invalidate_directory_list_cache(directory_path)``
1050+
* ``system.invalidate_directory_list_cache()`` : Flush full directory list cache.
10481051

1049-
Invalidate directory list cache for specified directory_path.
1052+
* ``system.invalidate_directory_list_cache(directory_path)`` : Invalidate directory list cache for specified directory_path.
10501053

10511054
Invalidate Metastore Cache
10521055
^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -1092,16 +1095,6 @@ There are a couple of ways for invalidating this cache and are listed below -
10921095

10931096
* The Hive connector exposes ``system.invalidate_metastore_cache`` procedure which enables users to invalidate the metastore cache completely or partially as per the requirement and can be invoked with various arguments. See `Invalidate Metastore Cache`_ for more information.
10941097

1095-
How to invalidate directory list cache?
1096-
---------------------------------------
1097-
1098-
Invalidating directory list cache is useful when the files are added or deleted in the cache directory path and you want to make the changes visible to Presto immediately.
1099-
There are a couple of ways for invalidating this cache and are listed below -
1100-
1101-
* The Hive connector exposes a procedure over JMX (``com.facebook.presto.hive.CachingDirectoryLister#flushCache``) to invalidate the directory list cache. You can call this procedure to invalidate the directory list cache by connecting via jconsole or jmxterm. This procedure flushes all the cache entries.
1102-
1103-
* The Hive connector exposes ``system.invalidate_directory_list_cache`` procedure which gives the flexibility to invalidate the list cache completely or partially as per the requirement and can be invoked in various ways. See `Invalidate Directory List Cache`_ for more information.
1104-
11051098
Examples
11061099
--------
11071100

0 commit comments

Comments
 (0)