Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
8ff39302
T
TDengine
项目概览
taosdata
/
TDengine
大约 2 年 前同步成功
通知
1192
Star
22018
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看板
提交
8ff39302
编写于
1月 20, 2022
作者:
G
Ganlin Zhao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[TD-13109]<fix>(query): Disable usage of match/nmatch/like/in/is(not) NULL operators in select
上级
1a07afa1
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
85 addition
and
0 deletion
+85
-0
tests/develop-test/2-query/func_compare.py
tests/develop-test/2-query/func_compare.py
+85
-0
未找到文件。
tests/develop-test/2-query/func_compare.py
浏览文件 @
8ff39302
...
@@ -297,6 +297,91 @@ class TDTestCase:
...
@@ -297,6 +297,91 @@ class TDTestCase:
tdSql
.
error
(
'select percentile(value, 50) or diff(value) = ceil(value) and apercentile(value, 50) from tb'
)
tdSql
.
error
(
'select percentile(value, 50) or diff(value) = ceil(value) and apercentile(value, 50) from tb'
)
tdSql
.
error
(
'select floor(3.5) or round(3.5) and ceil(3.5) > true and round(3.5) or 3 from tb'
)
tdSql
.
error
(
'select floor(3.5) or round(3.5) and ceil(3.5) > true and round(3.5) or 3 from tb'
)
#operator: is NULL
tdSql
.
error
(
'select count(*) is NULL from tb;'
)
tdSql
.
error
(
'select avg(value) is NULL from tb;'
)
tdSql
.
error
(
'select twa(value) is NULL from tb;'
)
tdSql
.
error
(
'select sum(value) is NULL from tb;'
)
tdSql
.
error
(
'select stddev(value) is NULL from tb;'
)
tdSql
.
error
(
'select min(value) is NULL from tb;'
)
tdSql
.
error
(
'select max(value) is NULL from tb;'
)
tdSql
.
error
(
'select first(*) is NULL from tb;'
)
tdSql
.
error
(
'select last(*) is NULL from tb;'
)
tdSql
.
error
(
'select top(value, 3) is NULL or bottom(value,3) is NULL from tb;'
)
tdSql
.
error
(
'select percentile(value, 50) is NULL or apercentile(value, 50) is NULL from tb'
)
tdSql
.
error
(
'select diff(value) is NULL or ceil(value) is NULL from tb'
)
tdSql
.
error
(
'select floor(3.5) is NULL or round(3.5) is NULL or ceil(3.5) is NULL from tb'
)
#operator: is not NULL
tdSql
.
error
(
'select count(*) is not NULL from tb;'
)
tdSql
.
error
(
'select avg(value) is not NULL from tb;'
)
tdSql
.
error
(
'select twa(value) is not NULL from tb;'
)
tdSql
.
error
(
'select sum(value) is not NULL from tb;'
)
tdSql
.
error
(
'select stddev(value) is not NULL from tb;'
)
tdSql
.
error
(
'select min(value) is not NULL from tb;'
)
tdSql
.
error
(
'select max(value) is not NULL from tb;'
)
tdSql
.
error
(
'select first(*) is not NULL from tb;'
)
tdSql
.
error
(
'select last(*) is not NULL from tb;'
)
tdSql
.
error
(
'select top(value, 3) is not NULL or bottom(value,3) is not NULL from tb;'
)
tdSql
.
error
(
'select percentile(value, 50) is not NULL or apercentile(value, 50) is not NULL from tb'
)
tdSql
.
error
(
'select diff(value) is not NULL or ceil(value) is not NULL from tb'
)
tdSql
.
error
(
'select floor(3.5) is not NULL or round(3.5) is not NULL or ceil(3.5) is not NULL from tb'
)
#operator: like
tdSql
.
error
(
'select count(*) like "abc" from tb;'
)
tdSql
.
error
(
'select avg(value) like "abc" from tb;'
)
tdSql
.
error
(
'select twa(value) like "abc" from tb;'
)
tdSql
.
error
(
'select sum(value) like "abc" from tb;'
)
tdSql
.
error
(
'select stddev(value) like "abc" from tb;'
)
tdSql
.
error
(
'select min(value) like "abc" from tb;'
)
tdSql
.
error
(
'select max(value) like "abc" from tb;'
)
tdSql
.
error
(
'select first(*) like "abc" from tb;'
)
tdSql
.
error
(
'select last(*) like "abc" from tb;'
)
tdSql
.
error
(
'select top(value, 3) like "abc" or bottom(value,3) like "abc" from tb;'
)
tdSql
.
error
(
'select percentile(value, 50) like "abc" or apercentile(value, 50) like "abc" from tb'
)
tdSql
.
error
(
'select diff(value) like "abc" or ceil(value) like "abc" from tb'
)
tdSql
.
error
(
'select floor(3.5) like "abc" or round(3.5) like "abc" or ceil(3.5) like "abc" from tb'
)
#operator: match
tdSql
.
error
(
'select count(*) match "abc" from tb;'
)
tdSql
.
error
(
'select avg(value) match "abc" from tb;'
)
tdSql
.
error
(
'select twa(value) match "abc" from tb;'
)
tdSql
.
error
(
'select sum(value) match "abc" from tb;'
)
tdSql
.
error
(
'select stddev(value) match "abc" from tb;'
)
tdSql
.
error
(
'select min(value) match "abc" from tb;'
)
tdSql
.
error
(
'select max(value) match "abc" from tb;'
)
tdSql
.
error
(
'select first(*) match "abc" from tb;'
)
tdSql
.
error
(
'select last(*) match "abc" from tb;'
)
tdSql
.
error
(
'select top(value, 3) match "abc" or bottom(value,3) match "abc" from tb;'
)
tdSql
.
error
(
'select percentile(value, 50) match "abc" or apercentile(value, 50) match "abc" from tb'
)
tdSql
.
error
(
'select diff(value) match "abc" or ceil(value) match "abc" from tb'
)
tdSql
.
error
(
'select floor(3.5) match "abc" or round(3.5) match "abc" or ceil(3.5) match "abc" from tb'
)
#operator: nmatch
tdSql
.
error
(
'select count(*) nmatch "abc" from tb;'
)
tdSql
.
error
(
'select avg(value) nmatch "abc" from tb;'
)
tdSql
.
error
(
'select twa(value) nmatch "abc" from tb;'
)
tdSql
.
error
(
'select sum(value) nmatch "abc" from tb;'
)
tdSql
.
error
(
'select stddev(value) nmatch "abc" from tb;'
)
tdSql
.
error
(
'select min(value) nmatch "abc" from tb;'
)
tdSql
.
error
(
'select max(value) nmatch "abc" from tb;'
)
tdSql
.
error
(
'select first(*) nmatch "abc" from tb;'
)
tdSql
.
error
(
'select last(*) nmatch "abc" from tb;'
)
tdSql
.
error
(
'select top(value, 3) nmatch "abc" or bottom(value,3) nmatch "abc" from tb;'
)
tdSql
.
error
(
'select percentile(value, 50) nmatch "abc" or apercentile(value, 50) nmatch "abc" from tb'
)
tdSql
.
error
(
'select diff(value) nmatch "abc" or ceil(value) nmatch "abc" from tb'
)
tdSql
.
error
(
'select floor(3.5) nmatch "abc" or round(3.5) nmatch "abc" or ceil(3.5) nmatch "abc" from tb'
)
#operator: in
tdSql
.
error
(
'select count(*) in 1 from tb;'
)
tdSql
.
error
(
'select avg(value) in (1, 2, 3) from tb;'
)
tdSql
.
error
(
'select twa(value) in 1.0 from tb;'
)
tdSql
.
error
(
'select sum(value) in (1.0, 2.0, 3.0) from tb;'
)
tdSql
.
error
(
'select min(value) in (true, false, true) from tb;'
)
tdSql
.
error
(
'select tbname in (
\'
acd
\'
,
\'
bce
\'
) from tb;'
)
tdSql
.
error
(
'select t in ("acd", "bce") from tb;'
)
tdSql
.
error
(
'select top(value, 3) in (1,2,3) and ceil(value) in (1.0,2.0,3.0) or last(*) in ("abc","cde") from tb;'
)
tdSql
.
execute
(
'drop database db'
)
tdSql
.
execute
(
'drop database db'
)
def
stop
(
self
):
def
stop
(
self
):
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录