-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test cases for pipelined hash join bug
- Loading branch information
1 parent
7fc6b4c
commit 3434b68
Showing
22 changed files
with
1,558 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
...ata-rdf-test/src/test/java/com/bigdata/rdf/sparql/ast/eval/TestBrokenDatetimeParsing.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
package com.bigdata.rdf.sparql.ast.eval; | ||
|
||
|
||
/** | ||
* Test case fot date time parsing in queries when specifying dates containing a numerical time zone spec. | ||
* We suspected a bug, but there actually was only a problem in missing URL encoding for the '+' sign when | ||
* executing the query with curl. Checking in the test case nevertheless to increase confidence. | ||
* | ||
* See https://github.com/blazegraph/database/issues/107 | ||
* | ||
* @author schmdtm | ||
*/ | ||
public class TestBrokenDatetimeParsing extends AbstractDataDrivenSPARQLTestCase { | ||
|
||
public TestBrokenDatetimeParsing() { | ||
} | ||
|
||
/** | ||
* Data: | ||
* <http://s1a> <http://date> "2012-01-28T00:00:00.000Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> . | ||
* <http://s1b> <http://date> "2012-01-28T00:00:00.000+00:00"^^<http://www.w3.org/2001/XMLSchema#dateTime> . | ||
* <http://s2a> <http://date> "2012-01-30T00:00:00.000Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> . | ||
* <http://s2b> <http://date> "2012-01-30T00:00:00.000+00:00"^^<http://www.w3.org/2001/XMLSchema#dateTime> . | ||
* | ||
* Query: | ||
* PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | ||
* SELECT * WHERE { | ||
* ?s <http://date> ?o | ||
* FILTER(?o > "2012-01-29T00:00:00.000+00:00"^^xsd:dateTime) | ||
* } | ||
* | ||
* => expected to select s2a and s2b (which point to the same timestamp) | ||
*/ | ||
public void test_datetime_roundtripping_with_numerical_time_zone() throws Exception { | ||
|
||
new TestHelper( | ||
"datetime-roundtripping01",// testURI, | ||
"datetime-roundtripping01.rq",// queryFileURL | ||
"datetime-roundtripping.ttl",// dataFileURL | ||
"datetime-roundtripping.srx"// resultFileURL | ||
).runTest(); | ||
} | ||
|
||
/** | ||
* Variant of the test case with query containing the date specified in Zulu format, using 'Z'. | ||
* Note that this version used to work all the time, just added to avoid regressions. | ||
*/ | ||
public void test_datetime_roundtripping_with_zulu_time_zone() throws Exception { | ||
|
||
new TestHelper( | ||
"datetime-roundtripping02",// testURI, | ||
"datetime-roundtripping02.rq",// queryFileURL | ||
"datetime-roundtripping.ttl",// dataFileURL | ||
"datetime-roundtripping.srx"// resultFileURL | ||
).runTest(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.