change HAWQ sql for pxf