In a diesel only air is compressed and fuel squirted in at the right time in each cylinder, like spark in a conventional engine. It takes heat and high compression ( high compression produces heat) to ignite the fuel, that is why for starting a cold engine a glow plug is used.