Skip to content

Commit 3c73569

Browse files
committed
Fix
1 parent e0e74ac commit 3c73569

File tree

1 file changed

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

1 file changed

+10
-10
lines changed

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,7 @@ The configuration file defines metadata filters for different scopes:
106106
- **Table-level**: applies to the fully qualified ``catalog.schema.table``.
107107

108108
.. note::
109-
All filters defined for a table in the configuration file must be present in the query and eligible for push down.
110-
If any required filter is missing or cannot be pushed down, the query will be rejected.
109+
All filters defined for a table in the configuration file must be present in the query and eligible for push down. If any required filter is missing or cannot be pushed down, the query will be rejected.
111110

112111
Supported translations for Metadata SQL for now:
113112

@@ -132,6 +131,7 @@ Each scope maps to a list of filter definitions. Each filter includes:
132131
::
133132

134133
"msg.timestamp" > 1234 AND "msg.timestamp" < 5678
134+
135135
will be rewritten as:
136136

137137
::
@@ -177,19 +177,19 @@ Here is an example of a metadata filter config file:
177177
178178
Explanation:
179179

180-
- The top-level keys in this JSON object (`"clp"`, `"clp.default"`, and `"clp.default.table_1"`) represent **scopes** where metadata filters apply:
180+
- The top-level keys in this JSON object (``"clp"``, ``"clp.default"``, and ``"clp.default.table_1"``) represent **scopes** where metadata filters apply:
181181

182-
- ``"clp"``: filters applied globally to all schemas and tables under the `clp` catalog.
183-
- ``"clp.default"``: filters applied to all tables under the `clp.default` schema.
184-
- ``"clp.default.table_1"``: filters applied specifically to the table named `table_1` under `clp.default`.
182+
- ``"clp"``: filters applied globally to all schemas and tables under the ``clp`` catalog.
183+
- ``"clp.default"``: filters applied to all tables under the ``clp.default`` schema.
184+
- ``"clp.default.table_1"``: filters applied specifically to the table named ``table_1`` under ``clp.default``.
185185

186-
- Each scope contains a list of `filters`, where each filter specifies a field name via `filterName`. The field name must match a column in the logical schema.
186+
- Each scope contains a list of ``filters``, where each filter specifies a field name via ``filterName``. The field name must match a column in the logical schema.
187187

188-
- Some filters (like `"msg.timestamp"`) include an optional `rangeMapping` block. This is used to map the filter to physical metadata columns:
188+
- Some filters (like ``"msg.timestamp"``) include an optional ``rangeMapping`` block. This is used to map the filter to physical metadata columns:
189189

190-
- In this example, filtering by `"msg.timestamp"` will be rewritten as a condition involving `begin_timestamp` and `end_timestamp`, allowing the engine to prune files or splits that don't match the filter.
190+
- In this example, filtering by ``"msg.timestamp"`` will be rewritten as a condition involving ``begin_timestamp`` and ``end_timestamp``, allowing the engine to prune files or splits that don't match the filter.
191191

192-
- Filters without a `rangeMapping` (like `"level"`, `"author"`, or `"file_name"`) are used as-is and must directly correspond to metadata columns in the split metadata schema.
192+
- Filters without a ``rangeMapping`` (like ``"level"``, ``"author"``, or ``"file_name"``) are used as-is and must directly correspond to metadata columns in the split metadata schema.
193193

194194
This configuration enables flexible, hierarchical specification of which metadata filters are valid for which tables, and how they should be mapped to physical metadata fields for push down and split filtering.
195195

0 commit comments

Comments
 (0)