[MONDRIAN-1512]  Correcting the inline SQL used by Impala.
(cherry picked from commit 2d37427)
Merge pull request #144 from mkambol/3.6-mon1512

[MONDRIAN-1512]  Correcting the inline SQL used by Impala.