** Changed in: zorba
   Importance: Undecided => High

-- 
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

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to     : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp

Reply via email to