We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f6f2e8 commit 25f81a6Copy full SHA for 25f81a6
examples/udf.py
@@ -0,0 +1,10 @@
1
+#!/usr/bin/env python
2
+
3
+from chdb.udf import chdb_udf
4
+from chdb import query
5
6
+@chdb_udf()
7
+def sum_udf(lhs, rhs):
8
+ return int(lhs) + int(rhs)
9
10
+print(query("select sum_udf(12,22)"))
0 commit comments