GroupHintParser { public static String removeTddlGroupHint(String sql) { String tddlHint = extractTDDLGroupHint(sql); if (null == tddlHint || "".equals(tddlHint)) { return sql; } sql = TStringUtil.removeBetweenWithSplitor(sql, ""); return sql; }  static GroupIndex convertHint2Index(String sql); static String extractTDDLGroupHint(String sql); static String removeTddlGroupHint(String sql); static String buildTddlGroupHint(String groupHint); static void main(String[] args); static Logger log; }
@Test public void testRemoveIndex() { String sql = "select * from tab"; String remove = GroupHintParser.removeTddlGroupHint(sql); Assert.assertEquals(remove, " select * from tab"); }