Bugs item #1611545, was opened at 2006-12-08 15:31
Message generated for change (Comment added) made by stmane
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=1611545&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: PF/runtime
Group: Pathfinder CVS Head
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Jan Rittinger (tsheyar)
Assigned to: Stefan Manegold (stmane)
Summary: XQ: wrong path step result (duplicates)

Initial Comment:
When running query q02 from the testset benchmarks/XBench/TC/SD with the 
algebra version a duplicate <hw>knead</hw> magically appears.

http://monetdb.cwi.nl/testing/projects/monetdb/Current/pathfinder/.mTests03/GNU.32.32.d-Darwin8.8.0/benchmarks_XBench_TC_SD/q02.out.00.html

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

>Comment By: Stefan Manegold (stmane)
Date: 2007-05-06 14:51

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

Fixed in CVS:
loop-lifted child implementation did not properly cope with the case that
the same item (context node) occurs more than once for the same iter, i.e.,
in case [iter,item] ([iter,ctx]) is not a set (i.e., contains duplicates).
Fix: avoid producing duplicates in such cases in ll_child result
generation.

ToDo:
Can we do this more efficiently, e.g.,
by upfront ensuring that [iter,item] ([iter,ctx])
is a set, i.e., duplicate free??


Added tests in
benchmarks/XBench/TC/SD/Tests/q02alg.*
benchmarks/XBench/TC/MD/Tests/q17alg.*


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

Comment By: Jan Rittinger (tsheyar)
Date: 2007-02-19 16:48

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

It's MIL code that calls path steps (like mps does). So perhaps Stefan
might have a look...

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

Comment By: Sjoerd Mullender (sjoerd)
Date: 2007-02-19 15:00

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

Assigning to Mr. Algebra.

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

Comment By: Jan Rittinger (tsheyar)
Date: 2007-02-01 14:56

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

I attached the generated MIL script for q17 (with annotations where the
error occurs). The ``profile'' path step does not return 26 results as
required but 4862 nodes (-- the input contains 4862 nodes with 26 distinct
values).

One can use Mtest to load a database with the files in
benchmarks/XBench/TC/MD/Tests and only has to replace $TSTTRGDIR in q17.mil
with the path to load_docs.xml.
File Added: q17.mil

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

Comment By: Jan Rittinger (tsheyar)
Date: 2006-12-08 15:55

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

Evaluating the query
http://monetdb.cwi.nl/testing/projects/monetdb/Current/pathfinder/.mTests03/GNU.32.32.d-Darwin8.8.0/benchmarks_XBench_TC_MD/q17.out.00.html
with the algebra variant also produces a large number of duplicates.

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

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

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs

Reply via email to