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 != oid)? What does b's tail look like? Is it VOID-NIL (i.e., with NIL seqbase) or non-materialized dense OID ("VID") (i.e., with non-NIL seqbase)? The problem was the bat creation I did # var b := bat(str,void,len+4); b := bat.new(:str,:void,len);
and it should be: b := bat.new(:str,:oid,len); ^^^
well, depends what you want: the first gives you non-materialized ("virtual") dense OIDs (once you set the seqbase to some non-NIL OID value); the second gives you materialized OIDs. The above MIL code does the first; I vaguely recall, though, that MAL does not (conveniently) allow to create a VOID-NIL column and then turn it into a "VID" column by setting its seqbase; possibly, MAL hence only allows to create VID columns as view using markH() or markT() --- but not being a MAL expert, I'm more speculating than knowing ... Stefan -- | Dr. Stefan Manegold | mailto:Stefan.Manegold@cwi.nl | | CWI, P.O.Box 94079 | http://www.cwi.nl/~manegold/ | | 1090 GB Amsterdam | Tel.: +31 (20) 592-4212 | | The Netherlands | Fax : +31 (20) 592-4312 |