Changeset: cd9902cfbd76 for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=cd9902cfbd76 Added Files: sql/backends/monet5/BDCC/83_gs.mal sql/backends/monet5/BDCC/gs.mal Branch: BDCC Log Message:
Forgot to commit the code for generate_series. diffs (38 lines): diff --git a/sql/backends/monet5/BDCC/83_gs.mal b/sql/backends/monet5/BDCC/83_gs.mal new file mode 100644 --- /dev/null +++ b/sql/backends/monet5/BDCC/83_gs.mal @@ -0,0 +1,1 @@ +include gs; diff --git a/sql/backends/monet5/BDCC/gs.mal b/sql/backends/monet5/BDCC/gs.mal new file mode 100644 --- /dev/null +++ b/sql/backends/monet5/BDCC/gs.mal @@ -0,0 +1,27 @@ +module gs; + +function generate_series(start:int, end:int):bat[:oid, :int]; + i := start; + res := bat.new(:oid, :int); + + barrier b := i<=end; + bat.append(res, i); + i := i + 1; + redo b := i<=end; + exit b; + + return res; +end generate_series; + +function generate_series(start:int, end:int, inc:int):bat[:oid, :int]; + i := start; + res := bat.new(:oid, :int); + + barrier b := i<=end; + bat.append(res, i); + i := i + inc; + redo b := i<=end; + exit b; + + return res; +end generate_series; _______________________________________________ checkin-list mailing list [email protected] https://www.monetdb.org/mailman/listinfo/checkin-list
