Changeset: 02ae81ad5486 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=02ae81ad5486
Modified Files:
        monetdb5/modules/mal/mal_weld.c
Branch: mal-weld
Log Message:

mal_weld: better error messages for not yet implemented parts


diffs (30 lines):

diff --git a/monetdb5/modules/mal/mal_weld.c b/monetdb5/modules/mal/mal_weld.c
--- a/monetdb5/modules/mal/mal_weld.c
+++ b/monetdb5/modules/mal/mal_weld.c
@@ -361,7 +361,7 @@ WeldAggrUnary(MalBlkPtr mb, MalStkPtr st
                s = *getArgReference_bat(stk, pci, 2);          /* might have 
value */
                wstate = *getArgReference_ptr(stk, pci, 3); /* has value */
                if (!isaBatType(getArgType(mb, pci, 2))) {  /* nil_if_empty not 
implemented */
-                       throw(MAL, malfunc, PROGRAM_NYI);
+                       throw(MAL, malfunc, PROGRAM_NYI": nil_if_empty not 
implemented");
                }
        } else {
                sid = -1;
@@ -679,7 +679,7 @@ WeldBatcalcBinary(MalBlkPtr mb, MalStkPt
        str any_1 = getWeldType(getBatType(getArgType(mb, pci, 0)));
 
        if (getBatType(leftType) != getBatType(rightType)) {
-               throw(MAL, malfunc, PROGRAM_NYI);
+               throw(MAL, malfunc, PROGRAM_NYI": missmatching types in 
BatcalcBinary: %s", malfunc);
        }
 
        char weldStmt[STR_SIZE_INC], *cast;
@@ -970,7 +970,7 @@ WeldAggrSub(MalBlkPtr mb, MalStkPtr stk,
        weldState *wstate = *getArgReference_ptr(stk, pci, pci->argc - 1); /* 
has value */
        /* TODO Weld doesn't yet accept mismatching types for binary ops */
        if (retType != bidType) {
-               throw(MAL, malfunc, PROGRAM_NYI);
+               throw(MAL, malfunc, PROGRAM_NYI": missmatching types in 
AggrSum: %s", malfunc);
        }
 
        char identValue[128];
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to