add doc to explain preservesPartitioning
fix wrong usage of preservesPartitioning
make sample preserse partitioning