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
|`catalog_type`| Type of catalog: `glue`, `unity` (Delta), `rest` (Iceberg), `hive`, `onelake` (Iceberg) |
52
+
|`warehouse`| The warehouse/database name to use in the catalog. |
53
+
|`catalog_credential`| Authentication credential for the catalog (e.g., API key or token) |
54
+
|`auth_header`| Custom HTTP header for authentication with the catalog service |
55
+
|`auth_scope`| OAuth2 scope for authentication (if using OAuth) |
56
+
|`storage_endpoint`| Endpoint URL for the underlying storage |
57
+
|`oauth_server_uri`| URI of the OAuth2 authorization server for authentication |
58
58
|`vended_credentials`| Boolean indicating whether to use vended credentials from the catalog (supports AWS S3 and Azure ADLS Gen2) |
59
-
|`aws_access_key_id`| AWS access key ID for S3/Glue access (if not using vended credentials) |
60
-
|`aws_secret_access_key`| AWS secret access key for S3/Glue access (if not using vended credentials) |
61
-
|`region`| AWS region for the service (e.g., `us-east-1`) |
62
-
|`dlf_access_key_id`| Access key ID for DLF access |
63
-
|`dlf_access_key_secret`| Access key Secret for DLF access |
59
+
|`aws_access_key_id`| AWS access key ID for S3/Glue access (if not using vended credentials) |
60
+
|`aws_secret_access_key`| AWS secret access key for S3/Glue access (if not using vended credentials) |
61
+
|`region`| AWS region for the service (e.g., `us-east-1`) |
62
+
|`dlf_access_key_id`| Access key ID for DLF access |
63
+
|`dlf_access_key_secret`| Access key Secret for DLF access |
64
+
|`namespaces`| Comma-separated list of namespaces, implemented for catalog types: `rest`, `glue` and `unity`|
64
65
65
66
## Examples {#examples}
66
67
@@ -83,4 +84,30 @@ SETTINGS
83
84
onelake_client_secret = client_secret;
84
85
SHOW TABLES IN databse_name;
85
86
SELECTcount() fromdatabase_name.table_name;
86
-
```
87
+
```
88
+
89
+
## Namespace filter {#namespace}
90
+
91
+
By default, ClickHouse reads tables from all namespaces available in the catalog. You can limit this behavior using the `namespaces` database setting. The value should be a comma‑separated list of namespaces that are allowed to be read.
92
+
93
+
Supported catalog types are `rest`, `glue` and `unity`.
94
+
95
+
For example, if the catalog contains three namespaces - `dev`, `stage`, and `prod` - and you want to read data only from dev and stage, set:
96
+
```
97
+
namespaces='dev,stage'
98
+
```
99
+
100
+
### Nested namespaces {#namespace-nested}
101
+
102
+
The Iceberg (`rest`) catalog supports nested namespaces. The `namespaces` filter accepts the following patterns:
103
+
104
+
-`namespace` - includes tables from the specified namespace, but not from its nested namespaces.
105
+
-`namespace.nested` - includes tables from the nested namespace, but not from the parent.
106
+
-`namespace.*` - includes tables from all nested namespaces, but not from the parent.
107
+
108
+
If you need to include both a namespace and its nested namespaces, specify both explicitly. For example:
109
+
```
110
+
namespaces='namespace,namespace.*'
111
+
```
112
+
113
+
The default value is '*', which means all namespaces are included.
0 commit comments