Hello,
I'm developing in MAL accessing commands and functions from C++ over the
MAPI-library.
My task is to delete some BUNs from a BAT.
The problem: The BAT with some deleted BUNs has a different order than
before.
I do it the following way:
c:bat[:oid,:int] := bbp.bind("joe");
slice:bat[:oid,:int] := algebra.slice(c,4,6);
bat.delete(c,slice);
The original BAT "joe":
#-----------------#
# h t # name
# oid int # type
#-----------------#
[ [EMAIL PROTECTED], -1 ]
[ [EMAIL PROTECTED], 2 ]
[ [EMAIL PROTECTED], 3 ]
[ [EMAIL PROTECTED], -1 ]
[ [EMAIL PROTECTED], -2 ] <- to be deleted
[ [EMAIL PROTECTED], 5 ] <- to be deleted
[ [EMAIL PROTECTED], -2 ] <- to be deleted
After delete:
The original BAT "joe":
#-----------------#
# h t # name
# oid int # type
#-----------------#
[ [EMAIL PROTECTED], -1 ] <- not in right order, why?
[ [EMAIL PROTECTED], -1 ]
[ [EMAIL PROTECTED], 2 ]
[ [EMAIL PROTECTED], 3 ]
Why is this so and how can I prevent MonetDB to change the order, while
deleting BUNs.
The order is important, because I'd like to work with position and
slices to read my BUNs.
Thanks for helping!
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Monetdb-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-developers