Jan Steemann
1bf5abaf14
changed HTTP return code for canceled operations from 408 to 410
2015-11-23 10:25:05 +01:00
Michael Hackstein
b18ce56a68
Merge branch 'devel' of github.com:arangodb/arangodb into JHMH
2015-11-20 10:49:00 +01:00
Wilfried Goesgens
a5c50ad8e9
we have to flush the work vectors before we invoke findVariableAccess()
2015-11-19 17:21:33 +01:00
Wilfried Goesgens
16eee4793d
Improve error reporting if selecting a graph description fails
2015-11-19 16:27:36 +01:00
Jan Steemann
bc3bbc46b5
fixed Visual Studio warnings
2015-11-19 14:29:49 +01:00
jsteemann
19373f80fa
removed dependency on vector.h
2015-11-19 01:41:42 +01:00
jsteemann
f900090584
fixed undefined behavior
2015-11-19 00:16:00 +01:00
jsteemann
cb62c657e0
initial commit
2015-11-18 17:46:19 +01:00
Michael Hackstein
001dd4debf
The local traverser now early filters on vertices
2015-11-18 16:14:17 +01:00
Michael Hackstein
201c54e6b0
Removed unnecessary constructors
2015-11-18 15:32:04 +01:00
Michael Hackstein
ff732237fc
Fixed compilation error
2015-11-18 15:31:50 +01:00
Michael Hackstein
6b8b039fe6
Added implementation for binary comparison aperators in the TraversalExpression
2015-11-18 15:23:36 +01:00
Michael Hackstein
1f6519b01e
Using early abortion in local Traverser for AQL. Now it's cluster time
2015-11-18 14:50:03 +01:00
Michael Hackstein
57afbb31bf
Merge branch 'devel' of github.com:arangodb/arangodb into JHMH
2015-11-18 14:00:24 +01:00
Jan Steemann
9e5308fb43
make it a struct
2015-11-18 14:00:07 +01:00
Michael Hackstein
7a36bbb43f
Merge branch 'devel' of github.com:arangodb/arangodb into JHMH
2015-11-18 13:58:47 +01:00
Jan Steemann
6f262b6083
added DocumentAccessor
2015-11-18 13:58:14 +01:00
Michael Hackstein
f880592025
Used the TraverserExpression in Local case for Edges. Right now it fails hardcoded.
2015-11-18 11:26:55 +01:00
Michael Hackstein
9a42870b6b
Fixed BAD_ACCESS
2015-11-18 09:41:41 +01:00
Michael Hackstein
d002ccccff
Deactivated late complete condition check in AQL Traverser
2015-11-18 09:41:25 +01:00
Michael Hackstein
508b63803c
Improved error message AQL execute
2015-11-18 09:40:54 +01:00
Max Neunhoeffer
eec37d1e8b
Merge branch 'devel' of ssh://github.com/ArangoDB/ArangoDB into devel
2015-11-17 17:17:10 +01:00
Max Neunhoeffer
68941c1ea9
Fix a typo in a variable name.
2015-11-17 17:16:59 +01:00
Michael Hackstein
0adbef4f76
Transformed the TraversalExpression vector into a map ordered by access level. This is way more convenient on the Traverser side to be used.
2015-11-17 16:25:45 +01:00
Michael Hackstein
3afddb32ed
The TraversalBlock now executes all expressions locally. It is able to hand them over to Traversers
2015-11-17 14:11:15 +01:00
Jan Steemann
82eddeb120
allow using array indexes without specifying the `[*]` extension
2015-11-17 14:03:58 +01:00
Jan Steemann
c690e91d77
improved error messages
2015-11-17 12:15:18 +01:00
Max Neunhoeffer
48c121bb24
Merge branch 'devel' of ssh://github.com/ArangoDB/ArangoDB into devel
2015-11-17 11:46:19 +01:00
Wilfried Goesgens
5428ac0682
Broaden the range of expressions we can push out into the cluster as simple expression.
2015-11-17 11:34:45 +01:00
Michael Hackstein
a5273e8fec
Preperation for DBServer local filtering
2015-11-17 11:01:51 +01:00
Michael Hackstein
2d9f466f38
Minor style fixes
2015-11-17 10:35:32 +01:00
Michael Hackstein
3845f8b7eb
Merge branch 'JHMH' of github.com:arangodb/arangodb into JHMH
2015-11-17 08:54:59 +01:00
jsteemann
8dbcf9e940
error message adjustment
2015-11-16 21:53:05 +01:00
Michael Hackstein
6572806300
Fixed ClusterTraverser if there is a vertex without edges
2015-11-16 20:24:10 +01:00
Michael Hackstein
5eaf990405
Fixed converting VertexId -> String in Cluster
2015-11-16 20:13:44 +01:00
Michael Hackstein
4c45e3fb5a
Fixed a bug when using edge collections in Traversal
2015-11-16 19:48:20 +01:00
Michael Hackstein
3926e82247
Added an otion to extract the collection type in a cluster with the CollectionNameResolcer
2015-11-16 19:47:50 +01:00
Wilfried Goesgens
ed7ba7f573
append javascript stacktraces to the errormessage, so the caller of AQL-JS function can find out where it broke
2015-11-16 16:59:15 +01:00
Wilfried Goesgens
5dd70c78c0
Merge branch 'devel' of github.com:arangodb/ArangoDB into JHMH
2015-11-16 15:55:33 +01:00
Wilfried Goesgens
c2fcef77e6
remove p.edges[*].foo detection, we can't handle this.
2015-11-16 15:43:54 +01:00
Michael Hackstein
21cf784cbc
First attempt for multi collection graphs. Not yet functional.
2015-11-16 15:36:00 +01:00
Michael Hackstein
e8cdc5190f
Single Collection Traversals are now functional within the cluster.
2015-11-16 14:55:07 +01:00
Michael Hackstein
b391d9cb22
Fixed a bug when the cluster iterates over more than one edge
2015-11-16 13:20:32 +01:00
Michael Hackstein
fa4b08a4b8
Further implemenetation for ClusterTraverser. It now returns the correct format. However there seems to be an undefined state which can be reached
2015-11-16 11:37:29 +01:00
Michael Hackstein
85233c366c
Added a convenience function to transofmr VertexId to std::string
2015-11-16 09:13:28 +01:00
Michael Hackstein
3923c7936e
EdgeCollections are now evaluated to cids later in TraversalBlock. This change was necessary for the Cluster
2015-11-16 09:09:34 +01:00
Michael Hackstein
eec9c02a36
Merge branch 'JHMH' of github.com:arangodb/arangodb into JHMH
2015-11-13 17:12:36 +01:00
Michael Hackstein
04da539ba1
Further implementation of Cluster Traverser. It now has code that in theory should fetch the first set of edges. Right now it fails for undefined collection name
2015-11-13 17:12:33 +01:00
Wilfried Goesgens
418ddc4dd5
Implement simple condition extractor
2015-11-13 16:49:12 +01:00
Michael Hackstein
e475d9c778
Added a function to get all edges for a specific vertex in the cluster.
2015-11-13 16:04:49 +01:00
Max Neunhoeffer
8c2be32b48
Merge branch 'devel' of ssh://github.com/ArangoDB/ArangoDB into devel
2015-11-13 15:08:39 +01:00
Michael Hackstein
e24135df09
Extracted some more common functionality from V8 and Cluster Traverser to the abstract class
2015-11-13 14:54:32 +01:00
Michael Hackstein
9a95e1d36b
Added Files for Cluster Traverser.
2015-11-13 14:53:46 +01:00
Michael Hackstein
b7a8a364fc
Started Including the Cluster Traversal in AQL. Right now the result is empty but the server will not crash any more. Now starting with the real implementation.
2015-11-13 11:08:18 +01:00
Michael Hackstein
173a746cc9
Added new constructor for AstNodes which is independent from AQL.
2015-11-13 11:07:06 +01:00
Michael Hackstein
8d0d921ab6
Included two Abstract classes for Traversals. Traverser and TraversalPath. Implemented both of them for Single-Server Traversals.
2015-11-12 16:25:36 +01:00
Wilfried Goesgens
e18e1fa75b
Fix shape access for graph object
2015-11-12 13:57:15 +01:00
Jan Steemann
0b13b01e77
fixed potentially invalid pointer access
2015-11-11 17:03:36 +01:00
Jan Steemann
a3e4a2f863
removed some includes
2015-11-11 15:16:37 +01:00
Jan Steemann
25fa71187d
fixed error messages
2015-11-11 14:43:28 +01:00
Jan Steemann
aa38f5d036
fixed error messages
2015-11-11 13:58:48 +01:00
Wilfried Goesgens
92ad802bd6
Cache Graphs inside of the Query object
...
- split Graph clas into Aql/Graphs
- cleanup includes
2015-11-11 13:52:33 +01:00
Wilfried Goesgens
2d5d2d881e
Merge branch 'devel' of github.com:arangodb/ArangoDB into JHMH
2015-11-11 11:05:06 +01:00
Wilfried Goesgens
ae4d888c9a
- Make graphs lookup clustrer ready
...
- remove cache, its hard to maintain when its valid and when not.
2015-11-11 11:04:12 +01:00
Max Neunhoeffer
c2c8bf95f3
Merge branch 'devel' of ssh://github.com/ArangoDB/ArangoDB into devel
2015-11-11 10:47:30 +01:00
Wilfried Goesgens
04b1d75d51
Improve error handling, differenciate between collection not found and collection wrong for vertex
2015-11-10 13:32:46 +01:00
Jan Steemann
e321c9747a
added option `--server.hide-product-header`
2015-11-10 10:27:59 +01:00
Max Neunhoeffer
af3cb6868f
Increase timeouts for larger clusters.
2015-11-10 10:21:36 +01:00
Jan Steemann
1506a6cd4a
fixed access to wrong value
2015-11-10 09:57:06 +01:00
Wilfried Goesgens
18f8d084b8
Implement checking for invalid range-attributes to the traversalnode, and emplace a NoResultsNode in that case.
2015-11-09 15:39:08 +01:00
Wilfried Goesgens
10fd57c391
remove debug output
2015-11-09 11:21:27 +01:00
Wilfried Goesgens
c27ee437dd
Properly communicate whether we altered the plan or not.
2015-11-09 10:59:40 +01:00
Wilfried Goesgens
68190856ac
- fix matching *
...
- implement filtering out conditions that would reference variables unknown to the traversal node
2015-11-06 15:52:01 +01:00
Wilfried Goesgens
9ad613a0a8
Return the variables that expressions use too in getVariablesUsedHere()
2015-11-06 15:50:59 +01:00
Wilfried Goesgens
7a54982eb4
Merge branch 'devel' of github.com:arangodb/ArangoDB into JHMH
2015-11-06 13:53:21 +01:00
Wilfried Goesgens
d51b5cdc9b
Finalize the explain feature
2015-11-06 13:41:44 +01:00
Jan Steemann
cb60466228
removed useless RestAdminBaseHandler layer
2015-11-06 12:42:02 +01:00
Jan Steemann
725529e5f8
updated CHANGELOG
2015-11-06 10:47:56 +01:00
Michael Hackstein
6b62d50ced
Added CXX Implementation of MERGE_RECURSIVE
2015-11-05 17:35:03 +01:00
Michael Hackstein
e377cbab9d
Merge branch 'devel' of github.com:arangodb/arangodb into devel
2015-11-05 15:29:05 +01:00
Michael Hackstein
2542ea5924
Added a CXX implementation for POSITION
2015-11-05 15:29:00 +01:00
Jan Steemann
c4fd0d524e
Merge branch 'devel' of https://github.com/arangodb/arangodb into devel
2015-11-05 15:16:34 +01:00
Jan Steemann
a5be448a6d
more diagnostic output for replication progress
2015-11-05 15:16:24 +01:00
Michael Hackstein
e97e7a9e9b
Merge branch 'devel' of github.com:arangodb/arangodb into devel
2015-11-05 14:27:03 +01:00
Michael Hackstein
6cab84e972
Added CXX implementation for RANGE
2015-11-05 14:26:53 +01:00
Jan Steemann
3c04642550
moved object cache from `db` object into object of its own
2015-11-05 14:20:02 +01:00
Jan Steemann
2a7430e5e8
minor fixes for replication
2015-11-05 12:51:19 +01:00
Jan Steemann
237ef1112e
Merge branch 'devel' of https://github.com/arangodb/arangodb into devel
2015-11-05 11:23:44 +01:00
Jan Steemann
b692cae352
never respond with empty error messages
2015-11-05 11:23:26 +01:00
Michael Hackstein
92c394e1ce
Merge branch 'devel' of github.com:arangodb/arangodb into devel
2015-11-05 11:21:34 +01:00
Michael Hackstein
90aa5c858f
Added CXX implementation for MEDIAN and PERCENTILE
2015-11-05 11:21:16 +01:00
Jan Steemann
dc53e9fe95
move away from mutex to atomic variables
2015-11-05 10:58:35 +01:00
Michael Hackstein
dbc67518a4
Added CXX implementation for STDDEV_SAMPLE and STDDEV_POPULATION
2015-11-04 17:53:45 +01:00
Wilfried Goesgens
179660e87c
Merge branch 'devel' of github.com:arangodb/ArangoDB into JHMH
2015-11-04 17:07:09 +01:00
Michael Hackstein
0294be6ebe
Added a CXX implementation for VARIANCE_POPULATION.
2015-11-04 16:49:08 +01:00
Michael Hackstein
a1f947c9bf
Added a CXX implemention for VARIANCE_SAMPLE
2015-11-04 16:39:45 +01:00
Michael Hackstein
a958714bcc
Added a CXX implementation for CURRENT_DATABASE.
2015-11-04 14:40:16 +01:00
Michael Hackstein
b43eb25135
Added CXX implementation for REMOVE_VALUES
2015-11-04 14:02:27 +01:00
Michael Hackstein
03b6a021ce
Adde CXX implementation of NOT_NULL
2015-11-04 13:38:22 +01:00
Jan Steemann
dca3d207a1
Merge branch 'devel' of https://github.com/arangodb/arangodb into devel
2015-11-04 13:19:04 +01:00
Jan Steemann
3f078553f9
fixed leaks
2015-11-04 13:18:48 +01:00
Michael Hackstein
d28f2f8d24
Merge branch 'devel' of github.com:arangodb/arangodb into devel
2015-11-04 12:44:39 +01:00
Michael Hackstein
3549be5088
Added CXX implementation for REMOVE_VALUE and REMOVE_NTH
2015-11-04 12:44:30 +01:00
Jan Steemann
ad133ea862
turn off replication applier when starting with --no-server
2015-11-04 12:22:02 +01:00
Jan Steemann
2d84bb4439
added comments
2015-11-04 12:18:27 +01:00
Jan Steemann
3fd59fa3aa
improved dfdb output
2015-11-04 12:17:29 +01:00
Jan Steemann
9df8128b94
duplicate attributes or shapes detection in shaper
...
when detecting duplicate attributes or shapes in Shaper, warn if their binary representation is distinct
and ignore them if their binary representation is the same as one of a previous shape/attribute with the
same id
2015-11-04 11:53:11 +01:00
Jan Steemann
9d74b48b94
fixed "no start tick" issue in replication applier
...
This error could occur after restarting a slave server after a shutdown
when no data was ever transferred from the master to the slave via the
continuous replication
2015-11-04 11:10:52 +01:00
Jan Steemann
9d94792140
disable replication applier when running with `--upgrade` and `--check-version`
2015-11-04 09:56:37 +01:00
Michael Hackstein
1957ef668d
Added CXX implementation of SHIFT
2015-11-03 17:36:28 +01:00
Michael Hackstein
c74aca37ac
Added CXX implementation for UNSHIFT
2015-11-03 17:07:47 +01:00
Michael Hackstein
c430a0ba36
Merge branch 'devel' of github.com:arangodb/arangodb into devel
2015-11-03 11:51:21 +01:00
Michael Hackstein
7ace3c42e4
Added a CXX implementation of APPEND
2015-11-03 11:51:12 +01:00
Jan Steemann
e7a955ea26
added comment
2015-11-03 10:55:25 +01:00
Michael Hackstein
5154e4de7a
Added CXX implementation of POP
2015-11-03 10:21:35 +01:00
Jan Steemann
496e1cbc0f
do not use strdup()
2015-11-03 10:21:35 +01:00
Jan Steemann
6d04ade890
avoid Visual Studio compile warnings
2015-11-03 10:21:35 +01:00
Michael Hackstein
d75bc51647
Added a CXX implementation of PUSH
2015-11-03 10:21:31 +01:00
Michael Hackstein
1848c0f1f4
Added CXX implementation for FIRST_DOCUMENT and FIRST_LIST.
2015-11-03 10:21:31 +01:00
Michael Hackstein
b71fa3e140
Added CXX implementation of Modulo.
2015-11-03 10:21:31 +01:00
Michael Hackstein
4627cdabb3
Added warnings for division by zero in CXX implementation.
2015-11-03 10:21:30 +01:00
Jan Steemann
2a2ddea576
fixed compile warning
2015-11-03 10:21:30 +01:00
jsteemann
b1a95cb42c
added AQL function `UNSET_RECURSIVE`
2015-11-03 10:21:30 +01:00
jsteemann
cbb691410c
added CXX implementations for `FIRST`, `LAST` and `NTH`
2015-11-03 10:21:28 +01:00
jsteemann
8d2c3fd7ca
remove even more FILTER conditions
2015-11-03 10:21:26 +01:00
jsteemann
a9a0a7e8cb
removed unused method
2015-11-03 10:19:31 +01:00
Michael Hackstein
0339cb5e0c
Added a CXX implementation of BINARY_OPERATOR_DIV. Deactivated CXX implementation of BINARY_OPERATOR_MOD have to check for data types
2015-11-03 10:19:31 +01:00
Michael Hackstein
f23259b2bb
Added CXX implementation of BINARY_OPERATOR_DIV
2015-11-03 10:19:30 +01:00
Michael Hackstein
ceec76f13b
Added CXX implementation for BINARY_OPERATOR_TIMES
2015-11-03 10:19:29 +01:00
Michael Hackstein
344f70fee2
Added CXX implementation for BINARY_MINUS
2015-11-03 10:19:29 +01:00
Max Neunhoeffer
21bc08715a
Fix heartbeat thread of DBserver, less sleeping.
2015-11-03 10:19:26 +01:00
Michael Hackstein
11606c1f55
Added a CXX implementation of BINARY_PLUS.
2015-11-03 10:19:26 +01:00
Frank Celler
3500e569a8
reverted 011117edee
, 72c8847324
, 5da5715fa9
, a371aac4af
, 7decf1560a
, 0331ff7993
, 6ec2014052
, ae8d686ae6
, 7efd0a1ec7
, 3449b87e2c
, d35a4034ef
, 7b3c1ed4dd
, e0c88e4a1a
, 952d643101
, fc9de8ed08
, 2f4319b31a
, 105662d5ba
, 0a08833b0f
, 4ac19a99fc
, 4c5494c67d
, 528bb85b30
, 528bb85b30
becuase of missing CLA
2015-11-03 10:19:25 +01:00
Jan Steemann
afdcc68e51
minor patches
2015-11-03 10:19:25 +01:00
Michael Hackstein
4a0bd0f72c
Refactored executeSimpleExpression. It now is a simple switch case with different private function calls. Instead of a 500 lines long function.
2015-10-30 15:53:49 +01:00
Michael Hackstein
2a32f71fe1
Started refactoring executeSimpleExpression.
2015-10-30 14:55:38 +01:00
Jan Steemann
f646110a86
fixed author
2015-10-30 13:59:04 +01:00
Jan Steemann
72f7eed100
Merge branch 'devel' of https://github.com/arangodb/arangodb into devel
2015-10-30 11:36:00 +01:00
Jan Steemann
41c388eab5
don't sleep in DBServer's HeartbeatThread::run() in case of plan changes
2015-10-30 11:35:18 +01:00
Michael Hackstein
ac1cf36daf
Added CXX implementation for ROUND and RAND
2015-10-30 11:06:57 +01:00
Michael Hackstein
858a8ba4f8
Merge branch 'devel' of github.com:arangodb/arangodb into devel
2015-10-30 10:27:21 +01:00
Michael Hackstein
2cbfce5cc2
Added CXX implementations for ABS, CEIL, FLOOR, SQRT
2015-10-30 10:26:52 +01:00
Jan Steemann
c98eae05e1
use indexes in more cases
2015-10-30 10:12:26 +01:00
Michael Hackstein
d7bbd1e9e2
Removed temporary allowPartialIndex from IndexInformation. This is an internal variable and should never bother the user
2015-10-30 09:25:21 +01:00
Wilfried Goesgens
9c3402876d
Now we know to filter for conditions that we can't analyze.
2015-10-29 17:48:46 +01:00
Wilfried Goesgens
a05e96b508
these AST-nodes are optional.
2015-10-29 17:47:36 +01:00
Wilfried Goesgens
bb9039c855
Merge branch 'devel' of github.com:arangodb/ArangoDB into JHMH
2015-10-29 16:01:01 +01:00
Jan Steemann
9aa1ba1f68
potential fix for ::stringify()
2015-10-29 15:58:47 +01:00
Michael Hackstein
cc35fdb7b0
Added the implementation and more tests for EDGES in CXX only
2015-10-29 15:52:46 +01:00
Wilfried Goesgens
ba159428be
Implement function to find all variable references in an expression.
2015-10-29 13:29:21 +01:00