Changeset: ec967f0536ce for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=ec967f0536ce
Modified Files:
sql/backends/monet5/UDF/udf.c
Branch: Dec2011
Log Message:
UDF: cleaned-up property propagation
diffs (30 lines):
diff --git a/sql/backends/monet5/UDF/udf.c b/sql/backends/monet5/UDF/udf.c
--- a/sql/backends/monet5/UDF/udf.c
+++ b/sql/backends/monet5/UDF/udf.c
@@ -70,12 +70,16 @@ str UDFBATreverse(int *ret, int *bid)
throw(MAL, "mal.reverse", MAL_MALLOC_FAIL);
}
- if (left->htype == TYPE_void)
+ /* manage the properties of the result */
+ bn->hdense = BAThdense(left);
+ if (BAThdense(left))
BATseqbase(bn, left->hseqbase);
- /* manage the properties of the result */
bn->hsorted = left->hsorted;
+ BATkey(bn, BAThkey(left));
+
bn->tsorted = 0; /* assume not sorted afterwards */
+ BATkey(BATmirror(bn), BATtkey(left));
li = bat_iterator(left);
/* advice on sequential scan */
@@ -91,6 +95,7 @@ str UDFBATreverse(int *ret, int *bid)
bunfastins(bn, h, v);
GDKfree(v);
}
+
BATaccessEnd(left, USE_HEAD | USE_TAIL, MMAP_SEQUENTIAL);
if (!(bn->batDirty & 2))
bn = BATsetaccess(bn, BAT_READ);
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list