Hello together,
I installed MonetDB with the help of the latest monetdb-install.sh and played around with MIL. Now I'm stuck with translating a simple SQL-Query containing a GROUPBY.
After starting the server with
# Mserver --dbname test --dbinit 'module(mapi); mil_start();'
and the client with
# ./mclient -lmil -utest -dname=test
I tried the following:
var a:= bat(oid,int);
a.insert(1@0, 1995);
a.insert(2@0, 1992);
a.insert(3@0, 1993);
a.insert(4@0, 1994);
a.insert(5@0, 1995);
a.insert(6@0, 1996);
CTgroup(a).print();
the answer is:
ERROR: const operation on a BAT
ERROR: CMDconstCopy: operation failed.
ERROR: interpret_params: print(param 1): evaluation error.
Another try after loading the xtables-Module:
mil>module("xtables");
mil>CTgroup(a).print();
+-------------------------------------------------------+
| � |
+-------------------------------------------------------+
1 tuple
Where's my mistake?
Best Regards,
Hannes