ClickHouse / ClickHouse/JSONBench

Add "needle in the haystack" queries

未关闭
#8 1 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Shell
星标
182
派生
33
PR 合并指标
30 天内没有已合并 PR

描述

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'
```

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。