Skip to content

Commit 41d6c9d

Browse files
committed
[SYSTEMDS-3906] Fix robustness transform-decode recoding
This patch fixes the flaky EntityResolutionBinaryTest application test.
1 parent 0c7e046 commit 41d6c9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/apache/sysds/runtime/transform/decode/DecoderRecode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ protected DecoderRecode(ValueType[] schema, boolean onOut, int[] rcCols) {
5959
}
6060

6161
public Object getRcMapValue(int i, long key) {
62-
return (_rcMapsDirect != null) ?
62+
return (_rcMapsDirect != null && key > 0) ?
6363
_rcMapsDirect[i][(int)key-1] : _rcMaps[i].get(key);
6464
}
6565

0 commit comments

Comments
 (0)