Changeset: 8f43db62f38a for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/8f43db62f38a
Modified Files:
clients/Tests/MAL-signatures-hge.test
clients/Tests/MAL-signatures.test
monetdb5/modules/mal/batcalc.c
Branch: default
Log Message:
Bitwise NOT does not make sense for floating point.
diffs (72 lines):
diff --git a/clients/Tests/MAL-signatures-hge.test
b/clients/Tests/MAL-signatures-hge.test
--- a/clients/Tests/MAL-signatures-hge.test
+++ b/clients/Tests/MAL-signatures-hge.test
@@ -29265,26 +29265,6 @@ CMDbatNOT
Unary bitwise not over the tail of the bat with candidates list
batcalc
not
-pattern batcalc.not(X_0:bat[:dbl]):bat[:dbl]
-CMDbatNOT
-Unary bitwise not over the tail of the bat
-batcalc
-not
-pattern batcalc.not(X_0:bat[:dbl], X_1:bat[:oid]):bat[:dbl]
-CMDbatNOT
-Unary bitwise not over the tail of the bat with candidates list
-batcalc
-not
-pattern batcalc.not(X_0:bat[:flt]):bat[:flt]
-CMDbatNOT
-Unary bitwise not over the tail of the bat
-batcalc
-not
-pattern batcalc.not(X_0:bat[:flt], X_1:bat[:oid]):bat[:flt]
-CMDbatNOT
-Unary bitwise not over the tail of the bat with candidates list
-batcalc
-not
pattern batcalc.not(X_0:bat[:hge]):bat[:hge]
CMDbatNOT
Unary bitwise not over the tail of the bat
diff --git a/clients/Tests/MAL-signatures.test
b/clients/Tests/MAL-signatures.test
--- a/clients/Tests/MAL-signatures.test
+++ b/clients/Tests/MAL-signatures.test
@@ -20625,26 +20625,6 @@ CMDbatNOT
Unary bitwise not over the tail of the bat with candidates list
batcalc
not
-pattern batcalc.not(X_0:bat[:dbl]):bat[:dbl]
-CMDbatNOT
-Unary bitwise not over the tail of the bat
-batcalc
-not
-pattern batcalc.not(X_0:bat[:dbl], X_1:bat[:oid]):bat[:dbl]
-CMDbatNOT
-Unary bitwise not over the tail of the bat with candidates list
-batcalc
-not
-pattern batcalc.not(X_0:bat[:flt]):bat[:flt]
-CMDbatNOT
-Unary bitwise not over the tail of the bat
-batcalc
-not
-pattern batcalc.not(X_0:bat[:flt], X_1:bat[:oid]):bat[:flt]
-CMDbatNOT
-Unary bitwise not over the tail of the bat with candidates list
-batcalc
-not
pattern batcalc.not(X_0:bat[:int]):bat[:int]
CMDbatNOT
Unary bitwise not over the tail of the bat
diff --git a/monetdb5/modules/mal/batcalc.c b/monetdb5/modules/mal/batcalc.c
--- a/monetdb5/modules/mal/batcalc.c
+++ b/monetdb5/modules/mal/batcalc.c
@@ -1306,7 +1306,7 @@ batcalc_init(void)
err += melFunction(false, "batcalc", "iszero",
(MALfcn)&CMDbatISZERO, "CMDbatISZERO", false, "Unary check for zero over the
tail of the bat", 1, 2, ret, arg);
err += melFunction(false, "batcalc", "iszero",
(MALfcn)&CMDbatISZERO, "CMDbatISZERO", false, "Unary check for zero over the
tail of the bat with candidates list", 1, 3, ret, arg, cand);
}
- for(tp = types; tp < extra && !err; tp++) { /* bit + numeric */
+ for(tp = types; tp < floats && !err; tp++) { /* bit + numeric */
mel_func_arg ret = { .type = *tp, .isbat =1 };
mel_func_arg arg = { .type = *tp, .isbat =1 };
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]