Skip to content
Snippets Groups Projects
Commit e12b52fd authored by Julien Lopez's avatar Julien Lopez
Browse files

Fixed tests on group by

parent 63dfa809
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@ q = groupby(function (x) c(x$deptno),
select(function (x) {
res = new.env()
res$deptno = x$deptno
res$sum = sum(x$sal)
res$sumSal = sum(x$sal)
res },
from(emp)))
results = query.force(q)
......
deptno sum
1 1 4047
2 3 13356
3 2 15810
sumsal deptno
1 4047 1
2 13356 3
3 15810 2
......@@ -3,7 +3,7 @@ q = groupby(function (x) c(x$deptno),
select(function (x) {
res = new.env()
res$deptno = x$deptno
res$sum = sum(x$sal)
res$sumSal = sum(x$sal)
res },
from(emp)))
results = query.force(q)
......
deptno sum
1 1 4047
2 3 13356
3 2 15810
sumsal deptno
1 4047 1
2 13356 3
3 15810 2
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment