Skip to content

Commit

Permalink
Document new argument (case_sensitive) for sync_partition_metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
aalbu authored and findepi committed Jun 3, 2020
1 parent 67368f6 commit fa66094
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion presto-docs/src/main/sphinx/connector/hive.rst
Original file line number Diff line number Diff line change
Expand Up @@ -945,14 +945,19 @@ Procedures

Create an empty partition in the specified table.

* ``system.sync_partition_metadata(schema_name, table_name, mode)``
* ``system.sync_partition_metadata(schema_name, table_name, mode, case_sensitive)``

Check and update partitions list in metastore. There are three modes available:

* ``ADD`` : add any partitions that exist on the file system, but not in the metastore.
* ``DROP``: drop any partitions that exist in the metastore, but not on the file system.
* ``FULL``: perform both ``ADD`` and ``DROP``.

The ``case_sensitive`` argument is optional. The default value is ``true`` for compatibility
with Hive's ``MSCK REPAIR TABLE`` behavior, which expects the partition column names in
file system paths to use lowercase (e.g. ``col_x=SomeValue``). Partitions on the file system
not conforming to this convention are ignored, unless the argument is set to ``false``.

* ``system.drop_stats(schema_name, table_name, partition_values)``

Drops statistics for a subset of partitions or the entire table. The partitions are specified as an
Expand Down

0 comments on commit fa66094

Please sign in to comment.