Hi Suhail,
of course you can use the function as-is, pre-13.10 just doesn't support SQL functions.
The basic calculation is like getting a year-month out of a year and a month:
year * 100 + month = 2013*100+01 -> 201301
For binary data it's:
aabbccdd -> hashbucket(aabb....) * 2**16 + hashbucket(ccdd....)
Dieter
↧