memgraph/tests/unit
Marin Tomic eee8b57daf Separate query types in AST and interpreter
Summary:
`Query` is now an abstract class which has `CypherQuery`,
`ExplainQuery`, `IndexQuery`, `AuthQuery` and `StreamQuery` as derived
classes. Only `CypherQuery` is forwarded to planner and the rest of the
queries are handled directly in the interpreter. This enabled us to
remove auth, explain and stream operators, clean up `Context` class and
remove coupling between `Results` class and plan cache. This should make
it easier to add similar functionality because no logical operator
boilerplate is needed. It should also be easier to separate community
and enterprise features for open source.

Remove Explain logical operator
Separate IndexQuery in AST
Handle index creation in interpreter
Remove CreateIndex operator and ast nodes
Remove plan cache reference from Results
Move auth queries out of operator tree
Remove auth from context
Fix tests, separate stream queries
Remove in_explicit_transaction and streams from context

Reviewers: teon.banek, mferencevic, msantl

Reviewed By: teon.banek, mferencevic

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D1664
2018-10-22 16:43:42 +02:00
..
auth.cpp Implement leftover Auth queries 2018-08-14 13:00:39 +02:00
bfs_common.hpp Remove distributed logic from single node 2018-10-11 13:08:22 +02:00
bfs_distributed.cpp Distributed BFS filter lambda 2018-10-01 11:00:14 +02:00
bfs_single_node.cpp Remove distributed logic from single node 2018-10-11 13:08:22 +02:00
bolt_chunked_decoder_buffer.cpp Refactor network stack to use * instead of & 2018-09-03 20:20:42 +02:00
bolt_chunked_encoder_buffer.cpp Support streaming of Bolt results 2018-07-18 13:01:50 +02:00
bolt_common.hpp Support streaming of Bolt results 2018-07-18 13:01:50 +02:00
bolt_decoder.cpp Rename bolt::DecodedValue to bolt::Value 2018-07-24 15:59:20 +02:00
bolt_encoder.cpp Remove virtual and pimpl from single node 2018-10-09 11:48:30 +02:00
bolt_session.cpp Refactor network stack to use * instead of & 2018-09-03 20:20:42 +02:00
bolt_testdata.hpp Removed large bolt encoder test to reduce runtime. 2017-05-03 14:50:02 +02:00
CMakeLists.txt Don't rebuild test_lcp if it's not out of date 2018-10-19 14:01:12 +02:00
communication_buffer.cpp Refactor network stack to use * instead of & 2018-09-03 20:20:42 +02:00
concurrent_id_mapper_distributed.cpp Remove ConcurrentMap from RPC 2018-10-18 10:04:55 +02:00
concurrent_id_mapper_single_node.cpp Remove virtual and pimpl from single node 2018-10-09 11:48:30 +02:00
concurrent_map_access.cpp Const map/set iteration. 2017-10-12 16:35:39 +02:00
concurrent_map.cpp Clean SkipList up 2018-04-11 10:08:20 +02:00
counters.cpp Add explicit start to servers 2018-10-16 11:39:42 +02:00
cypher_main_visitor.cpp Separate query types in AST and interpreter 2018-10-22 16:43:42 +02:00
database_key_index.cpp Remove distributed logic from single node 2018-10-11 13:08:22 +02:00
database_label_property_index.cpp Remove distributed logic from single node 2018-10-11 13:08:22 +02:00
database_master.cpp Separate distributed from single node GraphDb 2018-10-05 13:32:05 +02:00
database_transaction_timeout.cpp Remove virtual and pimpl from single node 2018-10-09 11:48:30 +02:00
datastructure_union_find.cpp Add parallel customers/Otto test 2017-11-23 09:20:53 +01:00
deferred_deleter.cpp Separate distributed from single node storage 2018-10-05 09:19:33 +02:00
distributed_common.hpp Add explicit start to servers 2018-10-16 11:39:42 +02:00
distributed_coordination.cpp Remove ConcurrentMap from RPC 2018-10-18 10:04:55 +02:00
distributed_data_exchange.cpp Separate distributed implementation of GraphDbAccessor 2018-07-26 09:16:39 +02:00
distributed_dgp_partitioner.cpp Add dgp integration test 2018-09-08 00:01:03 +01:00
distributed_dgp_vertex_migrator.cpp Add dgp integration test 2018-09-08 00:01:03 +01:00
distributed_durability.cpp Remove distributed logic from single node 2018-10-11 13:08:22 +02:00
distributed_dynamic_worker.cpp Add unique constraint to label property index 2018-10-16 14:20:47 +02:00
distributed_gc.cpp Separate distributed implementation of GraphDbAccessor 2018-07-26 09:16:39 +02:00
distributed_graph_db.cpp Add unique constraint to label property index 2018-10-16 14:20:47 +02:00
distributed_interpretation.cpp Separate distributed from single node GraphDb 2018-10-05 13:32:05 +02:00
distributed_query_plan.cpp Separate query types in AST and interpreter 2018-10-22 16:43:42 +02:00
distributed_reset.cpp Move distributed operators to its own file 2018-08-28 14:47:14 +02:00
distributed_serialization.cpp Separate distributed from single node transaction engine 2018-10-05 14:11:39 +02:00
distributed_updates.cpp Separate distributed from single node GraphDb 2018-10-05 13:32:05 +02:00
durability.cpp Add unique constraint to label property index 2018-10-16 14:20:47 +02:00
dynamic_bitset.cpp Commit log gc 2018-04-04 10:25:25 +02:00
gid.cpp Separate distributed from single node storage 2018-10-05 09:19:33 +02:00
graph_db_accessor_index_api.cpp Fix unique constraint checks 2018-10-19 11:24:21 +02:00
graph_db_accessor.cpp Remove distributed logic from single node 2018-10-11 13:08:22 +02:00
graph_db.cpp Add unique constraint to label property index 2018-10-16 14:20:47 +02:00
interpreter.cpp Remove virtual and pimpl from single node 2018-10-09 11:48:30 +02:00
kvstore.cpp Remove distributed logic from single node 2018-10-11 13:08:22 +02:00
metrics.cpp Add some metric types and basic RPC server stats 2018-02-16 08:33:15 +01:00
mvcc_find_update_common.hpp Remove distributed logic from single node 2018-10-11 13:08:22 +02:00
mvcc_find.cpp GC bugfixes, MVCC and transaction refactoring 2017-06-12 10:46:12 +02:00
mvcc_gc_common.hpp Remove virtual and pimpl from single node 2018-10-09 11:48:30 +02:00
mvcc_gc.cpp Remove distributed logic from single node 2018-10-11 13:08:22 +02:00
mvcc_one_transaction.cpp Fix mvcc tests 2017-10-19 12:58:23 +02:00
mvcc_parallel_update.cpp Fix mvcc tests 2017-10-19 12:58:23 +02:00
mvcc.cpp Remove distributed logic from single node 2018-10-11 13:08:22 +02:00
network_endpoint.cpp Rename NetworkEndpoint 2018-01-15 15:47:37 +01:00
network_timeouts.cpp Add explicit start to servers 2018-10-16 11:39:42 +02:00
network_utils.cpp Extract utils into mg-utils static library and explicitly list tests 2018-05-30 09:41:56 +02:00
pod_buffer.cpp Separate distributed from single node storage 2018-10-05 09:19:33 +02:00
property_value_store.cpp Separate distributed from single node storage 2018-10-05 09:19:33 +02:00
query_common.hpp Separate query types in AST and interpreter 2018-10-22 16:43:42 +02:00
query_cost_estimator.cpp Add unique constraint to label property index 2018-10-16 14:20:47 +02:00
query_expression_evaluator.cpp Add unique constraint to label property index 2018-10-16 14:20:47 +02:00
query_plan_accumulate_aggregate.cpp Remove virtual and pimpl from single node 2018-10-09 11:48:30 +02:00
query_plan_bag_semantics.cpp Remove virtual and pimpl from single node 2018-10-09 11:48:30 +02:00
query_plan_checker.hpp Separate query types in AST and interpreter 2018-10-22 16:43:42 +02:00
query_plan_common.hpp Generate Load functions from LCP as top level 2018-09-28 10:34:20 +02:00
query_plan_create_set_remove_delete.cpp Separate query types in AST and interpreter 2018-10-22 16:43:42 +02:00
query_plan_edge_cases.cpp Remove virtual and pimpl from single node 2018-10-09 11:48:30 +02:00
query_plan_match_filter_return.cpp Add unique constraint to label property index 2018-10-16 14:20:47 +02:00
query_plan.cpp Separate query types in AST and interpreter 2018-10-22 16:43:42 +02:00
query_required_privileges.cpp Separate query types in AST and interpreter 2018-10-22 16:43:42 +02:00
query_semantic.cpp Fix total_weight not being returned with RETURN * 2018-10-18 15:03:46 +02:00
query_variable_start_planner.cpp Separate query types in AST and interpreter 2018-10-22 16:43:42 +02:00
queue.cpp Add first version of message passing and rpc 2017-12-05 14:51:18 +01:00
record_edge_vertex_accessor.cpp Remove distributed logic from single node 2018-10-11 13:08:22 +02:00
ring_buffer.cpp Extract io/network into mg-io library 2018-05-30 14:58:41 +02:00
rpc.cpp Add explicit start to servers 2018-10-16 11:39:42 +02:00
serialization.cpp Remove boost from the codebase 2018-07-30 15:34:12 +02:00
skiplist_access.cpp Const map/set iteration. 2017-10-12 16:35:39 +02:00
skiplist_gc.cpp Remove executor not run option 2017-12-18 14:36:15 +01:00
skiplist_position_and_count.cpp Replace debug_assert, permanent_assert with DCHECK/CHECK 2017-10-11 14:43:32 +02:00
skiplist_reverse_iteration.cpp Logger in this test somehow breaks code coverage. Argh... 2017-04-07 09:44:12 +02:00
skiplist_suffix.cpp Separate distributed from single node storage 2018-10-05 09:19:33 +02:00
socket.cpp Implement SSL support for servers and clients 2018-06-20 17:56:47 +02:00
state_delta.cpp Remove distributed logic from single node 2018-10-11 13:08:22 +02:00
static_bitset.cpp Fix tests that expect debug_assert to fail 2017-08-07 16:38:15 +02:00
storage_address.cpp Separate distributed from single node storage 2018-10-05 09:19:33 +02:00
stripped.cpp Split lexer and parser grammars 2018-07-26 10:33:25 +02:00
test_coordination.hpp Add explicit start to servers 2018-10-16 11:39:42 +02:00
test_lcp.lisp Add LCP tests 2018-10-15 11:52:20 +02:00
transaction_engine_distributed.cpp Remove ConcurrentMap from RPC 2018-10-18 10:04:55 +02:00
transaction_engine_single_node.cpp Remove virtual and pimpl from single node 2018-10-09 11:48:30 +02:00
typed_value.cpp Remove virtual and pimpl from single node 2018-10-09 11:48:30 +02:00
utils_algorithm.cpp Implement string functions 2018-07-02 10:39:11 +02:00
utils_demangle.cpp Extract utils into mg-utils static library and explicitly list tests 2018-05-30 09:41:56 +02:00
utils_exceptions.cpp Extract utils into mg-utils static library and explicitly list tests 2018-05-30 09:41:56 +02:00
utils_executor.cpp Extract utils into mg-utils static library and explicitly list tests 2018-05-30 09:41:56 +02:00
utils_on_scope_exit.cpp utils::auto_scope refactor 2017-08-11 09:43:10 +02:00
utils_rwlock.cpp Extract io/network into mg-io library 2018-05-30 14:58:41 +02:00
utils_scheduler.cpp Extract utils into mg-utils static library and explicitly list tests 2018-05-30 09:41:56 +02:00
utils_signals.cpp Extract utils into mg-utils static library and explicitly list tests 2018-05-30 09:41:56 +02:00
utils_string.cpp Remove keyword lowercasing from stripper 2018-07-19 17:08:45 +02:00
utils_thread_pool.cpp Throw exceptions on RPC failure and Distributed error handling 2018-09-27 16:27:40 +02:00
utils_timestamp.cpp Extract utils into mg-utils static library and explicitly list tests 2018-05-30 09:41:56 +02:00
utils_watchdog.cpp Extract utils into mg-utils static library and explicitly list tests 2018-05-30 09:41:56 +02:00