@Override
      public Void call() {
        try (Statement stmt = conTestDb.createStatement()) {
          stmt.execute("create temporary function sleepMsUDF as '" + SleepMsUDF.class.getName() + "'");
          stmt.execute("SELECT sleepMsUDF(1, 10000)");
          results[0] = true;
        } catch (Exception e) {
          results[1] = e;
        } finally {
          latch.countDown();
        }
        return null;
      }
Get Detailed Table Information via jdbc
itests/hive-unit/src/test/java/org/apache/hive/jdbc/TestJdbcWithMiniHS2.java