memgraph/tests
Matej Ferencevic 28590aea53 Fix variable expand between same symbol
Summary:
This diff fixes the variable expand operator to work correctly then the start
and destination nodes use the same symbol or when the destination symbol is an
existing symbol.

Previously, the variable expand operator produced paths that were both
completely wrong (they shouldn't have been produced) and nonexistent (they
didn't even exist in the storage). Invalid data was produced because of a
wrong equality check that was introduced in D1703.

This issue was reported externally and the supplied test case was:
```
CREATE (p1:Person {id: 1})-[:KNOWS]->(:Person {id: 2})-[:KNOWS]->(:Person {id: 3})-[:KNOWS]->(:Person {id: 4})-[:KNOWS]->(p1);
MATCH path = (pers:Person {id: 3})-[:KNOWS*2]->(pers) RETURN path;
```

Also, tests have been added so the behavior remains correct.

Reviewers: buda

Reviewed By: buda

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D2793
2020-07-01 00:17:25 +02:00
..
benchmark Improve property store performance 2020-05-05 10:55:00 +02:00
concurrent Implement concurrent tests for storage indices 2020-04-01 10:43:05 +02:00
drivers Rename Bolt flags 2019-12-09 11:24:09 +01:00
feature_benchmark Temporarily disable HA build and tests 2020-01-13 17:04:27 +01:00
integration Fix label/edge/property name escaping in DUMP DATABASE 2020-05-21 14:46:51 +02:00
macro_benchmark Remove leftover implementation required by the old storage 2020-03-02 12:45:18 +01:00
manual Remove leftover implementation required by the old storage 2020-03-02 12:45:18 +01:00
property_based Migrate property_based tests to storage v2 2020-01-13 13:09:57 +01:00
public_benchmark Rename Bolt flags 2019-12-09 11:24:09 +01:00
qa Fix variable expand between same symbol 2020-07-01 00:17:25 +02:00
stress Add community to Apollo build 2020-02-17 13:27:20 +01:00
unit Fix variable expand between same symbol 2020-07-01 00:17:25 +02:00
.clang-tidy Add .clang-tidy for tests and update the config 2019-10-31 16:07:09 +01:00
apollo_runs.py Convert mgp_value to 'mgp' Python types, not '_mgp' ones 2020-03-06 11:23:08 +01:00
apollo_runs.yaml Add community to Apollo build 2020-02-17 13:27:20 +01:00
client-stress.sh Migrate command line args to gflgs in tests 2017-07-06 13:54:12 +02:00
CMakeLists.txt Remove global include directories in CMake 2020-02-03 13:18:30 +01:00