private static void addJar(ArrayList<String> sql, String dir, String jarNamePrefix) {
    String jarName = findJarLike(dir, jarNamePrefix);
    if (isNotBlank(jarName)) {
      sql.add("ADD JAR " + Paths.get(dir, jarName));
    }
  }
Register JARs, FILEs and CREATE TEMPORARY FUNCTION for UDF call
hplsql/src/main/java/org/apache/hive/hplsql/Exec.java