Reviewers: buda

Reviewed By: buda

Differential Revision: https://phabricator.memgraph.io/D351
This commit is contained in:
Mislav Bradac 2017-05-05 20:09:27 +02:00
parent 3d026b106d
commit b76685cba7

View File

@ -587,8 +587,8 @@ class Aggregation : public UnaryOperator {
protected:
Aggregation(int uid, Expression *expression, Op op)
: UnaryOperator(uid, expression), op_(op) {
// Count without expression denotes count(*) in cypher.
debug_assert(expression || op == Aggregation::Op::Count,
// COUNT without expression denotes COUNT(*) in cypher.
debug_assert(expression || op == Aggregation::Op::COUNT,
"All aggregations, except COUNT require expression");
}
};