Changeset: a3bc761d79b8 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=a3bc761d79b8
Modified Files:
monetdb5/modules/mal/arrange.c
Branch: leftmart
Log Message:
Set properties for arrange oid bat
diffs (27 lines):
diff --git a/monetdb5/modules/mal/arrange.c b/monetdb5/modules/mal/arrange.c
--- a/monetdb5/modules/mal/arrange.c
+++ b/monetdb5/modules/mal/arrange.c
@@ -46,7 +46,7 @@ ARNGcreate(Client cntxt, MalBlkPtr mb, M
throw(MAL, "bat.arrange", RUNTIME_OBJECT_MISSING);
/* TODO: check if b already has index */
- /* TODO: check if b is sorted call ARNGindex b with void,(v)oid */
+ /* TODO: check if b is sorted, then index does nto make sense, other
action is needed*/
/* TODO: check if b is view and parent has index do a range select */
// create a temporary MAL function
@@ -380,6 +380,14 @@ do {
\
GDKfree(q);
}
/* fix m properties */
+ BATsetcount(m, m_sz);
+ BATseqbase(m, b->hseqbase);
+ BATseqbase(BATmirror(m), b->hseqbase);
+ m->tkey = 1;
+ m->T->nil = 0;
+ m->T->nonil = 1;
+ m->tsorted = m->trevsorted = 0;
+ m->tdense = 0;
if (ARNGindex(b, m) == GDK_FAIL) {
for (i = 0; i < n_ar; i++) {
BBPunfix(aid[i]);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list