Changeset: 36bfc284c083 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=36bfc284c083
Modified Files:
gdk/gdk_bat.c
Branch: Feb2013
Log Message:
Don't blindly copy dense flag to non-oid column.
diffs (21 lines):
diff --git a/gdk/gdk_bat.c b/gdk/gdk_bat.c
--- a/gdk/gdk_bat.c
+++ b/gdk/gdk_bat.c
@@ -971,7 +971,7 @@ BATcopy(BAT *b, int ht, int tt, int writ
} else if (ATOMtype(ATOMstorage(ht)) ==
ATOMtype(ATOMstorage(b->htype))) {
bn->hsorted = b->hsorted || (cnt <= 1 &&
BATatoms[b->htype].linear);
bn->hrevsorted = b->hrevsorted || (cnt <= 1 &&
BATatoms[b->htype].linear);
- bn->hdense = b->hdense;
+ bn->hdense = b->hdense && ATOMtype(bn->htype) == TYPE_oid;
if (b->hkey)
BATkey(bn, TRUE);
bn->H->nonil = b->H->nonil;
@@ -984,7 +984,7 @@ BATcopy(BAT *b, int ht, int tt, int writ
} else if (ATOMtype(ATOMstorage(tt)) ==
ATOMtype(ATOMstorage(b->ttype))) {
bn->tsorted = b->tsorted || (cnt <= 1 &&
BATatoms[b->ttype].linear);
bn->trevsorted = b->trevsorted || (cnt <= 1 &&
BATatoms[b->ttype].linear);
- bn->tdense = b->tdense;
+ bn->tdense = b->tdense && ATOMtype(bn->ttype) == TYPE_oid;
if (b->tkey)
BATkey(BATmirror(bn), TRUE);
bn->T->nonil = b->T->nonil;
_______________________________________________
checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list