PTableType<K, V> parentType = ptype.getTableType();
if (parentType instanceof AvroType) {
keySerde = getAvroSerde(parentType.getKeyType(), runtime.getConfiguration());
valueSerde = getAvroSerde(parentType.getValueType(), runtime.getConfiguration());
} else {
keySerde = new WritableSerDe(((WritableType) parentType.getKeyType()).getSerializationClass());
valueSerde = new WritableSerDe(((WritableType) parentType.getValueType()).getSerializationClass());
}
int numPartitions = (groupingOptions.getNumReducers() > 0) ? groupingOptions.getNumReducers() :
PartitionUtils.getRecommendedPartitions(this, getPipeline().getConfiguration());
if (numPartitions <= 0) {