Bugs item #2142522, was opened at 2008-10-02 16:28
Message generated for change (Comment added) made by tsheyar
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=482468&aid=2142522&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 "stable"
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Floris Ouwendijk (floris233)
Assigned to: Lefteris Sidirourgos (lsidir)
Summary: XQ: Duplicates when not using intermediate result

Initial Comment:
We've found a bug that causes results to be returned multiple times.
I've been able to reduce the data and query to manageable proportions, see 
files below.
When you run the xquery script, it will return 8, while 4 is expected.
If the lines in the result that are commented are included, the correct result 
is given, while all they do is count the number of items produced in 
intermediary stages.


<testd>
<test a="1"><sub1/><sub2/></test>
<test a="1"><sub1/><sub2/></test>
<test a="1" b="1"><sub1/><sub2/></test>
<test a="1" b="1"><sub1/><sub2/></test>
<test b="1"><sub1/><sub2/></test>
<test b="1"><sub1/><sub2/></test>
<test><sub1/><sub2/></test>
<test><sub1/><sub2/></test>
</testd>


let $input1 := (doc("file:///path_to_test_xml")//test)
let $hits1 := (doc("file:///path_to_test_xml")//[EMAIL PROTECTED])
let $input2 := ($input1 intersect $hits1)
let $input3 := for $raw in $input2 where not(empty(for $t in $raw//* return 
$t)) return $raw
let $hits3 := (doc("file:///path_to_test_xml")//[EMAIL PROTECTED])
let $result := ($input3 intersect $hits3)

return element result {
(:element input1 {count($input1)} ,
element hits1 {count($hits1)} ,
element input2 {count($input2)} ,
element input3 {count($input3)} ,
element hits3 {count($hits3)} ,:)
element result {count($result)}
}



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

>Comment By: Jan Rittinger (tsheyar)
Date: 2008-11-12 11:44

Message:
found the problem (incorrect property inference for intersect) -- as soon
as I'm allowed to check in again I will fix it.

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

Comment By: Peter Boncz (boncz)
Date: 2008-11-10 21:53

Message:
Hi Lefteris,

Maybe have a short look at this one. It is quite likely that Jan will have
to look at it.. 


Peter

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

Comment By: Sjoerd Mullender (sjoerd)
Date: 2008-10-03 13:17

Message:
Added test tests/BugTracker/Tests/duplicates_error.SF-2142522.

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

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

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Monetdb-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-bugs

Reply via email to