Heat the pan, pour oil, add onion and carrot, and saute for 5 minutes, then add garlic, yellow split peas, spices, salt, and black pepper, mix well and leave it for 3-4 minutes. Then add water, and sugar and bring to a boil, when it boils lower the heat and simmer until the peas are well cooked. If the water dries up, add a little.