Skip to content

Commit 6d2feaa

Browse files
committed
updated client v2 example
1 parent e9ef623 commit 6d2feaa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/client-v2/src/main/java/com/clickhouse/examples/client_v2/SimpleReader.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ public void readDataUsingBinaryFormat() {
5959
try (QueryResponse response = client.query(sql).get(3, TimeUnit.SECONDS);) {
6060

6161
// Create a reader to access the data in a convenient way
62-
ClickHouseBinaryFormatReader reader = new RowBinaryWithNamesAndTypesFormatReader(response.getInputStream());
62+
ClickHouseBinaryFormatReader reader = new RowBinaryWithNamesAndTypesFormatReader(response.getInputStream(),
63+
response.getSettings());
6364

6465
while (reader.hasNext()) {
6566
reader.next(); // Read the next record from stream and parse it

0 commit comments

Comments
 (0)