Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

import static java.lang.String.format;
import static org.testcontainers.containers.ClickHouseContainer.HTTP_PORT;
import static org.testcontainers.utility.MountableFile.forClasspathResource;

public class TestingClickHouseServer
implements Closeable
Expand All @@ -33,6 +34,7 @@ public TestingClickHouseServer()
{
// Use 2nd stable version
dockerContainer = (ClickHouseContainer) new ClickHouseContainer(CLICKHOUSE_IMAGE)
.withCopyFileToContainer(forClasspathResource("custom.xml"), "/etc/clickhouse-server/config.d/custom.xml")
.withStartupAttempts(10);

dockerContainer.start();
Expand Down
5 changes: 5 additions & 0 deletions plugin/trino-clickhouse/src/test/resources/custom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0"?>
<yandex>
<!-- To avoid "failed to response" error message during copy of TPCH tables -->
<keep_alive_timeout>10</keep_alive_timeout>
</yandex>