I did something similar on a long backpacking trip. I brought olive oil in a plastic bottle which I had chopped some small peppers into so I could add fat/ calories/flavor to backpacking food. On day eight, two days before we were hiking out, I was out of trail snacks, so I finished off the plastic bottle of oil because I was super hungry. It had about 200ml of oil in it I would say, so I just drank it, figuring what the hell, I need some calories.
I had stomach cramps so bad I couldn’t walk, I had to lie down. My backpacking partner had to put up my hammock for me, and after lying there in excruciating pain for about 90min, I then shit everything out of my stomach and bowels, which also hurt. Felt a little better but still had bad cramps. All in all, probably three hours of misery. We lost a whole afternoon of hiking, basically by the time I was ok again, we got about 2mi down trail for a better camp spot and just called it a day.