From e783ab6e03234b58f53400d09dd65f2d7911bc52 Mon Sep 17 00:00:00 2001 From: "wenzhouwww@live.cn" Date: Thu, 19 May 2022 17:03:24 +0800 Subject: [PATCH] update case --- tests/system-test/0-others/udfTest.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/system-test/0-others/udfTest.py b/tests/system-test/0-others/udfTest.py index 73ae7646ca..e688d71de4 100644 --- a/tests/system-test/0-others/udfTest.py +++ b/tests/system-test/0-others/udfTest.py @@ -558,6 +558,14 @@ class TDTestCase: for aggregate_sql in udf2_sqls: tdSql.error(aggregate_sql) + tdSql.execute(" create function db as '/tmp/udf/libudf1.so' outputtype int bufSize 8 ") + tdSql.execute(" create aggregate function test as '/tmp/udf/libudf1.so' outputtype int bufSize 8 ") + tdSql.error(" select db(c1) from stb1 ") + tdSql.error(" select db(c1,c6), db(c6) from stb1 ") + tdSql.error(" select db(num1,num2), db(num1) from tb ") + tdSql.error(" select test(c1) from stb1 ") + tdSql.error(" select test(c1,c6), test(c6) from stb1 ") + tdSql.error(" select test(num1,num2), test(num1) from tb ") @@ -644,6 +652,7 @@ class TDTestCase: self.create_udf_function() # self.basic_udf_query() self.test_function_name() + def stop(self):