-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include ClickHouse beta JSON type results in super command doc (#5513)
Run super cmd perf queries with ClickHouse JSON type
- Loading branch information
Showing
12 changed files
with
888 additions
and
162 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<clickhouse> | ||
<custom_cached_disks_base_directory>/mnt/clickhouse/caches/</custom_cached_disks_base_directory> | ||
<path>/mnt/clickhouse/</path> | ||
<tmp_path>/mnt/clickhouse/tmp/</tmp_path> | ||
</clickhouse> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
SET enable_json_type = 1; | ||
CREATE TABLE gha (v JSON) ENGINE MergeTree() ORDER BY tuple(); | ||
INSERT INTO gha SELECT * FROM file('gharchive_gz/*.json.gz', JSONAsObject); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
SET allow_suspicious_types_in_group_by = 1; | ||
SELECT count(),v.type | ||
FROM '__SOURCE__' | ||
WHERE v.repo.name='duckdb/duckdb' | ||
GROUP BY v.type |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
SELECT count() | ||
FROM '__SOURCE__' | ||
WHERE v.actor.login='johnbieren' |
489 changes: 489 additions & 0 deletions
489
scripts/super-cmd-perf/queries/search+-clickhouse-db.sql
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
SELECT count() | ||
FROM '__SOURCE__' | ||
WHERE v.payload.pull_request.body LIKE '%in case you have any feedback 😊%' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
WITH assignees AS ( | ||
SELECT v.payload.pull_request.assignee.login assignee | ||
FROM '__SOURCE__' | ||
UNION ALL | ||
SELECT arrayJoin(v.payload.pull_request.assignees).login assignee | ||
FROM '__SOURCE__' | ||
) | ||
SELECT assignee, count(*) count | ||
FROM assignees | ||
WHERE assignee IS NOT NULL | ||
GROUP BY assignee | ||
ORDER BY count DESC | ||
LIMIT 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters