update test output

This commit is contained in:
Andy Eschbacher 2015-06-25 08:17:41 -04:00
parent 97140b17c9
commit 13946b4d47
2 changed files with 4 additions and 4 deletions

View File

@ -19,10 +19,10 @@ BEGIN
-- for n <= 10 depending on # of distinct values
EXECUTE 'WITH a As (
SELECT
count(*) cnt,
e
count(*) cnt
FROM
(SELECT * FROM unnest($2) e ) x
WHERE e is not null
GROUP BY e
ORDER BY cnt DESC
),
@ -31,7 +31,7 @@ BEGIN
sum(cnt) OVER (ORDER BY cnt DESC) / $1 As cumsum
FROM a
LIMIT 10
)
)
SELECT max(cumsum) maxval FROM b'
INTO maxval
USING element_count, in_array;

View File

@ -1 +1 @@
f
0