Fix bug
Reviewers: buda Reviewed By: buda Differential Revision: https://phabricator.memgraph.io/D351
This commit is contained in:
parent
3d026b106d
commit
b76685cba7
@ -587,8 +587,8 @@ class Aggregation : public UnaryOperator {
|
|||||||
protected:
|
protected:
|
||||||
Aggregation(int uid, Expression *expression, Op op)
|
Aggregation(int uid, Expression *expression, Op op)
|
||||||
: UnaryOperator(uid, expression), op_(op) {
|
: UnaryOperator(uid, expression), op_(op) {
|
||||||
// Count without expression denotes count(*) in cypher.
|
// COUNT without expression denotes COUNT(*) in cypher.
|
||||||
debug_assert(expression || op == Aggregation::Op::Count,
|
debug_assert(expression || op == Aggregation::Op::COUNT,
|
||||||
"All aggregations, except COUNT require expression");
|
"All aggregations, except COUNT require expression");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user