ntile

open fun ntile(numBuckets: ExpressionWithColumnType<Int>): Ntile

Returns an integer ranging from 1 to the numBuckets, dividing the partition as equally as possible.