static Var setCallParameter(String name, String typeName, String len, String scale, Var value, Exec exec) {
    TableClass hplClass = exec.getType(typeName);
    Var var =new Var(name, hplClass == null ? typeName : Var.Type.HPL_OBJECT.name(), len, scale, null);
    if (hplClass != null) {
      var.setValue(hplClass.newInstance());
    }
    var.cast(value);
    exec.addVariable(var);
    return var;
  }
Create a function or procedure parameter and set its value
hplsql/src/main/java/org/apache/hive/hplsql/functions/InMemoryFunctionRegistry.java