Re: [Monetdb-developers] Simple bat operations

2007-10-11 Thread darabi
> b) or there must be a way of storing the type information in other BATs Did I already apologise for my dumb questions? :-) I found bbp.getNames, getHeadType, getTailType and I think I see how I could extract the necessary information with them. However, the question remains as how to create a

Re: [Monetdb-developers] Simple bat operations

2007-10-11 Thread Kambiz Darabi
Hello Martin, > >> However, I have found one solution to my problem; if I type the left > >> hand side, everything works: > >> > >> mal>b:bat[:int,:int] := bbp.bind("test"); > >> > yes that is necessary. In general the type of the bind can not be known. > and MAL requires strongly typed inst

Re: [Monetdb-developers] Simple bat operations

2007-10-11 Thread Fabian Groffen
On 11-10-2007 19:28:28 +0200, [EMAIL PROTECTED] wrote: > Haha! > > that was a good joke: > > > > [EMAIL PROTECTED] mserver5 --version > > > MonetDB Server v5.0.0 > > > Copyright (c) 1993-2007 CWI, all rights reserved > > > Compiled by: [EMAIL PROTECTED] > > > Compilation: gcc -O2 -std=c99 -O6 -fo

Re: [Monetdb-developers] Simple bat operations

2007-10-11 Thread darabi
Haha! that was a good joke: > > [EMAIL PROTECTED] mserver5 --version > > MonetDB Server v5.0.0 > > Copyright (c) 1993-2007 CWI, all rights reserved > > Compiled by: [EMAIL PROTECTED] > > Compilation: gcc -O2 -std=c99 -O6 -fomit-frame-pointer > >-finline-functions -falign

Re: [Monetdb-developers] Simple bat operations

2007-10-11 Thread darabi
I found a log file which is apparently created by monetdb-install.sh: called with arguments: --build=/opt/monetdb/src --prefix=/opt/monetdb --enable-sql --enable-xquery --enable-debug So, is --enable-optimise the default? - Original Message - From: [EMAIL PROTECTED] To: monetdb-develope

Re: [Monetdb-developers] Simple bat operations

2007-10-11 Thread Martin Kersten
Fabian Groffen wrote: > On 11-10-2007 17:45:46 +0200, [EMAIL PROTECTED] wrote: > >> Fabian, >> >> thank you. I seem to remember that I didn't use --enable-optimise as it >> was advertised to take longer than the normal build. >> >> However, I have found one solution to my problem; if I type the

Re: [Monetdb-developers] Simple bat operations

2007-10-11 Thread Fabian Groffen
On 11-10-2007 17:45:46 +0200, [EMAIL PROTECTED] wrote: > Fabian, > > thank you. I seem to remember that I didn't use --enable-optimise as it > was advertised to take longer than the normal build. > > However, I have found one solution to my problem; if I type the left > hand side, everything wor

Re: [Monetdb-developers] Simple bat operations

2007-10-11 Thread darabi
Fabian, thank you. I seem to remember that I didn't use --enable-optimise as it was advertised to take longer than the normal build. However, I have found one solution to my problem; if I type the left hand side, everything works: mal>b:bat[:int,:int] := bbp.bind("test"); mal>io.print(b); #

Re: [Monetdb-developers] Fixing the update issue for Large XML documents

2007-10-11 Thread Stefan de Konink
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hi Peter, Peter Boncz schreef: > In case I find that there is something wrong here, a bug should be opened at > sourceforge. That is in http://sf.net/projects/monetdb, choosing Tracker -> > Bugs. Was already done. But also with the 'small' amount

Re: [Monetdb-developers] Simple bat operations

2007-10-11 Thread Fabian Groffen
On 11-10-2007 17:09:22 +0200, [EMAIL PROTECTED] wrote: > I have downloaded and compiled MonetDB-Mars-SuperBall-SR3.tar.bz2 on an Ubuntu > i686 single cpu system running a 2.6.20 kernel. ... > [EMAIL PROTECTED] mserver5 --version > MonetDB Server v5.0.0 > Copyright (c) 1993-2007 CWI, all rights re

Re: [Monetdb-developers] Simple bat operations

2007-10-11 Thread darabi
Hello Nils, OK, then something doesn't work. When I try your suggestion, I get this: [EMAIL PROTECTED] mclient -d demo -l mal mal>b := bat.new(:int,:int); mal>io.print(b); #-# # h t # name # int int # type #-# mal>bat.setName(b,"test"); mal>bat

Re: [Monetdb-developers] Simple bat operations

2007-10-11 Thread darabi
In the meantime, I have also tried all the bbp functions which I could think of: bbp.find bbp.bind bbp.take But none of them gives me a bat which I can use. Strangely, none of them says anything about whether the function call succeeded or not. Kambiz - Original Message - From: [EMAIL

Re: [Monetdb-developers] Fixing the update issue for Large XML documents

2007-10-11 Thread Peter Boncz
Thanks Stefan, This is much better. I have started looking. In case I find that there is something wrong here, a bug should be opened at sourceforge. That is in http://sf.net/projects/monetdb, choosing Tracker -> Bugs. I am currently importing the dataset -- the shredding is already taking an h

Re: [Monetdb-developers] Monetdb-developers Digest, Vol 17, Issue 6 (was: Fixing the update issue for Large XML documents)

2007-10-11 Thread Stefan de Konink
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Dear Peter, Peter Boncz schreef: > Thanks for your question, but I regret to inform you that your way of > communicating technical problems severely falls short of what is required by > technical etiquette: > > (1) ambiguous software version descr

Re: [Monetdb-developers] Monetdb-developers Digest, Vol 17, Issue 6

2007-10-11 Thread Peter Boncz
Dear Stefan, Thanks for your question, but I regret to inform you that your way of communicating technical problems severely falls short of what is required by technical etiquette: (1) ambiguous software version description: you cannot be running MonetDB4 and MonetDB5 at the same time. Even more,

Re: [Monetdb-developers] Simple bat operations

2007-10-11 Thread darabi
Niels, thank you very much for your help. How can I access this bat, when I start a new session? bat.load("person_name"); doesn't seem to work. io.print(n): ERROR = !TypeException:user.main[1]:'n' may not be used before being initialized Thanks Kambiz - Original Message - From: "Ni

Re: [Monetdb-developers] MAL access to tables created with SQL

2007-10-11 Thread Niels Nes
On Thu, Oct 11, 2007 at 06:29:33AM +0200, [EMAIL PROTECTED] wrote: > OK. Is there a way of seeing what MAL gets executed, when a > statement is issued? By modifying the log level or sth. like that? in m5/sql run your query with explain select * from tables or debug select * from tables this sh

Re: [Monetdb-developers] Simple bat operations

2007-10-11 Thread Niels Nes
On Thu, Oct 11, 2007 at 08:00:36AM +0200, [EMAIL PROTECTED] wrote: > Hello, > > sorry for asking so many dumb questions, but I don't seem > to be able to find the answers in the docs. > > I try to create and persist a bat: > > (mclient -d demo -l mal) > > n := bat.new(:oid,:str); > bat.setName(

[Monetdb-developers] Simple bat operations

2007-10-11 Thread Kambiz Darabi
Hello, sorry for asking so many dumb questions, but I don't seem to be able to find the answers in the docs. I try to create and persist a bat: (mclient -d demo -l mal) n := bat.new(:oid,:str); bat.setName(n, "person_name"); bat.setPersistent(n, true); bat.append(n, "John", true); bat.append(n