Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 2fafbe5

Browse files
author
Nikita Glukhov
committed
Fix expected accuracy in test for @>
1 parent 51dd721 commit 2fafbe5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/test/regress/expected/jsonb_stats.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ SELECT check_jsonb_stats_test_estimate($$js @> '{"array": [1, 2, 100]}'$$, 1);
576576
t
577577
(1 row)
578578

579-
SELECT check_jsonb_stats_test_estimate($$js @> '{"array": [1, 2, 3]}'$$, 100);
579+
SELECT check_jsonb_stats_test_estimate($$js @> '{"array": [1, 2, 3]}'$$, 3);
580580
check_jsonb_stats_test_estimate
581581
---------------------------------
582582
t

src/test/regress/sql/jsonb_stats.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ SELECT check_jsonb_stats_test_estimate($$js @> '{"array": [100]}'$$, 0.3);
218218
SELECT check_jsonb_stats_test_estimate($$js @> '{"array": [1, 2]}'$$, 1);
219219
SELECT check_jsonb_stats_test_estimate($$js @> '{"array": [1, 100]}'$$, 1);
220220
SELECT check_jsonb_stats_test_estimate($$js @> '{"array": [1, 2, 100]}'$$, 1);
221-
SELECT check_jsonb_stats_test_estimate($$js @> '{"array": [1, 2, 3]}'$$, 100);
221+
SELECT check_jsonb_stats_test_estimate($$js @> '{"array": [1, 2, 3]}'$$, 3);
222222

223223
-- check misc containment
224224
SELECT check_jsonb_stats_test_estimate($$js @> '"foo"'$$, 0.1);

0 commit comments

Comments
 (0)