public byte[] setByteArrayToLongSize(byte[] arr) {
    byte[] temp = new byte[Math.max(arr.length, 8)];
    for (int i = 0; i < arr.length; i++) {
      temp[i] = arr[i];
    }
    for (int i = arr.length; i < 8; i++) {
      temp[i] = (byte) 0;
    }
    return temp;
  }
Creates the alter table command to add a partition to the given table.

@param pt
@return
ql/src/java/org/apache/hadoop/hive/ql/exec/DDLPlanUtils.java