Define Scopes
Scopes are reusable table selectors that determine which tables are included in or excluded from monitoring and replication operations.
Create a Scope
- Navigate to Iceberg > Scopes
- Click Add New Scope
- Enter a Name (e.g.
all-analytics-tables) - Enter the Namespace — the exact, case-sensitive namespace name as it appears in the catalog
- Choose the Match type:
- By Name — matches a single table by exact name
- By Pattern — matches tables using a regular expression
- Enter the Value — either the table name or the regex pattern
- Click Create
Pattern Examples
| Name | Namespace | Match type | Value | What it matches |
|---|---|---|---|---|
| All analytics tables | analytics | Pattern | .* | Every table in the analytics namespace |
| Orders table only | sales | Name | orders | Only the orders table in sales |
| All customer tables | sales | Pattern | customer.* | Tables starting with "customer" in sales |
| Exclude staging | staging | Pattern | .* | Every table in staging (use as exclusion scope) |
Patterns use Java regular expression syntax. The pattern is matched against the
table name only, not the fully qualified namespace.table path.
Use Scopes in Monitors and Replications
When creating a monitor or replication, you attach scopes in two roles:
- Inclusion scopes — tables matching any inclusion scope are processed
- Exclusion scopes — tables matching any exclusion scope are skipped, even if they match an inclusion scope
Exclusion takes priority over inclusion. If a table matches both an inclusion and an exclusion scope, it is skipped.
Edit a Scope
- Open the scope from Iceberg > Scopes
- Modify the name, namespace, match type, or value
- Click Save
Changes to a scope affect all monitors and replications that reference it.
Delete a Scope
- Open the scope from Iceberg > Scopes
- Click Delete Scope
A scope cannot be deleted if it is referenced by an active monitor or replication. Remove those references first.
Tips
- Use the catalog Content browser to find the exact namespace names before creating scopes
- Create broad inclusion scopes (e.g.
.*for a namespace) and narrow exclusion scopes to skip specific tables - Give scopes descriptive names — they appear in the monitor and replication configuration and should be easy to identify