Skip to content

Commit 499b6e3

Browse files
committed
[MINOR] Add validation error if Quantizing_compress is not allowed on script level.
Closes #2259
1 parent f7746cb commit 499b6e3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/org/apache/sysds/parser/BuiltinFunctionExpression.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2011,7 +2011,7 @@ else if(this.getOpCode() == Builtins.MAX_POOL || this.getOpCode() == Builtins.AV
20112011
output.setValueType(id.getValueType());
20122012
}
20132013
else
2014-
raiseValidateError("Compress/DeCompress instruction not allowed in dml script");
2014+
raiseValidateError("The compress or decompress instruction is not allowed in dml scripts");
20152015
break;
20162016
case QUANTIZE_COMPRESS:
20172017
if(OptimizerUtils.ALLOW_SCRIPT_LEVEL_QUANTIZE_COMPRESS_COMMAND) {
@@ -2039,6 +2039,8 @@ else if(this.getOpCode() == Builtins.MAX_POOL || this.getOpCode() == Builtins.AV
20392039
}
20402040
}
20412041
}
2042+
else
2043+
raiseValidateError("The quantize_compress instruction not allowed in dml scripts");
20422044
break;
20432045

20442046
case ROW_COUNT_DISTINCT:

0 commit comments

Comments
 (0)