Use SALTING_COLUMN.getDataType().getKeyRange instead of this. In general, when creating a key range, you should go through PDataType