From 6862e45bc42a89704694c872fcea82f683a61ae2 Mon Sep 17 00:00:00 2001 From: slzhou Date: Tue, 10 May 2022 14:53:40 +0800 Subject: [PATCH 1/2] find one ci machine that will fail --- tests/script/tsim/query/udf.sim | 38 ++++++++++++++++----------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/tests/script/tsim/query/udf.sim b/tests/script/tsim/query/udf.sim index d2893ade57..cabb88ea09 100644 --- a/tests/script/tsim/query/udf.sim +++ b/tests/script/tsim/query/udf.sim @@ -65,25 +65,25 @@ if $data00 != 1.414213562 then endi sql insert into t2 values(now+2s, 1, null)(now+3s, null, 2); -#sql select udf1(f1, f2) from t2; -#print $rows , $data00 , $data10 , $data20 , $data30 -#if $rows != 4 then -# return -1 -#endi -#if $data00 != 88 then -# return -1 -#endi -#if $data10 != 88 then -# return -1 -#endi -# -#if $data20 != NULL then -# return -1 -#endi -# -#if $data30 != NULL then -# return -1 -#endi +sql select udf1(f1, f2) from t2; +print $rows , $data00 , $data10 , $data20 , $data30 +if $rows != 4 then + return -1 +endi +if $data00 != 88 then + return -1 +endi +if $data10 != 88 then + return -1 +endi + +if $data20 != NULL then + return -1 +endi + +if $data30 != NULL then + return -1 +endi sql select udf2(f1, f2) from t2; print $rows, $data00 From f2b8fa56da5d85401a68f57c2b75c7a65b78b802 Mon Sep 17 00:00:00 2001 From: liuyq-617 Date: Tue, 10 May 2022 16:21:28 +0800 Subject: [PATCH 2/2] modify copy_udf.sh script to use the right root directory --- tests/script/sh/copy_udf.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/script/sh/copy_udf.sh b/tests/script/sh/copy_udf.sh index 7b5b5f4720..c3c300fb7b 100755 --- a/tests/script/sh/copy_udf.sh +++ b/tests/script/sh/copy_udf.sh @@ -4,9 +4,10 @@ set +e #set -x echo "Executing copy_udf.sh" - -SCRIPT_DIR=`pwd` +SCRIPT_DIR=`dirname $0` cd $SCRIPT_DIR/../ +SCRIPT_DIR=`pwd` +echo "SCRIPT_DIR: ${SCRIPT_DIR}" IN_TDINTERNAL="community" if [[ "$SCRIPT_DIR" == *"$IN_TDINTERNAL"* ]]; then @@ -16,6 +17,7 @@ else fi TAOS_DIR=`pwd` +echo "find udf library in $TAOS_DIR" UDF1_DIR=`find $TAOS_DIR -name "libudf1.so"|grep lib|head -n1` UDF2_DIR=`find $TAOS_DIR -name "libudf2.so"|grep lib|head -n1`