Skip to content

Commit

Permalink
fix totals response bug (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jasmine-ge authored Nov 18, 2024
1 parent ae30890 commit 7c6303a
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7c6303a

Please sign in to comment.