Skip to content

Implement arbitrary expression evaluation in RETURN projections#360

Closed
cyrusknopf wants to merge 53 commits intomainfrom
v2/return-expr
Closed

Implement arbitrary expression evaluation in RETURN projections#360
cyrusknopf wants to merge 53 commits intomainfrom
v2/return-expr

Conversation

@cyrusknopf
Copy link
Contributor

Implements #359

@cyrusknopf cyrusknopf self-assigned this Jan 30, 2026
@turing-db turing-db deleted a comment from github-actions bot Feb 2, 2026
@turing-db turing-db deleted a comment from github-actions bot Feb 2, 2026
@cyrusknopf cyrusknopf marked this pull request as ready for review February 2, 2026 18:00
@cyrusknopf cyrusknopf requested a review from rjb32 as a code owner February 2, 2026 18:00
@turing-db turing-db deleted a comment from github-actions bot Feb 2, 2026
@turing-db turing-db deleted a comment from github-actions bot Feb 2, 2026

ExprProgram* prog = ExprProgram::create(_pipeline);
ExprProgramGenerator progGen =
ExprProgramGenerator(this, prog, _builder.getPendingOutput());
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 just use the constructor? Like:

ExprProgramGenerator progGen(this, prog, _builder.getPendingOutput());

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks fixed

throwError("Return statement without previous node", stmt);
}
// A "standalone return" is a sole return clause, e.g. `RETURN 4 + 5`
const bool isStandaloneReturn = prevNode == nullptr;
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add parenthesis around the boolean expression for readability

@rjb32
Copy link
Contributor

rjb32 commented Feb 3, 2026

Otherwise looks good to me, it's well commented

@cyrusknopf cyrusknopf marked this pull request as draft February 3, 2026 17:55
@cyrusknopf cyrusknopf linked an issue Feb 9, 2026 that may be closed by this pull request
@cyrusknopf
Copy link
Contributor Author

Moved to #407

@cyrusknopf cyrusknopf closed this Feb 9, 2026
@cyrusknopf cyrusknopf removed a link to an issue Feb 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Integer overflow for large multiplications in return projection

3 participants