Partitioning support

Test for table already partitioned or no