Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[client-v2] Attach TimeZone to a QueryResponse & use TimeZone settings in binary readers #1763

Merged
merged 8 commits into from
Aug 6, 2024
Prev Previous commit
Next Next commit
updated client v2 example
  • Loading branch information
chernser committed Aug 5, 2024
commit 6d2feaacac5fab425442b29d1c2a7292b120c7bb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ public void readDataUsingBinaryFormat() {
try (QueryResponse response = client.query(sql).get(3, TimeUnit.SECONDS);) {

// Create a reader to access the data in a convenient way
ClickHouseBinaryFormatReader reader = new RowBinaryWithNamesAndTypesFormatReader(response.getInputStream());
ClickHouseBinaryFormatReader reader = new RowBinaryWithNamesAndTypesFormatReader(response.getInputStream(),
response.getSettings());

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