TBD-1222: remove the PreparedStatement usage which is not fully supported by Impala