You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@vxquery.apache.org by pr...@apache.org on 2013/11/19 01:11:14 UTC

svn commit: r1543236 - /incubator/vxquery/trunk/vxquery/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/queries/q02.xq

Author: prestonc
Date: Tue Nov 19 00:11:14 2013
New Revision: 1543236

URL: http://svn.apache.org/r1543236
Log:
Updated the query.

Modified:
    incubator/vxquery/trunk/vxquery/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/queries/q02.xq

Modified: incubator/vxquery/trunk/vxquery/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/queries/q02.xq
URL: http://svn.apache.org/viewvc/incubator/vxquery/trunk/vxquery/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/queries/q02.xq?rev=1543236&r1=1543235&r2=1543236&view=diff
==============================================================================
--- incubator/vxquery/trunk/vxquery/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/queries/q02.xq (original)
+++ incubator/vxquery/trunk/vxquery/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/queries/q02.xq Tue Nov 19 00:11:14 2013
@@ -1,7 +1,7 @@
 (: XQuery Aggregate Query :)
 (: Find the total precipitation recorded :)
-let $collection := "/tmp/test/1.0_partition_ghcnd_gsn_xml_gz/sensors"
-return fn:sum(
+fn:sum(
+    let $collection := "/tmp/test/1.0_partition_ghcnd_gsn_xml_gz/sensors"
     for $r in collection($collection)/dataCollection/data
     where $r/dataType eq "PRCP"
     return $r/value