memgraph/src/query/plan
Marin Tomic b5cdf6b476 Clean-up TypedValue misuse
Summary:
In a bunch of places `TypedValue` was used where `PropertyValue` should be. A lot of times it was only because `TypedValue` serialization code could be reused for `PropertyValue`, only without providing callbacks for `VERTEX`, `EDGE` and `PATH`. So first I wrote separate serialization code for `PropertyValue` and put it into storage folder. Then I fixed all the places where `TypedValue` was incorrectly used instead of `PropertyValue`. I also disabled implicit `TypedValue` to `PropertyValue` conversion in hopes of preventing misuse in the future.

After that, I wrote code for `VertexAccessor` and `EdgeAccessor` serialization and put it into `storage` folder because it was almost duplicated in distributed BFS and pull produce RPC messages. On the sender side, some subset of records (old or new or both) is serialized, and on the reciever side, records are deserialized and immediately put into transaction cache.

Then I rewrote the `TypedValue` serialization functions (`SaveCapnpTypedValue` and `LoadCapnpTypedValue`) to not take callbacks for `VERTEX`, `EDGE` and `PATH`, but use accessor serialization functions instead. That means that any code that wants to use `TypedValue` serialization must hold a reference to `GraphDbAccessor` and `DataManager`, so that should make clients reconsider if they really want to use `TypedValue` instead of `PropertyValue`.

Reviewers: teon.banek, msantl

Reviewed By: teon.banek

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D1598
2018-09-13 13:45:54 +02:00
..
cost_estimator.hpp Clean-up TypedValue misuse 2018-09-13 13:45:54 +02:00
distributed_ops.cpp Clean-up TypedValue misuse 2018-09-13 13:45:54 +02:00
distributed_ops.lcp Extract distributed Expand 2018-08-30 14:43:01 +02:00
distributed.cpp Extract distributed Expand 2018-08-30 14:43:01 +02:00
distributed.hpp Rename AstTreeStorage to AstStorage 2018-06-14 13:39:03 +02:00
operator.cpp Clean-up TypedValue misuse 2018-09-13 13:45:54 +02:00
operator.lcp Extract distributed Expand 2018-08-30 14:43:01 +02:00
planner.hpp Add EXPLAIN to openCypher 2018-08-23 14:05:32 +02:00
preprocess.cpp Add EXPLAIN to openCypher 2018-08-23 14:05:32 +02:00
preprocess.hpp Add rest of user auth queries 2018-08-06 16:16:48 +02:00
pretty_print.cpp Extract distributed Expand 2018-08-30 14:43:01 +02:00
pretty_print.hpp Add EXPLAIN to openCypher 2018-08-23 14:05:32 +02:00
rule_based_planner.cpp Extract distributed create operators 2018-08-30 14:41:23 +02:00
rule_based_planner.hpp Integrate auth checks into query execution 2018-08-22 11:44:09 +02:00
variable_start_planner.cpp Implement UNION query combinator 2017-12-13 09:54:00 +01:00
variable_start_planner.hpp Implement UNION query combinator 2017-12-13 09:54:00 +01:00
vertex_count_cache.hpp Clean utils folder (namespaces, function names) 2018-04-22 09:44:32 +02:00