This is an automated email from the ASF dual-hosted git repository.
mboehm7 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/systemds.git
The following commit(s) were added to refs/heads/main by this push:
new a914c0d0ca [SYSTEMDS-3889] Fix new matrix-scalar rewrite test (missing
cast)
a914c0d0ca is described below
commit a914c0d0ca307afb357cb46bc0390f58b8544faf
Author: Matthias Boehm <[email protected]>
AuthorDate: Fri Jun 13 16:51:52 2025 +0200
[SYSTEMDS-3889] Fix new matrix-scalar rewrite test (missing cast)
This patch fixes issues of the test dml scripts in terms of missing
casts from 1-x-1 matrices to scalars. Interestingly, the test ran
fine in local environments because the parser validation runs
differently, and subsequently these 1-x-1 matrices where automatically
rewritten to scalars.
---
.../scripts/functions/rewrite/RewriteScalarMinusMatrixMinusScalar.dml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/src/test/scripts/functions/rewrite/RewriteScalarMinusMatrixMinusScalar.dml
b/src/test/scripts/functions/rewrite/RewriteScalarMinusMatrixMinusScalar.dml
index 28cdb61dec..af8aff7b50 100644
--- a/src/test/scripts/functions/rewrite/RewriteScalarMinusMatrixMinusScalar.dml
+++ b/src/test/scripts/functions/rewrite/RewriteScalarMinusMatrixMinusScalar.dml
@@ -19,8 +19,8 @@
#
#-------------------------------------------------------------
A = read($1);
-a = read($2);
-b = read($3);
+a = as.scalar(read($2));
+b = as.scalar(read($3));
R = a - A - b;