Skip to content

Commit d9fda17

Browse files
authored
Merge pull request #2503 from enqueue/paramtests_cloud_no_memory
Make test work with ClickHouse Cloud
2 parents e1d46ff + 9944dd8 commit d9fda17

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

client-v2/src/test/java/com/clickhouse/client/ParameterizedQueryTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import java.util.concurrent.TimeUnit;
1717
import java.util.concurrent.atomic.AtomicInteger;
1818
import java.util.function.Supplier;
19+
1920
import org.testng.Assert;
2021
import org.testng.annotations.AfterMethod;
2122
import org.testng.annotations.BeforeMethod;
@@ -231,7 +232,8 @@ void testStringParams(String paramValue) throws Exception {
231232
String table = "test_params_unicode";
232233
String column = "val";
233234
client.execute("DROP TABLE IF EXISTS " + table).get();
234-
client.execute("CREATE TABLE " + table + "(" + column + " String) Engine = Memory").get();
235+
client.execute("CREATE TABLE " + table + "(" + column + " String) "
236+
+ "ENGINE = MergeTree ORDER BY tuple()").get();
235237
client.query(
236238
"INSERT INTO " + table + "(" + column + ") VALUES ('" + paramValue + "')").get();
237239
try (QueryResponse r = client.query(

0 commit comments

Comments
 (0)