Skip to content

Commit b35e5e3

Browse files
committed
Make it work in the cloud
1 parent 318a239 commit b35e5e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flink-connector-clickhouse-base/src/test/java/org/apache/flink/connector/test/embedded/clickhouse/ClickHouseServerForTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public static int countRows(String table) throws ExecutionException, Interrupted
103103
}
104104

105105
public static String extractProductName() {
106-
String extractProductName = "SELECT http_user_agent FROM system.query_log WHERE type = 'QueryStart' and query_kind = 'Insert' LIMIT 10";
106+
String extractProductName = "SELECT http_user_agent FROM clusterAllReplicas('default', system.query_log) WHERE type = 'QueryStart' and query_kind = 'Insert' LIMIT 10";
107107
Client client = ClickHouseTestHelpers.getClient(host, port, isSSL, username, password);
108108
List<GenericRecord> userAgentResult = client.queryAll(extractProductName);
109109
return userAgentResult.get(0).getString(1);

0 commit comments

Comments
 (0)