HIVE-7527: allow specifying numPartitions