You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: torchci/README.md
+19Lines changed: 19 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -100,6 +100,25 @@ console.
100
100
3. Download the query with `yarn node scripts/downloadQueryLambda.mjs <workspace> <queryname> <version>`. (You can skip `<version>` if you want the latest version). This will auto-update sql and lambda files in the `rockset/<workspace>` dir and the query version in `rockset/prodVersion.json`.
101
101
4. Commit the updated files.
102
102
103
+
## How to edit ClickHouse queries
104
+
105
+
If you are familiar with the old setup for Rockset, ClickHouse does not have
106
+
versioned query lambdas. Instead, queries are defined in `clickhouse_queries/`
107
+
and HUD sends the entire query text to ClickHouse in the same way Rockset did
108
+
for queries not defined using a query lambda.
109
+
110
+
Each query should have a folder in `clickhouse_queries/` with two files: one
111
+
containing the query and the other containing a json dictionary mapping
112
+
parameters to their types.
113
+
114
+
To edit the query, only these files need to be changed. The change will be
115
+
reflected immediately in your local development and in the Vercel preview when
116
+
you submit your PR.
117
+
118
+
If you want to test your query in ClickHouse Cloud's console, you need to copy
119
+
the query text into the console. If you make changes, you will have to copy the
120
+
query back into the file.
121
+
103
122
## Alerts
104
123
105
124
Code is in `test-infra/tools/torchci/check_alerts.py`. It queries HUD, filters out pending jobs, and then checks to see if there are 2 consecutive
0 commit comments