From: <tho...@us...> - 2014-01-10 22:39:00
|
Revision: 7767 http://bigdata.svn.sourceforge.net/bigdata/?rev=7767&view=rev Author: thompsonbry Date: 2014-01-10 22:38:54 +0000 (Fri, 10 Jan 2014) Log Message: ----------- Two test case queries were flipped. Modified Paths: -------------- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/AbstractRTOTestCase.java branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q7.rq branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q7b.rq Modified: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/AbstractRTOTestCase.java =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/AbstractRTOTestCase.java 2014-01-10 22:24:44 UTC (rev 7766) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/AbstractRTOTestCase.java 2014-01-10 22:38:54 UTC (rev 7767) @@ -80,7 +80,9 @@ * already have a test for inside of UNION and OPTIONAL). * * TODO Test case to verify that we do not reorder inside of a SERVICE - * call. + * call. Currently it won't since it is invoked from within + * AST2BOpUtility#convertJoinGroup(), but this would be an issue if the RTO + * was turned into an {@link IASTOptimizer}. * * TODO Test case to verify that exogenous bindings are visible to the RTO. * Specifically, make sure that the exogenous bindings are applied when the Modified: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q7.rq =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q7.rq 2014-01-10 22:24:44 UTC (rev 7766) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q7.rq 2014-01-10 22:38:54 UTC (rev 7767) @@ -1,5 +1,4 @@ -# A modified version BSBM Q7 on pc100 which is the simplest form of the -# query that causes the RTO to fail with the "No stats" assertion error. +# BSBM Q7 on pc100. PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rev: <http://purl.org/stuff/rev#> @@ -8,23 +7,33 @@ PREFIX dc: <http://purl.org/dc/elements/1.1/> SELECT (COUNT(*) as ?count) +#SELECT ?productLabel ?offer ?price ?vendor ?vendorTitle ?review ?revTitle +# ?reviewer ?revName ?rating1 ?rating2 WHERE { # Control all RTO parameters for repeatable behavior. + hint:Query hint:optimizer "Runtime". hint:Query hint:RTO-sampleType "DENSE". hint:Query hint:RTO-limit "100". hint:Query hint:RTO-nedges "1". <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer1/Product7> rdfs:label ?productLabel . OPTIONAL { - - # Enable the RTO inside of the OPTIONAL join group. - hint:Group hint:optimizer "Runtime". - + ?offer bsbm:product <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer1/Product7> . + ?offer bsbm:price ?price . + ?offer bsbm:vendor ?vendor . + ?vendor rdfs:label ?vendorTitle . + ?vendor bsbm:country <http://downlode.org/rdf/iso-3166/countries#DE> . + ?offer dc:publisher ?vendor . + ?offer bsbm:validTo ?date . + FILTER (?date > "2008-06-20T00:00:00"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) + } + OPTIONAL { ?review bsbm:reviewFor <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer1/Product7> . ?review rev:reviewer ?reviewer . ?reviewer foaf:name ?revName . ?review dc:title ?revTitle . - - } + OPTIONAL { ?review bsbm:rating1 ?rating1 . } + OPTIONAL { ?review bsbm:rating2 ?rating2 . } + } } Modified: branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q7b.rq =================================================================== --- branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q7b.rq 2014-01-10 22:24:44 UTC (rev 7766) +++ branches/BIGDATA_RELEASE_1_3_0/bigdata-rdf/src/test/com/bigdata/rdf/sparql/ast/eval/rto/BSBM-Q7b.rq 2014-01-10 22:38:54 UTC (rev 7767) @@ -1,4 +1,5 @@ -# BSBM Q7 on pc100. +# A modified version BSBM Q7 on pc100 which is the simplest form of the +# query that causes the RTO to fail with the "No stats" assertion error. PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX rev: <http://purl.org/stuff/rev#> @@ -7,33 +8,23 @@ PREFIX dc: <http://purl.org/dc/elements/1.1/> SELECT (COUNT(*) as ?count) -#SELECT ?productLabel ?offer ?price ?vendor ?vendorTitle ?review ?revTitle -# ?reviewer ?revName ?rating1 ?rating2 WHERE { # Control all RTO parameters for repeatable behavior. - hint:Query hint:optimizer "Runtime". hint:Query hint:RTO-sampleType "DENSE". hint:Query hint:RTO-limit "100". hint:Query hint:RTO-nedges "1". <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer1/Product7> rdfs:label ?productLabel . OPTIONAL { - ?offer bsbm:product <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer1/Product7> . - ?offer bsbm:price ?price . - ?offer bsbm:vendor ?vendor . - ?vendor rdfs:label ?vendorTitle . - ?vendor bsbm:country <http://downlode.org/rdf/iso-3166/countries#DE> . - ?offer dc:publisher ?vendor . - ?offer bsbm:validTo ?date . - FILTER (?date > "2008-06-20T00:00:00"^^<http://www.w3.org/2001/XMLSchema#dateTime> ) - } - OPTIONAL { + + # Enable the RTO inside of the OPTIONAL join group. + hint:Group hint:optimizer "Runtime". + ?review bsbm:reviewFor <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer1/Product7> . ?review rev:reviewer ?reviewer . ?reviewer foaf:name ?revName . ?review dc:title ?revTitle . - OPTIONAL { ?review bsbm:rating1 ?rating1 . } - OPTIONAL { ?review bsbm:rating2 ?rating2 . } - } + + } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |