From 1a091dcafc3915bb5d975791287a280675193453 Mon Sep 17 00:00:00 2001 From: BeenAxis Date: Wed, 21 Aug 2024 12:02:19 +0300 Subject: [PATCH] fix: null TimeZone Exception --- .../client/api/data_formats/internal/BinaryStreamReader.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client-v2/src/main/java/com/clickhouse/client/api/data_formats/internal/BinaryStreamReader.java b/client-v2/src/main/java/com/clickhouse/client/api/data_formats/internal/BinaryStreamReader.java index 89bbb1895..825a37e9f 100644 --- a/client-v2/src/main/java/com/clickhouse/client/api/data_formats/internal/BinaryStreamReader.java +++ b/client-v2/src/main/java/com/clickhouse/client/api/data_formats/internal/BinaryStreamReader.java @@ -130,7 +130,8 @@ private T readValueImpl(ClickHouseColumn column) throws IOException { return (T) readDateTime32(input, column.getTimeZone() == null ? timeZone: column.getTimeZone()); case DateTime64: - return (T) readDateTime64(input, 3, column.getTimeZone()); + return (T) readDateTime64(input, 3, column.getTimeZone() == null ? timeZone: + column.getTimeZone()); case IntervalYear: case IntervalQuarter: