Forrest logo
back to the create tool

odps-func:tldr:157a3

odps-func: Create a Java function using a `.jar` resource.
$ create function ${func_name} as ${path-to-package-Func} using '${package-jar}';
try on your machine

This command creates a function in a database system. Here is the breakdown of each component:

  • create function is the syntax used to define a new function.
  • ${func_name} represents the name you want to assign to the function. You should replace this placeholder with an actual name.
  • as indicates the start of the function's body.
  • ${path-to-package-Func} is the path to the function within a package. You should replace this placeholder with the actual path.
  • using '${package-jar}' specifies the package jar file that contains the function. You should replace ${package-jar} with the path to the jar file.

Overall, this command creates a function named ${func_name} that is defined using the code located at ${path-to-package-Func} within the package jar file specified in '${package-jar}'.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the create tool