//QueryImpl rtn=new QueryImpl(headers,0,"query");
//rtn.setSql(sql);
// loop records
//Column[] orders = select.getOrderbys();
Operation where = select.getWhere();
boolean hasMaxrow=maxrows>-1 && !hasOrders;
// get target columns
QueryColumn[] trgColumns=new QueryColumn[headers.length];