8000 Stabilize the forced_stat_collection regression test. As a criteria o… · postgrespro/aqo@4d08b21 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4d08b21

Browse files
danolivoAndrey Lepikhov
authored andcommitted
Stabilize the forced_stat_collection regression test. As a criteria of sorting table rows use md5(string) instead of string itself.
Tags: aqo.
1 parent e6488e2 commit 4d08b21

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

expected/forced_stat_collection.out

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ FROM aqo_queries JOIN aqo_query_stat USING (query_hash);
4444
f | f | f | {2.9634630129852053} | 1
4545
(2 rows)
4646

47-
SELECT query_text FROM aqo_query_texts ORDER BY (query_text);
47+
SELECT query_text FROM aqo_query_texts ORDER BY md5(query_text);
4848
query_text
4949
--------------------------------------------------------------------
50+
SELECT count(*) FROM person WHERE age<18;
5051
COMMON feature space (do not delete!)
5152
SELECT count(*) FROM person WHERE age<18 AND passport IS NOT NULL;
52-
SELECT count(*) FROM person WHERE age<18;
5353
(3 rows)
5454

5555
DROP EXTENSION aqo;

sql/forced_stat_collection.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ SELECT * FROM aqo_data;
3131
SELECT learn_aqo,use_aqo,auto_tuning,cardinality_error_without_aqo ce,executions_without_aqo nex
3232
FROM aqo_queries JOIN aqo_query_stat USING (query_hash);
3333

34-
SELECT query_text FROM aqo_query_texts ORDER BY (query_text);
34+
SELECT query_text FROM aqo_query_texts ORDER BY md5(query_text);
3535

3636
DROP EXTENSION aqo;

0 commit comments

Comments
 (0)
0