Changeset: 5aa9944867ae for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=5aa9944867ae Modified Files: monetdb5/modules/kernel/algebra.mx Branch: default Log Message:
Don't be restrictive in what you can project with algebra.project. diffs (31 lines): diff --git a/monetdb5/modules/kernel/algebra.mx b/monetdb5/modules/kernel/algebra.mx --- a/monetdb5/modules/kernel/algebra.mx +++ b/monetdb5/modules/kernel/algebra.mx @@ -533,24 +533,13 @@ command project(b:bat[:any_1,:any_2]) :b address ALGprojectNIL comment "Extract the head of a BAT."; -@= projectGrp -pattern project(v:@1,b:bat[:any_2,:any_1]) :bat[:@1,:any_1] +pattern project(v:any_3,b:bat[:any_2,:any_1]) :bat[:any_3,:any_1] address ALGprojecthead comment "Fill the head with a constant, e.g. [0~b]"; -pattern project(b:bat[:any_2,:any_1],v:@1) :bat[:any_2,:@1] +pattern project(b:bat[:any_2,:any_1],v:any_3) :bat[:any_2,:any_3] address ALGprojecttail comment "Fill the tail with a constant, e.g. [0~b]"; -@ -@mal - @:projectGrp(bit)@ - @:projectGrp(bte)@ - @:projectGrp(str)@ - @:projectGrp(oid)@ - @:projectGrp(int)@ - @:projectGrp(sht)@ - @:projectGrp(lng)@ - @:projectGrp(flt)@ - @:projectGrp(dbl)@ + # @+ OID Introducing Commands # For relational processing, some operators are necessary to produce newly # initiated OID columns, for representing n-ary (intermediary) relations. _______________________________________________ Checkin-list mailing list Checkin-list@monetdb.org http://mail.monetdb.org/mailman/listinfo/checkin-list