added error checking for no partition cols