You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: presto-docs/src/main/sphinx/connector/clp.rst
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -106,8 +106,7 @@ The configuration file defines metadata filters for different scopes:
106
106
- **Table-level**: applies to the fully qualified ``catalog.schema.table``.
107
107
108
108
.. 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.
111
110
112
111
Supported translations for Metadata SQL for now:
113
112
@@ -132,6 +131,7 @@ Each scope maps to a list of filter definitions. Each filter includes:
132
131
::
133
132
134
133
"msg.timestamp" > 1234 AND "msg.timestamp" < 5678
134
+
135
135
will be rewritten as:
136
136
137
137
::
@@ -177,19 +177,19 @@ Here is an example of a metadata filter config file:
177
177
178
178
Explanation:
179
179
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:
181
181
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``.
185
185
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.
187
187
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:
189
189
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.
191
191
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.
193
193
194
194
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.
0 commit comments