get_partitions function

get unique values from table's column