glue_get_partitions function

Retrieves information about the partitions in a table