Using the "unload" command on an open container like a drinking glass next to the player puts the container into the inventory and spills the liquid.
I'd expect to be asked where to fill the liquid, like when unloading an open container held in hands.
Confirmed in 0.D-13362 - while wielding an open container in the hands, the "Unload" menu gives a prompt for what to do with the contents:

But if an identical cup of water is sitting on the ground, the "Unload" menu does not prompt after hitting Enter here:

The clean water is dumped on the ground, and the empty cup is picked up.

None of this is mentioned in the event log - the only thing appearing there during these actions is "The opened plastic cup is already empty!":

This issue looks suspiciously similar to #38206 related to unloading a gun - and in fact someone has noted the liquid-unloading issue in the comments there as well.
Most helpful comment
Confirmed in 0.D-13362 - while wielding an open container in the hands, the "Unload" menu gives a prompt for what to do with the contents:
But if an identical cup of water is sitting on the ground, the "Unload" menu does not prompt after hitting Enter here:
The clean water is dumped on the ground, and the empty cup is picked up.
None of this is mentioned in the event log - the only thing appearing there during these actions is "The opened plastic cup is already empty!":
This issue looks suspiciously similar to #38206 related to unloading a gun - and in fact someone has noted the liquid-unloading issue in the comments there as well.