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

refactor unwind #1018

Merged
merged 1 commit into from
May 12, 2021
Merged

refactor unwind #1018

merged 1 commit into from
May 12, 2021

Conversation

czpmango
Copy link
Contributor

@czpmango czpmango commented May 10, 2021

This PR refactored the implementation of unwind, and did the following things:

@czpmango czpmango added ready-for-testing PR: ready for the CI test do not review PR: not ready for the code review yet labels May 10, 2021
@czpmango czpmango force-pushed the refactor-unwind branch 4 times, most recently from 3d8792c to bbbf41a Compare May 11, 2021 09:34
@czpmango czpmango removed the do not review PR: not ready for the code review yet label May 11, 2021
@czpmango czpmango requested a review from a team May 11, 2021 10:01
jievince
jievince previously approved these changes May 11, 2021
Copy link
Contributor

@jievince jievince left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -97,119 +97,6 @@ Feature: With clause and Unwind clause
| age |
| 23 |

Scenario: unwind return
Copy link
Contributor

Choose a reason for hiding this comment

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

Why delete these?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Moved to Unwind.feature


auto iter = ectx_->getResult(unwind->inputVar()).iter();
DCHECK(!!iter);
auto &inputRes = ectx_->getResult(unwind->inputVar());
Copy link
Contributor

@Shylock-Hg Shylock-Hg May 12, 2021

Choose a reason for hiding this comment

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

What's the improvement?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed a inner for-block to avoid expression overhead.

Copy link
Contributor

@jievince jievince left a comment

Choose a reason for hiding this comment

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

LGTM

@yixinglu yixinglu merged commit 41847cf into vesoft-inc:master May 12, 2021
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.

MATCH query gets different results with neo4j when checking circular path
4 participants