private static void populateDefaultParamDetails(List<HplsqlParser.Create_routine_param_itemContext> routineParamItem,
      Map<String, Integer> defaultParamNamesVsIndexes) {
    int formalCnt = routineParamItem.size();
    for (int i = 0; i < formalCnt; i++) {
      HplsqlParser.Create_routine_param_itemContext routineParamItemContext = routineParamItem.get(i);
      if (routineParamItemContext.dtype_default() != null) {
        defaultParamNamesVsIndexes.put(routineParamItemContext.ident().getText(), i);
      }
    }
  }
Set parameters for user-defined function call
hplsql/src/main/java/org/apache/hive/hplsql/functions/InMemoryFunctionRegistry.java