Thanks Alessandro, it works as you suggested. I was trying to do .asFloat() after it has been computed (duh)
On Wednesday, 3 June 2015 21:29:50 UTC+5:30, [email protected] wrote: > > Hi, > if your rating is an integer variable, the method avg() will return an > integer value. So either you change the type of the variable, or use this > query > select AVG(rating.asFloat()) from Ratings > > Alessandro > > > >> -- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
