From 7c6303af15495c4a9ff5e2b7944d10327558d4f6 Mon Sep 17 00:00:00 2001 From: Jasmine-ge Date: Mon, 18 Nov 2024 10:17:15 +0000 Subject: [PATCH] fix totals response bug (#65) --- .../main/java/com/timeplus/protocol/TotalsResponse.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/timeplus-native-jdbc/src/main/java/com/timeplus/protocol/TotalsResponse.java b/timeplus-native-jdbc/src/main/java/com/timeplus/protocol/TotalsResponse.java index 823ad86..26d3057 100644 --- a/timeplus-native-jdbc/src/main/java/com/timeplus/protocol/TotalsResponse.java +++ b/timeplus-native-jdbc/src/main/java/com/timeplus/protocol/TotalsResponse.java @@ -25,7 +25,12 @@ public class TotalsResponse implements Response { public static TotalsResponse readFrom(BinaryDeserializer deserializer, NativeContext.ServerContext info) throws IOException, SQLException { - return new TotalsResponse(deserializer.readUTF8StringBinary(), Block.readFrom(deserializer, info)); + String name = deserializer.readUTF8StringBinary(); /// external table name + + deserializer.maybeEnableCompressed(); + Block block = Block.readFrom(deserializer, info); + deserializer.maybeDisableCompressed(); + return new TotalsResponse(name, block); } private final String name;