partitioned-by columns have INDEX granularity instead of DOC

- impl `partitions` function on TableInfo, returns already resolved PartitionName instances