This function will operate correctly only in case the set of files matching the initially specified path is identical across all nodes, and their content is consistent among different nodes.
In case these files differ between nodes, the return value cannot be predetermined and depends on the order in which worker nodes request tasks from the initiator.
In case these files differ between nodes, the return value cannot be predetermined and depends on the order in which worker nodes request tasks from the initiator.
Syntax
Arguments
| Argument | Description |
|---|---|
cluster_name | Name of a cluster that is used to build a set of addresses and connection parameters to remote and local servers. |
path | The relative path to the file from user_files_path. Path to file also supports globs. |
format | Format of the files. Type: String. |
structure | Table structure in 'UserID UInt64, Name String' format. Determines column names and types. Type: String. |
compression_method | Compression method. Supported compression types are gz, br, xz, zst, lz4, and bz2. |
Returned value
A table with the specified format and structure and with data from files matching the specified path. Example Given a cluster namedmy_cluster and given the following value of setting user_files_path:
test1.csv and test2.csv inside user_files_path of each cluster node, and their content is identical across different nodes:
test1.csv and test2.csv via fileCluster table function: