Preheat oven to 350 degrees F.
In a large bowl, whisk together the oil, eggs, and sugar until combined. Add sour cream, sourdough discard, and vanilla, and whisk again until combined.
In a medium bowl, whisk together the flour, baking soda, baking powder, cinnamon, ginger, and salt. Add flour mixture to the liquid ingredients, and stir about 8-10 times to get some of the flour absorbed, but not all. Distribute carrots evenly over the top of the batter and, stir a few times, then add the pecans, and stir again until lightly distributed. You don't want to overmix, you should just barely get the flour streaks to disappear.
Grease or line an 8-inch pan with parchment; pour batter in. Bake at 350 degrees F for 28 to 31 minutes, until toothpick has just moist crumbs attached when you poke through the cake.
Let bars cool completely on a wire rack.
For the frosting, add cream cheese and butter to a medium size bowl. With a hand mixer or spatula, beat well until combined and smooth (I prefer hand mixer).
Add vanilla, maple syrup, powdered sugar, and salt, beat again until smooth and whipped. Frost cooled bars with the back of a spoon. Store bars in refrigerator for up to 4 days.