Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

refactor go #1111

Merged
merged 6 commits into from
Jun 22, 2021
Merged

refactor go #1111

merged 6 commits into from
Jun 22, 2021

Conversation

nevermore3
Copy link
Contributor

No description provided.

@nevermore3 nevermore3 added the wip Solution: work in progress label Jun 4, 2021
@nevermore3 nevermore3 force-pushed the refactor_go branch 2 times, most recently from 7c26f37 to 9185af5 Compare June 18, 2021 10:13
@nevermore3 nevermore3 force-pushed the refactor_go branch 2 times, most recently from cff4376 to 7ab49db Compare June 22, 2021 02:23
@nevermore3 nevermore3 added ready-for-testing PR: ready for the CI test and removed wip Solution: work in progress labels Jun 22, 2021
@nevermore3 nevermore3 requested a review from a team June 22, 2021 02:24
CPWstatic
CPWstatic previously approved these changes Jun 22, 2021
@CPWstatic CPWstatic merged commit 8d7c664 into vesoft-inc:master Jun 22, 2021
@nevermore3 nevermore3 deleted the refactor_go branch June 23, 2021 05:52
nevermore3 added a commit to nevermore3/nebula-graph that referenced this pull request Jun 24, 2021
* refactor go

* fix error

* unify getNeighbors interface

* fix compiler error

* fix unit test

* fix ci test error
Comment on lines +16 to +27
WHERE any(x in split($$.player.name, ' ') WHERE x contains 'Ti')
YIELD $$.player.name, like._dst AS vid
| GO FROM $-.vid OVER like BIDIRECT WHERE any(x in split($$.player.name, ' ') WHERE x contains 'Ti')
YIELD $$.player.name
"""
Then the result should be, in any order:
| $^.player.name |
| "Tiago Splitter" |
| $$.player.name |
| "Tim Duncan" |
And the execution plan should be:
| id | name | dependencies | operator info |
| 16 | Project | 26 | |
| 26 | LeftJoin | 25 | |
| 25 | Filter | 13 | |
| 13 | Project | 22 | |
| 22 | GetNeighbors | 9 | |
| 9 | Project | 24 | |
| 24 | LeftJoin | 23 | |
| 23 | Filter | 6 | |
| 6 | Project | 21 | |
| 21 | GetNeighbors | 2 | |
| 2 | Project | 17 | |
| 17 | IndexScan | 0 | |
| 22 | Project | 21 | |
| 21 | Filter | 20 | |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not add another test case instead of changing this?
This has compromised the test of the other code logic.

@@ -60,7 +60,7 @@ TEST_F(QueryValidatorTest, GoZeroStep) {
"| GO FROM $-.id OVER serve";
std::vector<PlanNode::Kind> expected = {
PK::kProject,
PK::kLeftJoin,
PK::kInnerJoin,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why change LeftJoin to InnerJoin? Isn't the result different?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
ready-for-testing PR: ready for the CI test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants