partition key's length should be costomized
bugfix