Skip to content

Commit 9d81e0e

Browse files
author
chengyitian
committed
AJ-518: fix deserialize get vector logic;
1 parent 9dfbcd9 commit 9d81e0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/com/xxdb/streaming/client/StreamDeserializer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public BasicAnyVector parse(byte[] data) throws Exception {
148148
// ret.setEntity(i, basicEntityFactory.createEntity(Entity.DATA_FORM.DF_SCALAR, colTypes_.get(i), dataStream, false));
149149
for (int i = 0; i < columns; ++i) {
150150
if (colTypes_.get(i).getValue() >= Entity.DATA_TYPE.DT_BOOL_ARRAY.getValue() && colTypes_.get(i).getValue() <= Entity.DATA_TYPE.DT_DECIMAL128_ARRAY.getValue()) {
151-
ret.setEntity(i, new BasicArrayVector(colTypes_.get(i), dataStream, 1, 0, -1));
151+
ret.setEntity(i, (new BasicArrayVector(colTypes_.get(i), dataStream, 1, 0, -1)).get(0));
152152
} else {
153153
ret.setEntity(i, basicEntityFactory.createEntity(Entity.DATA_FORM.DF_SCALAR, colTypes_.get(i), dataStream, false));
154154
}

0 commit comments

Comments
 (0)