class BeamSqlTrimExpression extends BeamSqlExpression {

  static String trailingTrim(String containingStr, String targetStr) {
    int idx = containingStr.length() - targetStr.length();
    while (containingStr.startsWith(targetStr, idx)) {
      idx -= targetStr.length();
    }

    idx += targetStr.length();
    return containingStr.substring(0, idx);
  }

  public  BeamSqlTrimExpression(List<BeamSqlExpression> operands);

}