Description
In NTile, the number of rows per bucket is computed as n / buckets, where n is the partition size, and buckets is the argument to NTile (number of buckets). The code currently casts the arguments to IntDecimal, then casts the result back to IntegerType. This is unnecessary, since it is equivalent to just doing integer division, i.e. n div buckets.