Skip to content

Commit d1383be

Browse files
author
kuba--
committed
Remove FROM files queries.
Signed-off-by: kuba-- <[email protected]>
1 parent b6b3077 commit d1383be

File tree

1 file changed

+5
-26
lines changed

1 file changed

+5
-26
lines changed

_testdata/regression.yml

Lines changed: 5 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -32,52 +32,31 @@
3232
- DROP INDEX language_idx ON files
3333
-
3434
ID: 'query06'
35-
Name: 'Query by language using the pilosa index'
36-
Statements:
37-
- CREATE INDEX language_idx ON files USING pilosa (language(file_path, blob_content)) WITH (async = false)
38-
- SELECT file_path FROM files WHERE language(file_path, blob_content) = 'Go'
39-
- DROP INDEX language_idx ON files
40-
-
41-
ID: 'query07'
4235
Name: 'Query all files from HEAD'
4336
Statements:
4437
- SELECT cf.file_path, f.blob_content FROM ref_commits r NATURAL JOIN commit_files cf NATURAL JOIN files f WHERE r.ref_name = 'HEAD' AND r.history_index = 0
4538
-
46-
ID: 'query08'
47-
Name: 'Get all LICENSE blobs using pilosa index'
48-
Statements:
49-
- CREATE INDEX file_path_idx ON files USING pilosa (file_path) WITH (async = false)
50-
- SELECT blob_content FROM files WHERE file_path = 'LICENSE'
51-
- DROP INDEX file_path_idx ON files
52-
-
53-
ID: 'query09'
39+
ID: 'query07'
5440
Name: '10 top repos by file count in HEAD'
5541
Statements:
5642
- SELECT repository_id, num_files FROM (SELECT COUNT(f.*) num_files, f.repository_id FROM ref_commits r INNER JOIN commit_files cf ON r.commit_hash = cf.commit_hash AND r.repository_id = cf.repository_id INNER JOIN files f ON cf.repository_id = f.repository_id AND cf.blob_hash = f.blob_hash AND cf.tree_hash = f.tree_hash AND cf.file_path = f.file_path WHERE r.ref_name = 'HEAD' GROUP BY f.repository_id) t ORDER BY num_files DESC LIMIT 10
5743
-
58-
ID: 'query10'
44+
ID: 'query08'
5945
Name: 'Top committers per repository'
6046
Statements:
6147
- SELECT * FROM (SELECT commit_author_email as author, repository_id as id, count(*) as num_commits FROM commits GROUP BY commit_author_email, repository_id) AS t ORDER BY num_commits DESC
6248
-
63-
ID: 'query11'
49+
ID: 'query09'
6450
Name: 'Top committers in all repositories'
6551
Statements:
6652
- SELECT * FROM (SELECT commit_author_email as author,count(*) as num_commits FROM commits GROUP BY commit_author_email) t ORDER BY num_commits DESC
6753
-
68-
ID: 'query12'
69-
Name: 'Union operation with pilosa index'
70-
Statements:
71-
- CREATE INDEX file_path_idx ON files USING pilosa (file_path) WITH (async = false)
72-
- SELECT blob_content FROM files WHERE file_path = 'LICENSE' OR file_path = 'README.md'
73-
- DROP INDEX file_path_idx ON files
74-
-
75-
ID: 'query13'
54+
ID: 'query10'
7655
Name: 'Count all commits with NOT operation'
7756
Statements:
7857
- SELECT COUNT(*) FROM commits WHERE NOT(commit_author_email = 'non existing email address');
7958
-
80-
ID: 'query14'
59+
ID: 'query11'
8160
Name: 'Count all commits with NOT operation and pilosa index'
8261
Statements:
8362
- CREATE INDEX email_idx ON commits USING pilosa (commit_author_email) WITH (async = false)

0 commit comments

Comments
 (0)