j143 commented on code in PR #2302:
URL: https://github.com/apache/systemds/pull/2302#discussion_r2249938985


##########
src/main/java/org/apache/sysds/runtime/instructions/cp/VariableCPInstruction.java:
##########
@@ -1060,6 +1054,36 @@ private void processWriteInstruction(ExecutionContext 
ec) {
                        
HDFSTool.writeScalarToHDFS(ec.getScalarInput(getInput1()), fname);
                }
                else if( getInput1().getDataType() == DataType.MATRIX ) {
+                       MatrixObject mo = 
ec.getMatrixObject(getInput1().getName());
+                       int blen = Integer.parseInt(getInput4().getName());
+                       LocalTaskQueue<IndexedMatrixValue> stream = 
mo.getStreamHandle();
+
+                       if (stream != null) {

Review Comment:
   Due to recompilation, this is visited the second. Since the stream is null 
the second time, it fails.
   
   So, I tried setting the values explicitly. But, recompilation still 
happening.
   
   ```java
   mo.updateDataCharacteristics(mc);
   HDFSTool.copyFileOnHDFS(fname, mo.getFileName());
   mo.setDirty(false);
   ```
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@systemds.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to