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