Skip to content

Commit 4c5569c

Browse files
committed
fix ci
1 parent 30a6d1f commit 4c5569c

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

test/ecto/integration/clickhouse_joins_test.exs

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ defmodule Ecto.Integration.ClickHouseJoinsTest do
237237
]
238238
end
239239

240-
# https://github.com/ClickHouse/ClickHouse/blob/master/tests/queries/0_stateless/00976_asof_join_on.sql
240+
# https://github.com/ClickHouse/ClickHouse/blob/master/tests/queries/0_stateless/00976_asof_join_on.sql.j2
241241
# https://github.com/ClickHouse/ClickHouse/blob/master/tests/queries/0_stateless/00976_asof_join_on.reference
242242
test "00976_asof_join_on" do
243243
TestRepo.query!("CREATE TABLE 00976_A(a UInt32, t UInt32) ENGINE = Memory")
@@ -411,8 +411,17 @@ defmodule Ecto.Integration.ClickHouseJoinsTest do
411411
)
412412
end
413413

414+
[ch_version] = TestRepo.query!("select version()").rows
415+
416+
expected_error =
417+
if ch_version >= "25.2" do
418+
~r/INVALID_JOIN_ON_EXPRESSION/
419+
else
420+
~r/NOT_IMPLEMENTED/
421+
end
422+
414423
# SELECT A.a, A.t, B.b, B.t FROM A ASOF JOIN B ON A.a == B.b AND A.t < B.t OR A.a == B.b + 1 ORDER BY (A.a, A.t); -- { serverError 48 }
415-
assert_raise Ch.Error, ~r/NOT_IMPLEMENTED/, fn ->
424+
assert_raise Ch.Error, expected_error, fn ->
416425
TestRepo.all(
417426
from a in "00976_A",
418427
join: b in "00976_B",

0 commit comments

Comments
 (0)