[Monetdb-developers] bat.new undefined

2007-11-14 Thread darabi
Hello, I am trying to make a small function for creating some persistent bats. Could you point me to my (probably stupid) error? Many thanks Kambiz $ mclient --language=mal -d demo mal> mal>function init_schema():void; mal> mal>bbp.bind("schema_version"); mal> mal># create schema,

[Monetdb-developers] PhD Thesis Steenhagen Optimization of object query languages

2007-10-14 Thread darabi
Hello, sorry for this OT question. I was reading the literature relevant to what I would like to do and found the papers of H. Steenhagen. A thesis is referenced very often which I could order a dead-tree copy of. But that would probably take very long: Title: Optimization of object query lan

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

2007-10-13 Thread darabi
[EMAIL PROTECTED] wrote: > For example, is it legal to do this: > > $ mclient -l mal -d demo -H > mal>include sql; > mal>sql.start(); > mal>bat1 := sql.bind("sys","_tables","id",1); > > The last statement hangs the client. > As I expected, it was a dumb newbie mistake: I used sql.start() in

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

2007-10-13 Thread Kambiz Darabi
[EMAIL PROTECTED] wrote: > The discussion thread indicates a need for some advice. A nice euphemism for me being clueless :-) > Either, your solution works on top of SQL or it > works directly on MAL. Don't ever attempt to be a > man in the middle, e.g. exploiting the implementation > scheme de

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

2007-10-13 Thread darabi
[EMAIL PROTECTED] wrote: > Well embedded_mal could still load the sql module and then extra > threads maybe created. Its more a warning, sql should be the one > making changes to the catalog. If you think of you application/extention > as do some sql to create tables, then exit sql, do querying w

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

2007-10-13 Thread darabi
Hello Niels, > Indeed, but when sql is running its in control of the sql_catalog bat (through > the gdk_logger code). This means it assumes its the only one accessint it. Can I circumvent that with an embedded server which I start with a call to embedded_mal() ? Kambiz

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

2007-10-13 Thread darabi
[EMAIL PROTECTED] wrote: > [EMAIL PROTECTED] wrote: > > Hello, > > > > how is it possible to access in a MAL client session (mclient -l mal) > > the BATs of tables which were created previously in sql? > > > You can't, because the mapping of SQL to BATs is maintained in the SQL > private catal

Re: [Monetdb-developers] clients on windows 32...

2007-10-13 Thread darabi
[EMAIL PROTECTED] wrote: > > > Further, a simple > > > mclient -l mal --help > > > (with a running mserver5) will reveal whether readline support (and hence > > > \h) is indeed enabled in your build of MonetDB. > > > > Do you mean 'mclient -l mal -H' ? > > nope. I meant what I wrote: `mclient

Re: [Monetdb-developers] readline on Ubuntu

2007-10-13 Thread darabi
> Can you retrieve the installed readline version using Ubuntu's package > manager somehow? Also whether you are using GNU readline, or BSD's > libedit? $ ldd /opt/monetdb/bin/MapiClient ... libreadline.so.5 => /lib/libreadline.so.5 (0xb7f6a000) ... which is a link to /l

Re: [Monetdb-developers] clients on windows 32...

2007-10-13 Thread darabi
> which version of MonetDB are you using, and how did you install it --- if I > recall correctly from previous mails, you did install using the > monetdb_install.sh script, right, and hence use the super source tarball? > But which version? MonetDB-Mars-SuperBall-SR3.tar.bz2. I have the impression

Re: [Monetdb-developers] clients on windows 32...

2007-10-12 Thread darabi
Hello, > > Why the option > > \h - show the readline history > > > > mclient.exe -lsql --help > > > > Is not available on windows? Is an design feature or a bug? > > There is no readline on Windows, nor a need for it. is \h supposed to work on Linux (Ubuntu feisty)? I get: $ mclient -l

Re: [Monetdb-developers] Simple bat operations

2007-10-12 Thread darabi
Sorry, I had sent out this mail, before I received Martin's mail with the clarifying information: > If you would have packaged both instructions in a function, it would > work as expected, > because io.print can handle any BAT thanks for being a 'pattern' Thank you Kambiz - Original Messag

Re: [Monetdb-developers] Simple bat operations

2007-10-12 Thread darabi
> A more informative error mesage might help --- from a user's point of view, > variable 'b' has been initialized before it is used. I would second that. > In fact, the above > b:bat[:int,:int] := bbp.bind("test"); > is wrong --- or at least implies a silent cast from :oid to :int of the >

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 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 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] Simple bat operations

2007-10-11 Thread darabi
Message - > From: "Niels Nes" > To: [EMAIL PROTECTED] > Cc: monetdb-developers@lists.sourceforge.net > Sent: Donnerstag, 11. Oktober 2007 9.38 Uhr (GMT+0100) Europe/Berlin > Subject: Re: [Monetdb-developers] Simple bat operations > > On Thu, Oct 11, 2007 at 08:0

Re: [Monetdb-developers] Simple bat operations

2007-10-11 Thread darabi
] Cc: monetdb-developers@lists.sourceforge.net Sent: Donnerstag, 11. Oktober 2007 9.38 Uhr (GMT+0100) Europe/Berlin Subject: Re: [Monetdb-developers] Simple bat operations On Thu, Oct 11, 2007 at 08:00:36AM +0200, darabi... wrote: > Hello, > > sorry for asking so many dumb questions, b

Re: [Monetdb-developers] Simple bat operations

2007-10-11 Thread darabi
iginal Message - From: "Niels Nes" To: [EMAIL PROTECTED] Cc: monetdb-developers@lists.sourceforge.net Sent: Donnerstag, 11. Oktober 2007 9.38 Uhr (GMT+0100) Europe/Berlin Subject: Re: [Monetdb-developers] Simple bat operations On Thu, Oct 11, 2007 at 08:00:36AM +0200, darabi... wrote

[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

[Monetdb-developers] Simple bat operations

2007-10-10 Thread 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

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

2007-10-10 Thread darabi
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? Thanks Kambiz - Original Message - From: "Martin Kersten" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Cc: monetdb-developers@lists.sourceforge.net Sent: Mittwoch,

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

2007-10-10 Thread darabi
Hello, how is it possible to access in a MAL client session (mclient -l mal) the BATs of tables which were created previously in sql? I have tried different versions of bat.new, and bbp.bind. I tried different naming schemes (e.g. "tablename_columnname" which was mentioned somewhere in the docs),

Re: [Monetdb-developers] Object persistence using MonetDB

2007-10-10 Thread darabi
goal? Is there any road block? > There are (have been) attempts to hook up Hibernate and MonetDB. I don't know their status. If ultra-high performance is your target, I question if a DBMS is the right way to go. However, I also think that most o-o application

[Monetdb-developers] Object persistence using MonetDB

2007-10-10 Thread darabi
d block? Thank you very much for your help. Kambiz Darabi - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and