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. |
URL | HTTP or HTTPS server address, which can accept GET requests. Type: String. |
format | Format of the data. Type: String. |
structure | Table structure in 'UserID UInt64, Name String' format. Determines column names and types. Type: String. |
Returned value
A table with the specified format and structure and with data from the definedURL.
Examples
Getting the first 3 lines of a table that contains columns ofString and UInt32 type from HTTP-server which answers in CSV format.
- Create a basic HTTP server using the standard Python 3 tools and start it:
Globs in URL
Patterns in{ } are used to generate a set of shards or to specify failover addresses. Supported pattern types and examples see in the description of the remote function.
Character | inside patterns is used to specify failover addresses. They are iterated in the same order as listed in the pattern. The number of generated addresses is limited by glob_expansion_max_elements setting.