Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 516 Bytes

README.md

File metadata and controls

19 lines (14 loc) · 516 Bytes

iotdb-udf-demo

It's a simple demo for udf using in iotdb.

How to package

You can get a jar named iotdb-udf-demo-1.3.1-SNAPSHOT-jar-with-dependencies.jar under ./target/

mvn clean package -pl . -Pget-jar-with-dependencies

Register udf in iotdb using the jar

  1. put the jar under ext/udf
  2. execute the following command in cli
CREATE FUNCTION two_sum AS 'org.apache.iotdb.udf.demo.TwoSum';
  1. execute show functions in cli, you can see two_sum in the functions list.