The picture reveals it all. Thanks for posting it.
Look at the section on the left. The dark area at the bottom, left of the hole, is where the crack started. In other words, it started where the pedal spindle flange ate into the crank and caused a stress riser. If you turn your head and arrange the crank in your mind, you'll see how this fretting action worked with each pedal stroke. It is exactly where you would expect it for a downstroke. The dark area took some time, possibly months, to develop. It grew slowly from the stress riser, travelling inwards in an arc shape. Then, the crack jumped to the other side of the hole. That's the reddish stain you can see there. That phase lasted a short while too, with at least one wet ride whilst it developed. Then suddenly, boom, the silver section is where it cracked in one go - possibly within a few kilometers from start to end.
I suspect your pedal was not tightened enough and there was some play in there that made it all worse. The black rouge in the thread itself reveals that there was movement between pedal and crank, which should not be there.
It is not a faulty casting (cranks are forged after casting so they are made with the best and most expensive techniques possible) nor is it a warrantee repair. It is faulty assembly of pedal to crank.