class BeamSqlArithmeticExpression extends BeamSqlExpression {

  @Override
  public boolean accept() {
    if (operands.size() != 2) {
      return false;
    }

    for (BeamSqlExpression operand : operands) {
      if (!SqlTypeName.NUMERIC_TYPES.contains(operand.getOutputType())) {
        return false;
      }
    }
    return true;
  }

  protected  BeamSqlArithmeticExpression(List<BeamSqlExpression> operands);
  protected  BeamSqlArithmeticExpression(List<BeamSqlExpression> operands, SqlTypeName outputType);

}