File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/main/java/org/apache/sysds/runtime/transform/decode Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ public void initMetaData(FrameBlock meta) {
144144 ColumnMetadata d =meta .getColumnMetadata ()[_dcCols [ix2 ]-1 ];
145145 String v = meta .getString (0 , _dcCols [ix2 ]-1 );
146146 if (v .length () > 1 && v .charAt (0 ) == '¿' ){
147- off += UtilFunctions .parseToLong (v .substring (1 ));
147+ off += UtilFunctions .parseToLong (v .substring (1 )) - 1 ;
148148 }
149149 else {
150150 off += d .isDefault () ? -1 : d .getNumDistinct () - 1 ;
Original file line number Diff line number Diff line change @@ -114,8 +114,8 @@ public void initMetaData(FrameBlock meta) {
114114 else { //_colList[ix1] > _dcCols[ix2]
115115 ColumnMetadata d =meta .getColumnMetadata ()[_dcCols [ix2 ]-1 ];
116116 String v = meta .getString ( 0 ,_dcCols [ix2 ]-1 );
117- if (v .charAt (0 ) == '¿' ){
118- off += UtilFunctions .parseToLong (v .substring (1 ));
117+ if (v .length () > 1 && v . charAt (0 ) == '¿' ){
118+ off += UtilFunctions .parseToLong (v .substring (1 )) - 1 ;
119119 }
120120 else {
121121 off += d .isDefault () ? -1 : d .getNumDistinct () - 1 ;
You can’t perform that action at this time.
0 commit comments