Skip to content

Commit 78521ef

Browse files
fix test
1 parent 740f4b6 commit 78521ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/queries/0_stateless/03512_cast_logical_error.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ DROP TABLE IF EXISTS t1;
77
DROP TABLE IF EXISTS v0;
88

99
CREATE TABLE t0 (c0 Array(String)) ENGINE = Memory;
10-
CREATE TABLE t1 (c0 Array(String)) ENGINE = Distributed('test_shard_localhost', default, t0);
10+
CREATE TABLE t1 (c0 Array(String)) ENGINE = Distributed('test_shard_localhost', currentDatabase(), t0);
1111
CREATE MATERIALIZED VIEW v0 TO t1 (c0 String) AS (SELECT 1::Array(Int) AS c0); -- { serverError CANNOT_READ_ARRAY_FROM_TEXT }
1212

1313
DROP TABLE IF EXISTS t0;
1414
DROP TABLE IF EXISTS t1;
1515
DROP TABLE IF EXISTS v0;
1616

1717
CREATE TABLE t0 (c1 Int) ENGINE = MergeTree() ORDER BY tuple();
18-
CREATE TABLE t1 (c1 Date) ENGINE = Distributed('test_shard_localhost', default, t0);
18+
CREATE TABLE t1 (c1 Date) ENGINE = Distributed('test_shard_localhost', currentDatabase(), t0);
1919
CREATE MATERIALIZED VIEW v0 TO t1 (c1 String) AS (SELECT '2010-10-10' AS c1);
2020
SELECT CAST(c1 AS Enum('1' = 1)) FROM v0;
2121

0 commit comments

Comments
 (0)