Skip to content

Cannot invoke "org.apache.sysds.parser.Statement.getFilename()" because "s" is null #338

@j143

Description

@j143

dml

m_tee = externalFunction(matrix[double] A) return (matrix[double] B, matrix[double] C) implemented in (classname="org.apache.sysds.runtime.instructions.ooc.TeeOOCInstruction", exectype="ooc");

# Read the input matrix as a stream
X = read($1);

# Use the tee operator to split the stream of X into two identical streams
[X1, X2] = m_tee(X);

# Perform two independent operations on the two output streams
s1 = sum(X1);
s2 = sum(X2);

# Write the two scalar results to separate files for verification
write(s1, $2);
write(s2, $3);
java.lang.NullPointerException: Cannot invoke "org.apache.sysds.parser.Statement.getFilename()" because "s" is null
	at org.apache.sysds.parser.StatementBlock.addStatement(StatementBlock.java:120)
	at org.apache.sysds.parser.dml.DMLParserWrapper.createDMLProgram(DMLParserWrapper.java:204)
	at org.apache.sysds.parser.dml.DMLParserWrapper.doParse(DMLParserWrapper.java:188)
	at org.apache.sysds.parser.dml.DMLParserWrapper.parse(DMLParserWrapper.java:89)
	at org.apache.sysds.api.DMLScript.execute(DMLScript.java:452)
	at org.apache.sysds.api.DMLScript.executeScript(DMLScript.java:329)
	at org.apache.sysds.test.AutomatedTestBase.main(AutomatedTestBase.java:1547)
	at org.apache.sysds.test.AutomatedTestBase.runTestWithTimeout(AutomatedTestBase.java:1502)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions