Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/lang-elixir-postgrex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,14 @@ jobs:
matrix:
os: [ 'ubuntu-latest' ]
cratedb-version: [ 'nightly' ]
otp-version: ['26', '27']
elixir-version: ['1.17', '1.18']
otp-version: [
'27',
'28',
]
elixir-version: [
'1.18',
'1.19',
]

services:
cratedb:
Expand Down
2 changes: 1 addition & 1 deletion by-language/elixir-postgrex/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ defmodule CrateDBExample.MixProject do
defp deps() do
[
{:jason, "~> 1.4"},
{:postgrex, "~> 0.21.0"},
{:postgrex, "~> 0.21"},
]
end

Expand Down
7 changes: 4 additions & 3 deletions by-language/elixir-postgrex/test/basic_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,10 @@ defmodule CrateDBTest do
SELECT id
FROM testdrive.elixir
WHERE knn_match(data, ?, 2)
ORDER BY id;
", [[0.1, 0.2, 0.3]])
assert [~c"*", ~c"+", ~c",", ~c"-"] == result.rows
ORDER BY VECTOR_SIMILARITY(data, ?) DESC
LIMIT 3;
", [[0.1, 0.2, 0.3], [0.1, 0.2, 0.3]])
assert [[42], [44], [45]] == result.rows

end

Expand Down