@Override
      public Map<String, String> getHiveVariable() {
        return SessionState.get().getHiveVariables();
      }
Split the line by semicolon by ignoring the ones in the single/double quotes.
cli/src/java/org/apache/hadoop/hive/cli/CliDriver.java