mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-14 02:12:21 +00:00
44 lines
2.0 KiB
Markdown
44 lines
2.0 KiB
Markdown
---
|
|
slug: /en/sql-reference/table-functions/icebergCluster
|
|
sidebar_position: 91
|
|
sidebar_label: icebergCluster
|
|
title: "icebergCluster Table Function"
|
|
---
|
|
This is an extension to the [iceberg](/docs/en/sql-reference/table-functions/iceberg.md) table function.
|
|
|
|
Allows processing files from Apache [Iceberg](https://iceberg.apache.org/) in parallel from many nodes in a specified cluster. On initiator it creates a connection to all nodes in the cluster and dispatches each file dynamically. On the worker node it asks the initiator about the next task to process and processes it. This is repeated until all tasks are finished.
|
|
|
|
**Syntax**
|
|
|
|
``` sql
|
|
icebergS3Cluster(cluster_name, url [, NOSIGN | access_key_id, secret_access_key, [session_token]] [,format] [,compression_method])
|
|
icebergS3Cluster(cluster_name, named_collection[, option=value [,..]])
|
|
|
|
icebergAzureCluster(cluster_name, connection_string|storage_account_url, container_name, blobpath, [,account_name], [,account_key] [,format] [,compression_method])
|
|
icebergAzureCluster(cluster_name, named_collection[, option=value [,..]])
|
|
|
|
icebergHDFSCluster(cluster_name, path_to_table, [,format] [,compression_method])
|
|
icebergHDFSCluster(cluster_name, named_collection[, option=value [,..]])
|
|
```
|
|
|
|
**Arguments**
|
|
|
|
- `cluster_name` — Name of a cluster that is used to build a set of addresses and connection parameters to remote and local servers.
|
|
|
|
- Description of all other arguments coincides with description of arguments in equivalent [iceberg](/docs/en/sql-reference/table-functions/iceberg.md) table function.
|
|
|
|
**Returned value**
|
|
|
|
A table with the specified structure for reading data from cluster in the specified Iceberg table.
|
|
|
|
**Examples**
|
|
|
|
```sql
|
|
SELECT * FROM icebergS3Cluster('cluster_simple', 'http://test.s3.amazonaws.com/clickhouse-bucket/test_table', 'test', 'test')
|
|
```
|
|
|
|
**See Also**
|
|
|
|
- [Iceberg engine](/docs/en/engines/table-engines/integrations/iceberg.md)
|
|
- [Iceberg table function](/docs/en/sql-reference/table-functions/iceberg.md)
|