[MONDRIAN-2086] fixed dialect issue with native sum sql generation