String getPromptForCli() {
    String prompt;
    // read prompt configuration and substitute variables.
    HiveConf conf = getCommands().getHiveConf(true);
    prompt = conf.getVar(HiveConf.ConfVars.CLI_PROMPT);
    prompt = getCommands().substituteVariables(conf, prompt);
    return prompt + getFormattedDb() + "> ";
  }
Print the specified warning on the console, as well as
any warnings that are returned from {@link SQLWarning#getNextWarning}.

@param warn
         the {@link SQLWarning} to print
beeline/src/java/org/apache/hive/beeline/BeeLine.java