How can i create a java udf or python udf

Here’s an example of java udf: GitHub - dremio-hub/dremio-internal-function-example
For python udf, see this.