Skip to content

Commit 8cec32f

Browse files
committed
ignore minor diffs in float value
1 parent e2fb1b3 commit 8cec32f

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

nix/tests/expected/z_orioledb_rum.out

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,18 @@ values
2323
create index rumidx on v.test_rum using rum (a rum_tsvector_ops);
2424
select
2525
t,
26-
a <=> to_tsquery('english', 'beautiful | place') as rank
26+
round(a <=> to_tsquery('english', 'beautiful | place')) as rank
2727
from
2828
v.test_rum
2929
where
3030
a @@ to_tsquery('english', 'beautiful | place')
3131
order by
3232
a <=> to_tsquery('english', 'beautiful | place');
33-
t | rank
34-
---------------------------------+---------
35-
it looks like a beautiful place | 8.22467
36-
the situation is most beautiful | 16.4493
37-
it is a beautiful | 16.4493
33+
t | rank
34+
---------------------------------+------
35+
it looks like a beautiful place | 8
36+
the situation is most beautiful | 16
37+
it is a beautiful | 16
3838
(3 rows)
3939

4040
drop schema v cascade;

nix/tests/sql/z_orioledb_rum.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ create index rumidx on v.test_rum using rum (a rum_tsvector_ops);
2828

2929
select
3030
t,
31-
a <=> to_tsquery('english', 'beautiful | place') as rank
31+
round(a <=> to_tsquery('english', 'beautiful | place')) as rank
3232
from
3333
v.test_rum
3434
where

0 commit comments

Comments
 (0)