$bucket not working in Compas

I followed the example to use $bucket to group imdb.rating in compass but got this error:

Am I doing something wrong, please?


Well, Compass doesn’t like your “Infinity” (don’t know why) and you have a comma after the “default”, which is an error. If you change the “Infinity” to a large number (I used 1000) and remove the comma, you should get some output.

However, I would strongly recommend doing this in the shell, not in Compass. Compass still has some serious limitation (IMHO) and the command works just fine in the shell. HTH.

Thanks a lot, yes, compass doesn’t like Infinity. The Infinity works in the shell. Cheers!