GroupBy week in querydsl

Viewed 25

I get error

'week' is not a recognized built-in function name.

When trying to do this request:

var queryList = from(indexValue)
        .select(indexValue.value.avg().castToNum(BigDecimal.class))
        .groupBy(indexValue.day.week())
        .fetch();

But everything is ok, when i use indexValue.day.month() or indexValue.day.year(). How can i fix it?

0 Answers
Related