i have implemented the mysql query in rust, but i select causes an error.
This is the error the trait `diesel::expression::MixedAggregates<diesel::expression::is_aggregate::Yes>` is not implemented for `diesel::expression::is_aggregate::No
Whats the problem and how can i fix this?
let sub = progress::table
.filter(progress::user.eq(1))
.group_by(progress:: otherid)
.select((diesel::dsl::max(progress::updated), progress::otherid, progress::onemoreid));
SELECT otherid, onemoreid, MAX(updated) AS newest_updated
FROM progress
WHERE user = 1
GROUP BY otherid
EDIT: the error doesnt occur when i dont have progress::onemoreid in select.