Water can compress a little bit if there's enough pressure. Glacier ice is about 8% denser than regular ice. A cube of glacier ice in a full to the brim glass of tap water will expand enough to push water up then over the edge.
From "
https://www.quora.com/Is-iceberg-ice-more-dense-or-less-dense-than-normal-ice".....
"Since icebergs calved from glaciers, their ice density is roughly 0.9 g/cm^3. (The theoretical limit for pure ice is 0.917 g/cm^3.) Not taken into account that icebergs may sometimes contain larger cavities, or some areas with less dense ice, which may make the overall structure lighter.
The “normal” ice cubes you may have in your coke or your whiskey (if you like that) are lighter than glacier ice, because they contain lots of microscopic air bubbles. That’s also the reason why this ice is white (air bubbles scatter light), whereas glacier ice is blueish. I haven’t measured it, but I would estimate that “normal” ice might lie around 0.8 g/cm^3"