code: private void setHiveProperties(Properties props) throws SQLException {
      Preconditions.checkNotNull(this.conn, "The Hive connection must be set before any queries can be run");
  
      try (PreparedStatement preparedStatement = this.conn.prepareStatement("set ?=?")) {
        Enumeration<?> enumeration = props.propertyNames();
        while (enumeration.hasMoreElements()) {
          String propertyName = (String) enumeration.nextElement();
  
          if (propertyName.startsWith(HIVE_CONFIG_KEY_PREFIX)) {
            preparedStatement.setString(1, propertyName);
            preparedStatement.setString(2, props.getProperty(propertyName));
            preparedStatement.execute();
          }
        }
      }
    }
docs: Helper method that executes a series of "set ?=?" queries for the Hive connection in {@link HiveJdbcConnector#conn}.
  @param props specifies which set methods to run. For example, if the config contains "hive.mapred.min.split.size=100"
  then "set mapred.min.split.size=100" will be executed.
  @throws SQLException is thrown if there is a problem executing the "set" queries