ClickHouse / ClickHouse/ClickHouse

ArrowFlight: Support compound paths

Open
#89,525 0 comments 0 reactions 0 assignees View on GitHub
comp-arrow-flight feature
Dominant language
C++
Stars
49.9k
Forks
9k
Avg merge
21h 32m
Merged PRs (30d)
515

Description

Function [arrowFlight()](https://clickhouse.com/docs/sql-reference/table-functions/arrowflight) allows to specify only one-component path to a resource:

```
SELECT * FROM arrowFlight('host:port', 'dataset', 'myuser', 'mypassword');
```

However ArrowFlight itself supports [multi-component paths](https://arrow.apache.org/docs/cpp/api/flight.html#_CPPv4N5arrow6flight16FlightDescriptor4pathE). We need to support them as well:

```
SELECT * FROM arrowFlight('host:port', ('path1', 'path2', ...), 'myuser', 'mypassword');
```

Also if ClickHouse is used as an ArrowFlight server it would be nice to allow handling two-component paths as pair `(database_name, table_name)`. (Currently ClickHouse as ArrowFlight server only allows one-component path which is handled as a table name. Thus it allows reading and writing from the current database only.)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.