String getPrompt() {
    if (isBeeLine) {
      return getPromptForBeeline();
    } else {
      return getPromptForCli();
    }
  }
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