Bugs item #1919631, was opened at 2008-03-19 15:04
Message generated for change (Comment added) made by mlkersten
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=1919631&group_id=56967

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Core
Group: MonetDB5 CVS Head
Status: Open
Resolution: Invalid
Priority: 5
Private: No
Submitted By: Peter Boncz (boncz)
Assigned to: Martin Kersten (mlkersten)
Summary: MAL command resolution: BAT signatures with :any

Initial Comment:
not knowing about the MAL pattern

bbp.bind(:str) :bat[any::1,any::2]

I tried the MAL command

bat5.load(:str) :bat[any::1,any::2]

though the implementation and signature of that command appear to be fully 
correct, bat5.load() always give a type mismatch error whatever you do.

So, the problem is not so much bat5.load(), but (I assume) the function 
resolution of any MAL command that has :any::x or BAT[:any::x,:any::y] in its 
signature.



----------------------------------------------------------------------

>Comment By: Martin Kersten (mlkersten)
Date: 2008-03-19 23:42

Message:
Logged In: YES 
user_id=490798
Originator: NO

first, bat5.load() is not a function known to me.
We only have bat.load()
Another test has been added and shows
that basic type resolution should be more
restrictive, not allowing illegal type bindings.

We still need an example to illustrate the problem

----------------------------------------------------------------------

Comment By: Martin Kersten (mlkersten)
Date: 2008-03-19 17:32

Message:
Logged In: YES 
user_id=490798
Originator: NO

suite_00/Tests/test_40.mal

The number of tests for the bat.load is quite minimal.
A small test example to would be helpful.

----------------------------------------------------------------------

Comment By: Fabian (mr-meltdown)
Date: 2008-03-19 17:17

Message:
Logged In: YES 
user_id=963970
Originator: NO

can you give an example of what you're doing and what exact error messages
you get?

----------------------------------------------------------------------

Comment By: Peter Boncz (boncz)
Date: 2008-03-19 16:49

Message:
Logged In: YES 
user_id=591107
Originator: YES

I was providing the correct types. Did you try it?



----------------------------------------------------------------------

Comment By: Martin Kersten (mlkersten)
Date: 2008-03-19 16:42

Message:
Logged In: YES 
user_id=490798
Originator: NO

MAL requires that all arguments are strongly typed.

you have to type the result variable upfront, e.g.

b:bat[:oid,:str]:= bat.load("mybat");

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=1919631&group_id=56967

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs

Reply via email to