zorba-coders team mailing list archive
-
zorba-coders team
-
Mailing list archive
-
Message #10456
[Bug 1011126] [NEW] subsequence and streaming
Public bug reported:
I'm writing the following query which streams fine:
let $raw-data as xs:string := http:send-request(<http:request
href="http://cf.zorba-xquery.com.s3.amazonaws.com/forecasts.xml"
method="GET" override-media-type="text/plain" />)[2]
let $data := p:parse($raw-data,
<opt:options><opt:parse-external-parsed-entity
opt:skip-root-nodes="1"/></opt:options>)
for $node in $data
where $node/@site-id = "3"
return
$node
However if I write:
let $result :=
let $raw-data as xs:string := http:send-request(<http:request
href="http://cf.zorba-xquery.com.s3.amazonaws.com/forecasts.xml"
method="GET" override-media-type="text/plain" />)[2]
let $data := p:parse($raw-data,
<opt:options><opt:parse-external-parsed-entity
opt:skip-root-nodes="1"/></opt:options>)
for $node in $data
where $node/@site-id = "3"
return
$node
return subsequence($result, 1, 1)
The query result is extremely long to compute.
** Affects: zorba
Importance: Undecided
Assignee: Markos Zaharioudakis (markos-za)
Status: New
** Changed in: zorba
Milestone: None => 3.0
** Changed in: zorba
Assignee: (unassigned) => Markos Zaharioudakis (markos-za)
--
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/1011126
Title:
subsequence and streaming
Status in Zorba - The XQuery Processor:
New
Bug description:
I'm writing the following query which streams fine:
let $raw-data as xs:string := http:send-request(<http:request
href="http://cf.zorba-xquery.com.s3.amazonaws.com/forecasts.xml"
method="GET" override-media-type="text/plain" />)[2]
let $data := p:parse($raw-data,
<opt:options><opt:parse-external-parsed-entity
opt:skip-root-nodes="1"/></opt:options>)
for $node in $data
where $node/@site-id = "3"
return
$node
However if I write:
let $result :=
let $raw-data as xs:string := http:send-request(<http:request
href="http://cf.zorba-xquery.com.s3.amazonaws.com/forecasts.xml"
method="GET" override-media-type="text/plain" />)[2]
let $data := p:parse($raw-data,
<opt:options><opt:parse-external-parsed-entity
opt:skip-root-nodes="1"/></opt:options>)
for $node in $data
where $node/@site-id = "3"
return
$node
return subsequence($result, 1, 1)
The query result is extremely long to compute.
To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/1011126/+subscriptions
Follow ups
References