Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
d01bb6a8
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
d01bb6a8
编写于
6月 05, 2022
作者:
wafwerar
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(os): add other two win32 udf case
上级
fbdffd87
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
73 addition
and
57 deletion
+73
-57
tests/pytest/util/dnodes.py
tests/pytest/util/dnodes.py
+1
-1
tests/system-test/0-others/udf_create.py
tests/system-test/0-others/udf_create.py
+35
-27
tests/system-test/0-others/udf_restart_taosd.py
tests/system-test/0-others/udf_restart_taosd.py
+37
-29
未找到文件。
tests/pytest/util/dnodes.py
浏览文件 @
d01bb6a8
...
...
@@ -318,7 +318,7 @@ class TDDnode:
print
(
cmd
)
if
(
not
self
.
remoteIP
==
""
):
self
.
remoteExec
(
self
.
cfgDict
,
"tdDnodes.d
eploy(%d,updateCfgDict)
\n
tdDnodes.start(%d)"
%
(
self
.
index
,
self
.
index
))
self
.
remoteExec
(
self
.
cfgDict
,
"tdDnodes.d
nodes[%d].deployed=1
\n
tdDnodes.dnodes[%d].logDir=
\"
%%s/sim/dnode%%d/log
\"
%%(tdDnodes.dnodes[%d].path,%d)
\n
tdDnodes.dnodes[%d].cfgDir=
\"
%%s/sim/dnode%%d/cfg
\"
%%(tdDnodes.dnodes[%d].path,%d)
\n
tdDnodes.start(%d)"
%
(
self
.
index
-
1
,
self
.
index
-
1
,
self
.
index
-
1
,
self
.
index
,
self
.
index
-
1
,
self
.
index
-
1
,
self
.
index
,
self
.
index
))
self
.
running
=
1
else
:
if
os
.
system
(
cmd
)
!=
0
:
...
...
tests/system-test/0-others/udf_create.py
浏览文件 @
d01bb6a8
...
...
@@ -25,7 +25,7 @@ class TDTestCase:
projPath
=
selfPath
[:
selfPath
.
find
(
"tests"
)]
for
root
,
dirs
,
files
in
os
.
walk
(
projPath
):
if
(
"taosd"
in
files
):
if
(
"taosd"
in
files
or
"taosd.exe"
in
files
):
rootRealPath
=
os
.
path
.
dirname
(
os
.
path
.
realpath
(
root
))
if
(
"packaging"
not
in
rootRealPath
):
buildPath
=
root
[:
len
(
root
)
-
len
(
"/build/bin"
)]
...
...
@@ -41,11 +41,19 @@ class TDTestCase:
projPath
=
selfPath
[:
selfPath
.
find
(
"tests"
)]
print
(
projPath
)
libudf1
=
subprocess
.
Popen
(
'find %s -name "libudf1.so"|grep lib|head -n1'
%
projPath
,
shell
=
True
,
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
STDOUT
).
stdout
.
read
().
decode
(
"utf-8"
)
libudf2
=
subprocess
.
Popen
(
'find %s -name "libudf2.so"|grep lib|head -n1'
%
projPath
,
shell
=
True
,
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
STDOUT
).
stdout
.
read
().
decode
(
"utf-8"
)
os
.
system
(
"mkdir /tmp/udf/"
)
os
.
system
(
"cp %s /tmp/udf/ "
%
libudf1
.
replace
(
"
\n
"
,
""
))
os
.
system
(
"cp %s /tmp/udf/ "
%
libudf2
.
replace
(
"
\n
"
,
""
))
if
platform
.
system
().
lower
()
==
'windows'
:
self
.
libudf1
=
subprocess
.
Popen
(
'(for /r %s %%i in ("udf1.d*") do @echo %%i)|grep lib|head -n1'
%
projPath
,
shell
=
True
,
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
STDOUT
).
stdout
.
read
().
decode
(
"utf-8"
)
self
.
libudf2
=
subprocess
.
Popen
(
'(for /r %s %%i in ("udf2.d*") do @echo %%i)|grep lib|head -n1'
%
projPath
,
shell
=
True
,
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
STDOUT
).
stdout
.
read
().
decode
(
"utf-8"
)
if
(
not
tdDnodes
.
dnodes
[
0
].
remoteIP
==
""
):
tdDnodes
.
dnodes
[
0
].
remote_conn
.
get
(
tdDnodes
.
dnodes
[
0
].
config
[
"path"
]
+
'/debug/build/lib/libudf1.so'
,
projPath
+
"
\\
debug
\\
build
\\
lib
\\
"
)
tdDnodes
.
dnodes
[
0
].
remote_conn
.
get
(
tdDnodes
.
dnodes
[
0
].
config
[
"path"
]
+
'/debug/build/lib/libudf2.so'
,
projPath
+
"
\\
debug
\\
build
\\
lib
\\
"
)
self
.
libudf1
=
self
.
libudf1
.
replace
(
'udf1.dll'
,
'libudf1.so'
)
self
.
libudf2
=
self
.
libudf2
.
replace
(
'udf2.dll'
,
'libudf2.so'
)
else
:
self
.
libudf1
=
subprocess
.
Popen
(
'find %s -name "libudf1.so"|grep lib|head -n1'
%
projPath
,
shell
=
True
,
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
STDOUT
).
stdout
.
read
().
decode
(
"utf-8"
)
self
.
libudf2
=
subprocess
.
Popen
(
'find %s -name "libudf2.so"|grep lib|head -n1'
%
projPath
,
shell
=
True
,
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
STDOUT
).
stdout
.
read
().
decode
(
"utf-8"
)
self
.
libudf1
=
self
.
libudf1
.
replace
(
'
\r
'
,
''
).
replace
(
'
\n
'
,
''
)
self
.
libudf2
=
self
.
libudf2
.
replace
(
'
\r
'
,
''
).
replace
(
'
\n
'
,
''
)
def
prepare_data
(
self
):
...
...
@@ -136,11 +144,11 @@ class TDTestCase:
for
i
in
range
(
5
):
# create scalar functions
tdSql
.
execute
(
"create function udf1 as '
/tmp/udf/libudf1.so' outputtype int bufSize 8;"
)
tdSql
.
execute
(
"create function udf1 as '
%s' outputtype int bufSize 8;"
%
self
.
libudf1
)
# create aggregate functions
tdSql
.
execute
(
"create aggregate function udf2 as '
/tmp/udf/libudf2.so' outputtype double bufSize 8;"
)
tdSql
.
execute
(
"create aggregate function udf2 as '
%s' outputtype double bufSize 8;"
%
self
.
libudf2
)
functions
=
tdSql
.
getResult
(
"show functions"
)
function_nums
=
len
(
functions
)
...
...
@@ -161,11 +169,11 @@ class TDTestCase:
tdLog
.
info
(
"drop two udf functions success "
)
# create scalar functions
tdSql
.
execute
(
"create function udf1 as '
/tmp/udf/libudf1.so' outputtype int bufSize 8;"
)
tdSql
.
execute
(
"create function udf1 as '
%s' outputtype int bufSize 8;"
%
self
.
libudf1
)
# create aggregate functions
tdSql
.
execute
(
"create aggregate function udf2 as '
/tmp/udf/libudf2.so' outputtype double bufSize 8;"
)
tdSql
.
execute
(
"create aggregate function udf2 as '
%s' outputtype double bufSize 8;"
%
self
.
libudf2
)
functions
=
tdSql
.
getResult
(
"show functions"
)
function_nums
=
len
(
functions
)
...
...
@@ -533,8 +541,8 @@ class TDTestCase:
tdSql
.
query
(
"drop function udf2 "
)
# create function without buffer
tdSql
.
execute
(
"create function udf1 as '
/tmp/udf/libudf1.so' outputtype int"
)
tdSql
.
execute
(
"create aggregate function udf2 as '
/tmp/udf/libudf2.so' outputtype double"
)
tdSql
.
execute
(
"create function udf1 as '
%s' outputtype int"
%
self
.
libudf1
)
tdSql
.
execute
(
"create aggregate function udf2 as '
%s' outputtype double"
%
self
.
libudf2
)
udf1_sqls
,
udf2_sqls
=
self
.
try_query_sql
()
for
scalar_sql
in
udf1_sqls
:
...
...
@@ -549,8 +557,8 @@ class TDTestCase:
tdSql
.
query
(
"drop function udf2 "
)
# create function without buffer
tdSql
.
execute
(
"create aggregate function udf1 as '
/tmp/udf/libudf1.so' outputtype int bufSize 8 "
)
tdSql
.
execute
(
"create function udf2 as '
/tmp/udf/libudf2.so' outputtype double bufSize 8"
)
tdSql
.
execute
(
"create aggregate function udf1 as '
%s' outputtype int bufSize 8 "
%
self
.
libudf1
)
tdSql
.
execute
(
"create function udf2 as '
%s' outputtype double bufSize 8"
%
self
.
libudf2
)
udf1_sqls
,
udf2_sqls
=
self
.
try_query_sql
()
for
scalar_sql
in
udf1_sqls
:
...
...
@@ -558,8 +566,8 @@ 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
.
execute
(
" create function db as '
%s' outputtype int bufSize 8 "
%
self
.
libudf1
)
tdSql
.
execute
(
" create aggregate function test as '
%s' outputtype int bufSize 8 "
%
self
.
libudf1
)
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 "
)
...
...
@@ -607,17 +615,17 @@ class TDTestCase:
tdLog
.
info
(
" create function name is not build_in functions "
)
tdSql
.
execute
(
" drop function udf1 "
)
tdSql
.
execute
(
" drop function udf2 "
)
tdSql
.
error
(
"create function max as '
/tmp/udf/libudf1.so' outputtype int bufSize 8"
)
tdSql
.
error
(
"create aggregate function sum as '
/tmp/udf/libudf2.so' outputtype double bufSize 8"
)
tdSql
.
error
(
"create function max as '
/tmp/udf/libudf1.so' outputtype int bufSize 8"
)
tdSql
.
error
(
"create aggregate function sum as '
/tmp/udf/libudf2.so' outputtype double bufSize 8"
)
tdSql
.
error
(
"create aggregate function tbname as '
/tmp/udf/libudf2.so' outputtype double bufSize 8"
)
tdSql
.
error
(
"create aggregate function function as '
/tmp/udf/libudf2.so' outputtype double bufSize 8"
)
tdSql
.
error
(
"create aggregate function stable as '
/tmp/udf/libudf2.so' outputtype double bufSize 8"
)
tdSql
.
error
(
"create aggregate function union as '
/tmp/udf/libudf2.so' outputtype double bufSize 8"
)
tdSql
.
error
(
"create aggregate function 123 as '
/tmp/udf/libudf2.so' outputtype double bufSize 8"
)
tdSql
.
error
(
"create aggregate function 123db as '
/tmp/udf/libudf2.so' outputtype double bufSize 8"
)
tdSql
.
error
(
"create aggregate function mnode as '
/tmp/udf/libudf2.so' outputtype double bufSize 8"
)
tdSql
.
error
(
"create function max as '
%s' outputtype int bufSize 8"
%
self
.
libudf1
)
tdSql
.
error
(
"create aggregate function sum as '
%s' outputtype double bufSize 8"
%
self
.
libudf2
)
tdSql
.
error
(
"create function max as '
%s' outputtype int bufSize 8"
%
self
.
libudf1
)
tdSql
.
error
(
"create aggregate function sum as '
%s' outputtype double bufSize 8"
%
self
.
libudf2
)
tdSql
.
error
(
"create aggregate function tbname as '
%s' outputtype double bufSize 8"
%
self
.
libudf2
)
tdSql
.
error
(
"create aggregate function function as '
%s' outputtype double bufSize 8"
%
self
.
libudf2
)
tdSql
.
error
(
"create aggregate function stable as '
%s' outputtype double bufSize 8"
%
self
.
libudf2
)
tdSql
.
error
(
"create aggregate function union as '
%s' outputtype double bufSize 8"
%
self
.
libudf2
)
tdSql
.
error
(
"create aggregate function 123 as '
%s' outputtype double bufSize 8"
%
self
.
libudf2
)
tdSql
.
error
(
"create aggregate function 123db as '
%s' outputtype double bufSize 8"
%
self
.
libudf2
)
tdSql
.
error
(
"create aggregate function mnode as '
%s' outputtype double bufSize 8"
%
self
.
libudf2
)
def
restart_taosd_query_udf
(
self
):
...
...
tests/system-test/0-others/udf_restart_taosd.py
浏览文件 @
d01bb6a8
...
...
@@ -25,7 +25,7 @@ class TDTestCase:
projPath
=
selfPath
[:
selfPath
.
find
(
"tests"
)]
for
root
,
dirs
,
files
in
os
.
walk
(
projPath
):
if
(
"taosd"
in
files
):
if
(
"taosd"
in
files
or
"taosd.exe"
in
files
):
rootRealPath
=
os
.
path
.
dirname
(
os
.
path
.
realpath
(
root
))
if
(
"packaging"
not
in
rootRealPath
):
buildPath
=
root
[:
len
(
root
)
-
len
(
"/build/bin"
)]
...
...
@@ -41,11 +41,19 @@ class TDTestCase:
projPath
=
selfPath
[:
selfPath
.
find
(
"tests"
)]
print
(
projPath
)
libudf1
=
subprocess
.
Popen
(
'find %s -name "libudf1.so"|grep lib|head -n1'
%
projPath
,
shell
=
True
,
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
STDOUT
).
stdout
.
read
().
decode
(
"utf-8"
)
libudf2
=
subprocess
.
Popen
(
'find %s -name "libudf2.so"|grep lib|head -n1'
%
projPath
,
shell
=
True
,
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
STDOUT
).
stdout
.
read
().
decode
(
"utf-8"
)
os
.
system
(
"mkdir /tmp/udf/"
)
os
.
system
(
"cp %s /tmp/udf/ "
%
libudf1
.
replace
(
"
\n
"
,
""
))
os
.
system
(
"cp %s /tmp/udf/ "
%
libudf2
.
replace
(
"
\n
"
,
""
))
if
platform
.
system
().
lower
()
==
'windows'
:
self
.
libudf1
=
subprocess
.
Popen
(
'(for /r %s %%i in ("udf1.d*") do @echo %%i)|grep lib|head -n1'
%
projPath
,
shell
=
True
,
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
STDOUT
).
stdout
.
read
().
decode
(
"utf-8"
)
self
.
libudf2
=
subprocess
.
Popen
(
'(for /r %s %%i in ("udf2.d*") do @echo %%i)|grep lib|head -n1'
%
projPath
,
shell
=
True
,
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
STDOUT
).
stdout
.
read
().
decode
(
"utf-8"
)
if
(
not
tdDnodes
.
dnodes
[
0
].
remoteIP
==
""
):
tdDnodes
.
dnodes
[
0
].
remote_conn
.
get
(
tdDnodes
.
dnodes
[
0
].
config
[
"path"
]
+
'/debug/build/lib/libudf1.so'
,
projPath
+
"
\\
debug
\\
build
\\
lib
\\
"
)
tdDnodes
.
dnodes
[
0
].
remote_conn
.
get
(
tdDnodes
.
dnodes
[
0
].
config
[
"path"
]
+
'/debug/build/lib/libudf2.so'
,
projPath
+
"
\\
debug
\\
build
\\
lib
\\
"
)
self
.
libudf1
=
self
.
libudf1
.
replace
(
'udf1.dll'
,
'libudf1.so'
)
self
.
libudf2
=
self
.
libudf2
.
replace
(
'udf2.dll'
,
'libudf2.so'
)
else
:
self
.
libudf1
=
subprocess
.
Popen
(
'find %s -name "libudf1.so"|grep lib|head -n1'
%
projPath
,
shell
=
True
,
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
STDOUT
).
stdout
.
read
().
decode
(
"utf-8"
)
self
.
libudf2
=
subprocess
.
Popen
(
'find %s -name "libudf2.so"|grep lib|head -n1'
%
projPath
,
shell
=
True
,
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
STDOUT
).
stdout
.
read
().
decode
(
"utf-8"
)
self
.
libudf1
=
self
.
libudf1
.
replace
(
'
\r
'
,
''
).
replace
(
'
\n
'
,
''
)
self
.
libudf2
=
self
.
libudf2
.
replace
(
'
\r
'
,
''
).
replace
(
'
\n
'
,
''
)
def
prepare_data
(
self
):
...
...
@@ -136,11 +144,11 @@ class TDTestCase:
for
i
in
range
(
5
):
# create scalar functions
tdSql
.
execute
(
"create function udf1 as '
/tmp/udf/libudf1.so' outputtype int bufSize 8;"
)
tdSql
.
execute
(
"create function udf1 as '
%s' outputtype int bufSize 8;"
%
self
.
libudf1
)
# create aggregate functions
tdSql
.
execute
(
"create aggregate function udf2 as '
/tmp/udf/libudf2.so' outputtype double bufSize 8;"
)
tdSql
.
execute
(
"create aggregate function udf2 as '
%s' outputtype double bufSize 8;"
%
self
.
libudf2
)
functions
=
tdSql
.
getResult
(
"show functions"
)
function_nums
=
len
(
functions
)
...
...
@@ -161,11 +169,11 @@ class TDTestCase:
tdLog
.
info
(
"drop two udf functions success "
)
# create scalar functions
tdSql
.
execute
(
"create function udf1 as '
/tmp/udf/libudf1.so' outputtype int bufSize 8;"
)
tdSql
.
execute
(
"create function udf1 as '
%s' outputtype int bufSize 8;"
%
self
.
libudf1
)
# create aggregate functions
tdSql
.
execute
(
"create aggregate function udf2 as '
/tmp/udf/libudf2.so' outputtype double bufSize 8;"
)
tdSql
.
execute
(
"create aggregate function udf2 as '
%s' outputtype double bufSize 8;"
%
self
.
libudf2
)
functions
=
tdSql
.
getResult
(
"show functions"
)
function_nums
=
len
(
functions
)
...
...
@@ -533,8 +541,8 @@ class TDTestCase:
tdSql
.
query
(
"drop function udf2 "
)
# create function without buffer
tdSql
.
execute
(
"create function udf1 as '
/tmp/udf/libudf1.so' outputtype int"
)
tdSql
.
execute
(
"create aggregate function udf2 as '
/tmp/udf/libudf2.so' outputtype double"
)
tdSql
.
execute
(
"create function udf1 as '
%s' outputtype int"
%
self
.
libudf1
)
tdSql
.
execute
(
"create aggregate function udf2 as '
%s' outputtype double"
%
self
.
libudf2
)
udf1_sqls
,
udf2_sqls
=
self
.
try_query_sql
()
for
scalar_sql
in
udf1_sqls
:
...
...
@@ -549,8 +557,8 @@ class TDTestCase:
tdSql
.
query
(
"drop function udf2 "
)
# create function without buffer
tdSql
.
execute
(
"create aggregate function udf1 as '
/tmp/udf/libudf1.so' outputtype int bufSize 8 "
)
tdSql
.
execute
(
"create function udf2 as '
/tmp/udf/libudf2.so' outputtype double bufSize 8"
)
tdSql
.
execute
(
"create aggregate function udf1 as '
%s' outputtype int bufSize 8 "
%
self
.
libudf1
)
tdSql
.
execute
(
"create function udf2 as '
%s' outputtype double bufSize 8"
%
self
.
libudf2
)
udf1_sqls
,
udf2_sqls
=
self
.
try_query_sql
()
for
scalar_sql
in
udf1_sqls
:
...
...
@@ -558,8 +566,8 @@ 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
.
execute
(
" create function db as '
%s' outputtype int bufSize 8 "
%
self
.
libudf1
)
tdSql
.
execute
(
" create aggregate function test as '
%s' outputtype int bufSize 8 "
%
self
.
libudf1
)
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 "
)
...
...
@@ -607,17 +615,17 @@ class TDTestCase:
tdLog
.
info
(
" create function name is not build_in functions "
)
tdSql
.
execute
(
" drop function udf1 "
)
tdSql
.
execute
(
" drop function udf2 "
)
tdSql
.
error
(
"create function max as '
/tmp/udf/libudf1.so' outputtype int bufSize 8"
)
tdSql
.
error
(
"create aggregate function sum as '
/tmp/udf/libudf2.so' outputtype double bufSize 8"
)
tdSql
.
error
(
"create function max as '
/tmp/udf/libudf1.so' outputtype int bufSize 8"
)
tdSql
.
error
(
"create aggregate function sum as '
/tmp/udf/libudf2.so' outputtype double bufSize 8"
)
tdSql
.
error
(
"create aggregate function tbname as '
/tmp/udf/libudf2.so' outputtype double bufSize 8"
)
tdSql
.
error
(
"create aggregate function function as '
/tmp/udf/libudf2.so' outputtype double bufSize 8"
)
tdSql
.
error
(
"create aggregate function stable as '
/tmp/udf/libudf2.so' outputtype double bufSize 8"
)
tdSql
.
error
(
"create aggregate function union as '
/tmp/udf/libudf2.so' outputtype double bufSize 8"
)
tdSql
.
error
(
"create aggregate function 123 as '
/tmp/udf/libudf2.so' outputtype double bufSize 8"
)
tdSql
.
error
(
"create aggregate function 123db as '
/tmp/udf/libudf2.so' outputtype double bufSize 8"
)
tdSql
.
error
(
"create aggregate function mnode as '
/tmp/udf/libudf2.so' outputtype double bufSize 8"
)
tdSql
.
error
(
"create function max as '
%s' outputtype int bufSize 8"
%
self
.
libudf1
)
tdSql
.
error
(
"create aggregate function sum as '
%s' outputtype double bufSize 8"
%
self
.
libudf2
)
tdSql
.
error
(
"create function max as '
%s' outputtype int bufSize 8"
%
self
.
libudf1
)
tdSql
.
error
(
"create aggregate function sum as '
%s' outputtype double bufSize 8"
%
self
.
libudf2
)
tdSql
.
error
(
"create aggregate function tbname as '
%s' outputtype double bufSize 8"
%
self
.
libudf2
)
tdSql
.
error
(
"create aggregate function function as '
%s' outputtype double bufSize 8"
%
self
.
libudf2
)
tdSql
.
error
(
"create aggregate function stable as '
%s' outputtype double bufSize 8"
%
self
.
libudf2
)
tdSql
.
error
(
"create aggregate function union as '
%s' outputtype double bufSize 8"
%
self
.
libudf2
)
tdSql
.
error
(
"create aggregate function 123 as '
%s' outputtype double bufSize 8"
%
self
.
libudf2
)
tdSql
.
error
(
"create aggregate function 123db as '
%s' outputtype double bufSize 8"
%
self
.
libudf2
)
tdSql
.
error
(
"create aggregate function mnode as '
%s' outputtype double bufSize 8"
%
self
.
libudf2
)
def
restart_taosd_query_udf
(
self
):
...
...
@@ -629,8 +637,8 @@ class TDTestCase:
tdSql
.
query
(
"select udf2(sub1.c1 ,sub1.c2), udf2(sub2.c2 ,sub2.c1) from sub1, sub2 where sub1.ts=sub2.ts and sub1.c1 is not null"
)
tdSql
.
checkData
(
0
,
0
,
169.661427555
)
tdSql
.
checkData
(
0
,
1
,
169.661427555
)
tdDnodes
.
stop
(
1
)
tdDnodes
.
start
(
1
)
#
tdDnodes.stop(1)
#
tdDnodes.start(1)
time
.
sleep
(
2
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录