Changeset: af13a86e4c6c for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=af13a86e4c6c
Modified Files:
        monetdb5/modules/mal/Tests/mat.stable.out
        monetdb5/modules/mal/mat.c
Branch: default
Log Message:

Produce a dense head in mat.pack.
Also, no need to use BATsettrivprop or BATderiveProps (and certainly
not both!) after just using BUNappend.


diffs (31 lines):

diff --git a/monetdb5/modules/mal/Tests/mat.stable.out 
b/monetdb5/modules/mal/Tests/mat.stable.out
--- a/monetdb5/modules/mal/Tests/mat.stable.out
+++ b/monetdb5/modules/mal/Tests/mat.stable.out
@@ -19,10 +19,10 @@ end main;
 #-----------------#
 # h    t         # name
 # void int       # type
-#-----------------#
-[ nil,   1       ]
-[ nil,   2       ]
-[ nil,   3       ]
+#--------------------------#
+[ 0@0, 1  ]
+[ 1@0, 2  ]
+[ 2@0, 3  ]
 
 # 00:24:10 >  
 # 00:24:10 >  Done.
diff --git a/monetdb5/modules/mal/mat.c b/monetdb5/modules/mal/mat.c
--- a/monetdb5/modules/mal/mat.c
+++ b/monetdb5/modules/mal/mat.c
@@ -509,8 +509,7 @@ MATpackValues(Client cntxt, MalBlkPtr mb
                for(i = first; i < p->argc; i++)
                        BUNappend(bn, getArgReference(stk, p, i), TRUE);
        }
-    BATsettrivprop(bn);
-    BATderiveProps(bn,FALSE);
+       BATseqbase(bn, 0);
        ret= getArgReference_bat(stk,p,0);
        BBPkeepref(*ret = bn->batCacheid);
        return MAL_SUCCEED;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to