@Test
  public void testUdfWhenUdfParamerAndActualParamDifferent() throws Throwable {
    String scriptText =
        "DROP TABLE IF EXISTS result;\n" +
            "CREATE TABLE result (col_d decimal(10,2));\n" +
            "INSERT INTO result VALUES(12345.67);\n" +
            "INSERT INTO result VALUES(98765.43);\n" +
            "CREATE FUNCTION hello(s String)\n" +
            "   RETURNS String\n" +
            "BEGIN\n" +
            "   RETURN 'Hello ' || s || '!';\n" +
            "END;\n" +
            "SELECT hello(col_d) FROM result;\n";
    testScriptFile(scriptText, args(), "Hello 12345.67!.*Hello 98765.43!");
  }
Start up a local Hive Server 2 for these tests
itests/hive-unit/src/test/java/org/apache/hive/beeline/TestHplSqlViaBeeLine.java