Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PruningVarExpand should handle incoming null nodes #10367

Merged
merged 3 commits into from Nov 8, 2017
Merged

PruningVarExpand should handle incoming null nodes #10367

merged 3 commits into from Nov 8, 2017

Conversation

Lojjs
Copy link
Contributor

@Lojjs Lojjs commented Oct 31, 2017

Changelog: Fixes #9492, so that PruningVarExpand after optional match will handle incoming null nodes

Copy link
Contributor

@fickludd fickludd left a comment

Choose a reason for hiding this comment

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

This looks good, I have some opinion on the pattern match, and maybe think about the comments from #10366

row = row,
expandMap = Primitive.longObjectMap[FullExpandDepths]())
nextState.next()
case Some(x: Value) if x.asObject() == null =>
Copy link
Contributor

Choose a reason for hiding this comment

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

This is correct but slightly strange. I would prefer
case Some(x: Value) if x == NO_VALUE =>
or even
case Some(NO_VALUE) =>
if that's allowed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We tried to write i prettier but we didn't managed, must ave been trying to use the wrong NO_VALUE or something. However, fixed it now in a new commit.

@fickludd fickludd merged commit 86f2dce into neo4j:3.3 Nov 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants