Changeset: a384b06d6f96 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=a384b06d6f96
Modified Files:
sql/backends/monet5/datacell/basket.mx
sql/backends/monet5/datacell/opt_datacell.mx
Branch: default
Log Message:
Handle single tuple contineous queries
diffs (30 lines):
diff --git a/sql/backends/monet5/datacell/basket.mx
b/sql/backends/monet5/datacell/basket.mx
--- a/sql/backends/monet5/datacell/basket.mx
+++ b/sql/backends/monet5/datacell/basket.mx
@@ -44,6 +44,10 @@
address BSKTgrab
comment "Take a snapshot of the basket, destroying the origin when flg is set";
+pattern pass(tbl:str, cols:any...)
+address BSKTpass
+comment "Dump the new tuples into the basket";
+
pattern pass(tbl:str, cols:bat[:oid,:any]...)
address BSKTpass
comment "Dump the new tuples into the basket";
diff --git a/sql/backends/monet5/datacell/opt_datacell.mx
b/sql/backends/monet5/datacell/opt_datacell.mx
--- a/sql/backends/monet5/datacell/opt_datacell.mx
+++ b/sql/backends/monet5/datacell/opt_datacell.mx
@@ -183,7 +183,12 @@
break;
}
if ( fnd) {
+ /* upgrade single values to a BAT */
clrFunction(p);
+ if (
!isaBatType(getVarType(mb,getArg(p,5))) ) {
+ getModuleId(p) = batRef;
+ getFunctionId(p) = packRef;
+ }
getArg(p, 0) = getArg(qa[j], k + 2);
getArg(p, 1) = getArg(p, 5);
p->argc = 2;
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list