- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
25 changed files
with
12,178 additions
and
6,496 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10,729 changes: 5,674 additions & 5,055 deletions
10,729
nix/tests/expected/ext_interface.out → nix/tests/expected/z_15_ext_interface.out
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 1 addition & 4 deletions
5
nix/tests/expected/z_odb_ext_interface.out → .../expected/z_15_postgis_tiger_geocoder.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
nix/tests/expected/z_odb_rum.out → nix/tests/expected/z_15_rum.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/* | ||
This test excludes indexes shipped with pgvector because orioledb doesn't support them yet | ||
*/ | ||
create schema v; | ||
create table v.items( | ||
id serial primary key, | ||
embedding vector(3), | ||
half_embedding halfvec(3), | ||
bit_embedding bit(3), | ||
sparse_embedding sparsevec(3) | ||
); | ||
-- Populate some records | ||
insert into v.items( | ||
embedding, | ||
half_embedding, | ||
bit_embedding, | ||
sparse_embedding | ||
) | ||
values | ||
('[1,2,3]', '[1,2,3]', '101', '{1:4}/3'), | ||
('[2,3,4]', '[2,3,4]', '010', '{1:7,3:0}/3'); | ||
-- Test op types | ||
select | ||
* | ||
from | ||
v.items | ||
order by | ||
embedding <-> '[2,3,5]', | ||
embedding <=> '[2,3,5]', | ||
embedding <+> '[2,3,5]', | ||
embedding <#> '[2,3,5]', | ||
half_embedding <-> '[2,3,5]', | ||
half_embedding <=> '[2,3,5]', | ||
half_embedding <+> '[2,3,5]', | ||
half_embedding <#> '[2,3,5]', | ||
sparse_embedding <-> '{2:4,3:1}/3', | ||
sparse_embedding <=> '{2:4,3:1}/3', | ||
sparse_embedding <+> '{2:4,3:1}/3', | ||
sparse_embedding <#> '{2:4,3:1}/3', | ||
bit_embedding <~> '011'; | ||
id | embedding | half_embedding | bit_embedding | sparse_embedding | ||
----+-----------+----------------+---------------+------------------ | ||
2 | [2,3,4] | [2,3,4] | 010 | {1:7}/3 | ||
1 | [1,2,3] | [1,2,3] | 101 | {1:4}/3 | ||
(2 rows) | ||
|
||
select | ||
avg(embedding), | ||
avg(half_embedding) | ||
from | ||
v.items; | ||
avg | avg | ||
---------------+--------------- | ||
[1.5,2.5,3.5] | [1.5,2.5,3.5] | ||
(1 row) | ||
|
||
-- Cleanup | ||
drop schema v cascade; | ||
NOTICE: drop cascades to table v.items |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 1 addition & 4 deletions
5
nix/tests/sql/z_odb_ext_interface.sql → ...tests/sql/z_15_postgis_tiger_geocoder.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/* | ||
This test excludes indexes shipped with pgvector because orioledb doesn't support them yet | ||
*/ | ||
create schema v; | ||
|
||
create table v.items( | ||
id serial primary key, | ||
embedding vector(3), | ||
half_embedding halfvec(3), | ||
bit_embedding bit(3), | ||
sparse_embedding sparsevec(3) | ||
); | ||
|
||
-- Populate some records | ||
insert into v.items( | ||
embedding, | ||
half_embedding, | ||
bit_embedding, | ||
sparse_embedding | ||
) | ||
values | ||
('[1,2,3]', '[1,2,3]', '101', '{1:4}/3'), | ||
('[2,3,4]', '[2,3,4]', '010', '{1:7,3:0}/3'); | ||
|
||
-- Test op types | ||
select | ||
* | ||
from | ||
v.items | ||
order by | ||
embedding <-> '[2,3,5]', | ||
embedding <=> '[2,3,5]', | ||
embedding <+> '[2,3,5]', | ||
embedding <#> '[2,3,5]', | ||
half_embedding <-> '[2,3,5]', | ||
half_embedding <=> '[2,3,5]', | ||
half_embedding <+> '[2,3,5]', | ||
half_embedding <#> '[2,3,5]', | ||
sparse_embedding <-> '{2:4,3:1}/3', | ||
sparse_embedding <=> '{2:4,3:1}/3', | ||
sparse_embedding <+> '{2:4,3:1}/3', | ||
sparse_embedding <#> '{2:4,3:1}/3', | ||
bit_embedding <~> '011'; | ||
|
||
select | ||
avg(embedding), | ||
avg(half_embedding) | ||
from | ||
v.items; | ||
|
||
-- Cleanup | ||
drop schema v cascade; |