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:51 UTC

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

Author: prestonc
Date: Tue Nov 19 00:11:50 2013
New Revision: 1543237

URL: http://svn.apache.org/r1543237
Log:
Fixed an issue with the query syntax. Did not change the query result.

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

Modified: incubator/vxquery/trunk/vxquery/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/queries/q03.xq
URL: http://svn.apache.org/viewvc/incubator/vxquery/trunk/vxquery/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/queries/q03.xq?rev=1543237&r1=1543236&r2=1543237&view=diff
==============================================================================
--- incubator/vxquery/trunk/vxquery/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/queries/q03.xq (original)
+++ incubator/vxquery/trunk/vxquery/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/queries/q03.xq Tue Nov 19 00:11:50 2013
@@ -2,10 +2,9 @@
 (: Get each stations highest temperature :)
 let $collection1 := "/tmp/test/1.0_partition_ghcnd_gsn_xml_gz/sensors"
 for $r in collection($collection1)/dataCollection/data
-where $r/dataType eq "TMAX"
 
 let $collection2 := "/tmp/test/1.0_partition_ghcnd_gsn_xml_gz/stations"
-for $s in collection($collection2)/dataCollection/data
+for $s in collection($collection2)/ghcnd_observation
 
-where data($r/station_id) eq data($s/station_id)
+where $r/dataType eq "TMAX" and data($r/station) eq data($s/station_id)
 return ($s/name, fn:max($r/value))
\ No newline at end of file