ClickHouse / ClickHouse/ClickHouse

Cluster functions are not effective if I create a table AS table function.

Open
#84,071 1 comment 0 reactions 0 assignees View on GitHub
comp-table-functions feature
Dominant language
C++
Stars
49.9k
Forks
9k
Avg merge
21h 32m
Merged PRs (30d)
515

Description

### Company or project name

ClickHouse

### Describe the situation

Fast:
```
SELECT count() FROM url('https://clickhouse-public-datasets-eu-west-1.s3.eu-west-1.amazonaws.com/hits_1t/{0001..1000}.parquet')
```

Slow:
```
CREATE TABLE hits AS s3('s3://clickhouse-public-datasets-eu-west-1/hits_1t/{0001..1000}.parquet');
SELECT count() FROM hits
```

### Which ClickHouse versions are affected?

.

### How to reproduce

.

### Expected performance

_No response_

### Additional context

_No response_

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.