Working with partitions in tabular models