Skip to content

Commit a8903dc

Browse files
committed
bug fix if null string is last element in the batch
1 parent 319cb62 commit a8903dc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/org/apache/sysds/runtime/util/UnixPipeUtils.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,14 +514,15 @@ private static VarFillResult fillVariableArrayFromBytes(
514514
if (len < 0) {
515515
// null string
516516
array.set(offsetOut++, (String) null);
517+
bytesConsumed = bb.position();
517518
continue;
518519
}
519520
if (bb.remaining() < len) {
520521
// Not enough bytes for full payload → rollback and stop
521522
bb.reset();
522523
break;
523524
}
524-
525+
525526

526527
switch (type) {
527528
case STRING -> {

0 commit comments

Comments
 (0)