We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 96bc5bf commit bf8e901Copy full SHA for bf8e901
integration_test.go
@@ -243,6 +243,25 @@ func TestIntegration(t *testing.T) {
243
{"go/example.go", int32(1)},
244
},
245
246
+ {
247
+ `
248
+ SELECT language, COUNT(repository_id) AS repository_count
249
+ FROM (
250
+ SELECT DISTINCT r.repository_id, LANGUAGE(t.tree_entry_name, b.blob_content) AS language
251
+ FROM refs r
252
+ JOIN commits c ON r.commit_hash = c.commit_hash
253
+ NATURAL JOIN commit_trees
254
+ NATURAL JOIN tree_entries t
255
+ NATURAL JOIN blobs b
256
+ WHERE language IS NOT NULL
257
+ ) AS q1
258
+ GROUP BY language
259
+ ORDER BY repository_count DESC
260
+ `,
261
+ []sql.Row{
262
+ {"Text", int32(1)},
263
+ },
264
265
}
266
267
runTests := func(t *testing.T) {
0 commit comments