1
0
Fork 0
Commit Graph

187 Commits

Author SHA1 Message Date
Jan Steemann 689c7fbdc3 fixed issue #2183 2016-11-21 13:41:49 +01:00
Jan Steemann 19f771fcd6 issue #2168 2016-11-14 17:30:19 +01:00
jsteemann ecaf2fd16b when querying edge index selectivity, pass attribute name (i.e. _from, _to) so the selectivity of the correct index part can be returned 2016-11-11 11:01:04 +01:00
Michael Hackstein 8f0a1f47f8 Fix for ShoretestPath in Cluster. Does only show up with > 1 shards. Adapterd tests to use 4 shards instead of 1. 2016-10-31 09:19:49 +01:00
Jan Steemann 1e84dd9008 added test cases 2016-10-25 18:44:32 +02:00
jsteemann 5730d0bdc4 fixed jslint 2016-10-20 11:34:18 +02:00
Simran Brucherseifer 0482327ff0 Merge branch 'devel' of https://github.com/arangodb/arangodb into devel 2016-10-14 11:17:29 +02:00
Jan Steemann 47382b20d7 issue #2115 2016-10-18 13:54:33 +02:00
Simran Brucherseifer 7161227b14 Add docs and test for AQL DISTANCE function 2016-10-14 11:17:29 +02:00
jsteemann 0f49a6d8b7 make sort a bit more clever 2016-10-07 16:09:28 +02:00
jsteemann 848ca5b28c fix AQL tests in cluster 2016-10-07 15:21:58 +02:00
jsteemann d67c6372aa fixed issue #2086 2016-10-06 14:04:15 +02:00
Jan Steemann 1cbcc278da added test for issue #2081 2016-10-06 11:51:59 +02:00
jsteemann a45322076a issue #2079 2016-09-27 16:34:39 +02:00
jsteemann 9b951ff6c2 speed up tests 2016-09-23 12:20:10 +02:00
jsteemann 0b7d73bf3b add setUpAll, tearDownAll 2016-09-23 12:08:39 +02:00
jsteemann bbc0e8940c issue #2071
make the AQL query optimizer inject filter condition expressions referred to by variables during filter condition aggregation
for example, in the following query

    FOR doc IN collection
      LET cond1 = (doc.value == 1)
      LET cond2 = (doc.value == 2)
      FILTER cond1 || cond2
      RETURN { doc, cond1, cond2 }

the optimizer will now inject the conditions for `cond1` and `cond2` into the filter condition `cond1 || cond2`, expanding it to
`(doc.value == 1) || (doc.value == 2)` and making these conditions available for index searching.

note that the optimizer previously already injected some conditions into other conditions, but only if the variable that defined
the condition was not used elsewhere. for example, the filter condition in the query

    FOR doc IN collection
      LET cond = (doc.value == 1)
      FILTER cond
      RETURN { doc }

already got optimized before because `cond` was only used once in the query and the optimizer decided to inject it into the place
where it was used.
this only worked for variables that were referred to once in the query. when a variable was used multiple times, the condition
was not injected as in the following query

    FOR doc IN collection
      LET cond = (doc.value == 1)
      FILTER cond
      RETURN { doc, cond }

the fix for #2070 now will enable this optimization so that the query can use an index on `doc.value` if available.
2016-09-22 20:29:27 +02:00
jsteemann 5e26337548 issue #2070 2016-09-22 19:59:13 +02:00
Jan Steemann f0e14cff7d changed behavior of array comparison operators for empty arrays 2016-09-21 11:01:59 +02:00
Michael Hackstein d01c7ca32b Disabled {uniqueEdges: 'global'} and {uniqueVertices: 'global', bfs: false} in Pattern Matching query as their result is entirely non deterministic. 2016-09-19 13:28:43 +02:00
Jan Steemann a2deb13c8d fixed issue #2060 2016-09-19 08:50:13 +02:00
Michael Hackstein c6cd5574b1 Removed a graph optimization which increased the minDepth if a filter is defined on a higher depth. Under some circumstances this filter can be matched if the path is not long enough. 2016-09-14 10:23:34 +02:00
jsteemann a9902fe02d fixed typo 2016-09-08 17:52:29 +02:00
jsteemann 50ff529244 jslint 2016-09-08 17:34:59 +02:00
Michael Hackstein adec2b1c50 Fixed traverser test. Which has two possible results 2016-09-08 17:07:12 +02:00
Michael Hackstein 7a2a0ddc0e Fixed another statistic test in graph traverser. 2016-09-07 15:27:05 +02:00
Michael Hackstein 446e5dddfc Fixed graph traversal tests in cluster. They use a different index than local server and hence reporting is different. 2016-09-07 14:50:40 +02:00
jsteemann 528ebdf573 slightly prefer primary index 2016-09-07 11:42:13 +02:00
jsteemann 98dc073774 Merge branch 'devel' of https://github.com/arangodb/arangodb into generic-col-types 2016-09-07 10:01:49 +02:00
Jan Steemann a79c8360d4 fixed issue #2039 2016-09-07 09:59:41 +02:00
jsteemann b161f5b9aa test adjustments 2016-09-06 11:10:17 +02:00
Michael Hackstein e22014a272 Merge branch 'MIT' of github.com:arangodb/arangodb into generic-col-types 2016-09-06 09:33:23 +02:00
Jan Steemann 57fa55921c fix execution of AQL traversal expressions when there are multiple conditions that refer to variables set outside the traversal 2016-08-23 10:48:08 +02:00
Jan Steemann b296468a18 more optimizations 2016-08-22 17:36:04 +02:00
Simran Brucherseifer 4b3a8baa44 FOXX -> Foxx 2016-08-18 13:30:18 +02:00
jsteemann 5b0bc88cc2 added tests for unary minus and plus in c++ 2016-08-15 18:17:02 +02:00
Michael Hackstein 374e657ae7 Fixed final cluster traverser statistic test 2016-08-11 11:22:05 +02:00
Michael Hackstein 9e22f3f902 Fixed an undefined behaviour bug and a cluster statistic for Traverser. 2016-08-10 18:06:49 +02:00
Michael Hackstein 418ed17efe Fixed Statistics-tests for graphs. We filter and scan less now if the conditions would only work on longer paths 2016-08-10 17:50:35 +02:00
Michael Hackstein 3a95244599 Fixed ALL== and NONE== tests for graph traversals. SingleServer and cluster 2016-08-10 17:10:25 +02:00
Michael Hackstein 654dd63719 Added some more tests for ALL == and NONE == in graph traverser. Still all red. 2016-08-10 09:57:16 +02:00
Michael Hackstein 7830248fa2 Added tests for ALL== and NONE== optimisation in Traverser. Tests are RED now. 2016-08-09 17:41:01 +02:00
Michael Hackstein 3dedde1688 Fixed test for scanned index in Traverser. The cluster now is better than it was before. 2016-08-09 16:27:17 +02:00
Michael Hackstein 8225cf9e10 Fixed syntax error in graph-traverser 2016-08-08 17:42:01 +02:00
Michael Hackstein 5d33d3d061 Fixed vpack-externals test. It now states WITH in cluster. 2016-08-08 17:41:22 +02:00
Michael Hackstein 5fcf95a67e Fixed test for rule optimize traversals. 2016-08-08 17:35:42 +02:00
Michael Hackstein e2ba840577 Fixed aql-graph suite in cluster. It now uses WITH statements. 2016-08-08 17:35:20 +02:00
Michael Hackstein bb5a9442a5 Fixed test suite. 2016-08-08 17:06:43 +02:00
Michael Hackstein bf435219dc Adopted many graph tests to now properly use WITH to make sure all collections are locked properly. Will add a test for correct behaviour without WITH later. 2016-08-08 12:38:40 +02:00
Michael Hackstein 994a99e31f Merge branch 'devel' of github.com:arangodb/arangodb into MIT 2016-08-01 16:50:54 +02:00