use crate::db::query::builder::AggregateExpr;
#[must_use]
pub(in crate::db::sql::lowering::aggregate) const fn apply_distinct_marker(
aggregate: AggregateExpr,
distinct: bool,
) -> AggregateExpr {
if distinct {
aggregate.distinct()
} else {
aggregate
}
}