Partitive nouns are nouns that refer to a part of a whole. In this case, "glass" refers to a part of the whole "milk".
Here are some other examples of partitive nouns with milk:
* A carton of milk
* A bottle of milk
* A cup of milk
* A quart of milk