Skip to content

Commit 1a15b57

Browse files
committed
workaround: copy fname to scratch file for consistency
1 parent cac4797 commit 1a15b57

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/org/apache/sysds/runtime/instructions/cp/VariableCPInstruction.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1075,7 +1075,8 @@ else if( getInput1().getDataType() == DataType.MATRIX ) {
10751075

10761076
// 2. Clear its dirty flag and update its file path to the result we just wrote.
10771077
// This tells the system that the data for this variable now lives in 'fname'.
1078-
mo.setFileName(fname);
1078+
// mo.setFileName(fname);
1079+
HDFSTool.copyFileOnHDFS(fname, mo.getFileName());
10791080
mo.setDirty(false);
10801081

10811082
}

0 commit comments

Comments
 (0)