Re: [Monetdb-developers] Questions about MIL....

2007-12-04 Thread Romulo Goncalves
Stefan Manegold wrote: > On Tue, Dec 04, 2007 at 08:16:31PM +0100, Martin Kersten wrote: Second question: Which function I should call for: b.reverse().seqbase([EMAIL PROTECTED]); In MAL I did rev := bat.reverse(b); base := bat.setBase(rev,[EMAIL PROTECTED]);

Re: [Monetdb-developers] Questions about MIL....

2007-12-04 Thread Stefan Manegold
On Tue, Dec 04, 2007 at 08:16:31PM +0100, Martin Kersten wrote: > >> Second question: Which function I should call for: > >> b.reverse().seqbase([EMAIL PROTECTED]); > >> > >> In MAL I did > >> rev := bat.reverse(b); > >> base := bat.setBase(rev,[EMAIL PROTECTED]); > >> > >> But the bat.se

Re: [Monetdb-developers] Questions about MIL....

2007-12-04 Thread Martin Kersten
Niels Nes wrote: > On Mon, Dec 03, 2007 at 10:09:02PM +0100, Romulo Goncalves wrote: > >> Hello, >> >> Firs question: >> >> b.select([EMAIL PROTECTED], oid(b.count() - 3)).mark([EMAIL >> PROTECTED]).reverse() >> >> What is the meaning of such MIL code line? >> >> I translate it to MAL like th

Re: [Monetdb-developers] Questions about MIL....

2007-12-04 Thread Stefan Manegold
On Tue, Dec 04, 2007 at 05:38:08PM +0100, Romulo Goncalves wrote: > >> !TypeException:user.str2qgrams[26]:'algebra.select' undefined in: > >> sel:any := algebra.select(b:bat[:str,:void], _27:oid, id:oid) > > ^^^ ^^^ > > MAL strict typing (void

Re: [Monetdb-developers] Questions about MIL....

2007-12-04 Thread Romulo Goncalves
Stefan Manegold wrote: > On Tue, Dec 04, 2007 at 05:20:31PM +0100, Romulo Goncalves wrote: >> #c0 := b.select([EMAIL PROTECTED], oid(b.count() - 3)).mark([EMAIL >> PROTECTED]).reverse(); >> cnt := aggr.count(alg); >> cnt := calc.-(cnt,3); >> id := calc.oid(cnt); >> sel := algeb

Re: [Monetdb-developers] Questions about MIL....

2007-12-04 Thread Stefan Manegold
On Tue, Dec 04, 2007 at 05:20:31PM +0100, Romulo Goncalves wrote: > #c0 := b.select([EMAIL PROTECTED], oid(b.count() - 3)).mark([EMAIL > PROTECTED]).reverse(); > cnt := aggr.count(alg); > cnt := calc.-(cnt,3); > id := calc.oid(cnt); > sel := algebra.select(b, [EMAIL PROTECTED],

Re: [Monetdb-developers] Questions about MIL....

2007-12-04 Thread Romulo Goncalves
Niels Nes wrote: > On Mon, Dec 03, 2007 at 10:09:02PM +0100, Romulo Goncalves wrote: >> Hello, >> >> Firs question: >> >> b.select([EMAIL PROTECTED], oid(b.count() - 3)).mark([EMAIL >> PROTECTED]).reverse() >> >> What is the meaning of such MIL code line? >> >> I translate it to MAL like this: >

Re: [Monetdb-developers] Questions about MIL....

2007-12-04 Thread Niels Nes
On Mon, Dec 03, 2007 at 10:09:02PM +0100, Romulo Goncalves wrote: > Hello, > > Firs question: > > b.select([EMAIL PROTECTED], oid(b.count() - 3)).mark([EMAIL > PROTECTED]).reverse() > > What is the meaning of such MIL code line? > > I translate it to MAL like this: > cnt := aggr.count(b

[Monetdb-developers] Questions about MIL....

2007-12-03 Thread Romulo Goncalves
Hello, Firs question: b.select([EMAIL PROTECTED], oid(b.count() - 3)).mark([EMAIL PROTECTED]).reverse() What is the meaning of such MIL code line? I translate it to MAL like this: cnt := aggr.count(base); cnt := cnt - 3; oid := calc.oid(cnt); sel := algebra.select(b, [EMA