Project

Profile

Help

Bug #2546

closed

XQuery using saxon:stream not streaming in 9.7

Added by Gunther Rademacher over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Streaming
Sprint/Milestone:
-
Start date:
2015-12-17
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.7
Fix Committed on Branch:
9.7
Fixed in Maintenance Release:
Platforms:

Description

While testing saxon:stream from XQuery on 9.7.0.1, I found that these queries failed to stream their result:

saxon:stream(doc('uriresolver:resolve')/*/*)/*
for $x in saxon:stream(doc('uriresolver:resolve')/*/*)/* return $x

Trying them on the command line using "-explain" says

OPT : Using streaming copy

in either case, but also shows a docOrder operator applied, which presumably causes the problem.

We had been discussing this last year (http://markmail.org/message/n4iccqoank2oub4c), and it eventually got in favour of streaming in 9.5.1.5, on behalf of #2013.

Also attaching my test. It uses an endless input stream, thus cannot succeed without streaming.


Files

StreamingXQuery.java (4.92 KB) StreamingXQuery.java Gunther Rademacher, 2015-12-17 09:45

Please register to edit this issue

Also available in: Atom PDF