ClickHouse / ClickHouse/JSONBench

Add "needle in the haystack" queries

Đang mở
#8 1 bình luận 2 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Shell
Star
182
Fork
33
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

The JSONBench dataset contains fields with big number of unique values (aka high-cardinality fields):

- did (aka user_id)
- commit.cid (aka commit_id)
- commit.record.subject.cid

Sometimes it is needed to find all the rows for the particular rarely seen value of some field. For example, to find all the rows generated by some user. Then the following query can be used for JSONBench data:

```sql
SELECT count(*) FROM bluesky WHERE data.did = 'did:plc:stwikwzlk2mepaagokthylry'
```

Another practical query is to select a row for the given commit_id:

```sql
SELECT * FROM bluesky WHERE data.commit.cid = 'bafyreielfqkpggsdqwtbtg5tyh7iqytp64paevfjbeufnw6kc7sgmjemhm'
```

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.