Since 25w44a, when horses or other mounts are ridden in water, they float on the surface instead of sinking and causing the player to dismount. This however doesn’t apply to pigs - a pig sinks if ridden in water, and the player eventually dismounts. While not explicitly mentioned in the changelog, pigs are a mob the player can mount and travel on in the Overworld, so it would be expected that it behaves similarly to other mounts when it comes to traveling over water.
How to reproduce
Find or build a body of water that is at least 2 blocks deep
Spawn a pig
Place a saddle on the pig
Hold a carrot on a stick (so it can move to an area with deep enough water)
Mount the pig
When moving in an area with water that is 2 blocks deep, the pig sinks and the player is eventually dismounted
Thank you for your report!
After consideration, the issue is being closed as Working as Intended.
Please note, that mechanics of the game may change between updates.
Things such as graphics, sounds, world creation, biomes, redstone, villagers, and animals may not work the same in current versions.
Full Version History – Snapshot Version History – The official Minecraft feedback site
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki