Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
f2807216
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1187
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看板
未验证
提交
f2807216
编写于
7月 29, 2022
作者:
G
Ganlin Zhao
提交者:
GitHub
7月 29, 2022
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #15541 from taosdata/fix/TD-17009
fix(query): fix apercentile with interval crash issue
上级
75d7493c
93d27a87
变更
15
显示空白变更内容
内联
并排
Showing
15 changed file
with
222 addition
and
222 deletion
+222
-222
source/libs/function/src/builtins.c
source/libs/function/src/builtins.c
+3
-3
tests/system-test/1-insert/delete_data.py
tests/system-test/1-insert/delete_data.py
+9
-9
tests/system-test/1-insert/influxdb_line_taosc_insert.py
tests/system-test/1-insert/influxdb_line_taosc_insert.py
+28
-28
tests/system-test/1-insert/insertWithMoreVgroup.py
tests/system-test/1-insert/insertWithMoreVgroup.py
+34
-34
tests/system-test/1-insert/insert_drop.py
tests/system-test/1-insert/insert_drop.py
+1
-1
tests/system-test/1-insert/mutipythonnodebugtaosd.py
tests/system-test/1-insert/mutipythonnodebugtaosd.py
+15
-15
tests/system-test/1-insert/opentsdb_json_taosc_insert.py
tests/system-test/1-insert/opentsdb_json_taosc_insert.py
+56
-56
tests/system-test/1-insert/opentsdb_telnet_line_taosc_insert.py
...system-test/1-insert/opentsdb_telnet_line_taosc_insert.py
+33
-33
tests/system-test/1-insert/table_comment.py
tests/system-test/1-insert/table_comment.py
+4
-4
tests/system-test/1-insert/table_param_ttl.py
tests/system-test/1-insert/table_param_ttl.py
+1
-1
tests/system-test/1-insert/test_stmt_muti_insert_query.py
tests/system-test/1-insert/test_stmt_muti_insert_query.py
+8
-8
tests/system-test/1-insert/test_stmt_set_tbname_tag.py
tests/system-test/1-insert/test_stmt_set_tbname_tag.py
+12
-12
tests/system-test/1-insert/update_data.py
tests/system-test/1-insert/update_data.py
+9
-9
tests/system-test/1-insert/update_data_muti_rows.py
tests/system-test/1-insert/update_data_muti_rows.py
+7
-7
tests/system-test/2-query/distribute_agg_apercentile.py
tests/system-test/2-query/distribute_agg_apercentile.py
+2
-2
未找到文件。
source/libs/function/src/builtins.c
浏览文件 @
f2807216
...
...
@@ -2068,7 +2068,7 @@ const SBuiltinFuncDefinition funcMgtBuiltins[] = {
{
.
name
=
"apercentile"
,
.
type
=
FUNCTION_TYPE_APERCENTILE
,
.
classification
=
FUNC_MGT_AGG_FUNC
,
.
classification
=
FUNC_MGT_AGG_FUNC
|
FUNC_MGT_TIMELINE_FUNC
,
.
translateFunc
=
translateApercentile
,
.
getEnvFunc
=
getApercentileFuncEnv
,
.
initFunc
=
apercentileFunctionSetup
,
...
...
@@ -2083,7 +2083,7 @@ const SBuiltinFuncDefinition funcMgtBuiltins[] = {
},
{
.
name
=
"_apercentile_partial"
,
.
type
=
FUNCTION_TYPE_APERCENTILE_PARTIAL
,
.
type
=
FUNCTION_TYPE_APERCENTILE_PARTIAL
|
FUNC_MGT_TIMELINE_FUNC
,
.
classification
=
FUNC_MGT_AGG_FUNC
,
.
translateFunc
=
translateApercentilePartial
,
.
getEnvFunc
=
getApercentileFuncEnv
,
...
...
@@ -2096,7 +2096,7 @@ const SBuiltinFuncDefinition funcMgtBuiltins[] = {
{
.
name
=
"_apercentile_merge"
,
.
type
=
FUNCTION_TYPE_APERCENTILE_MERGE
,
.
classification
=
FUNC_MGT_AGG_FUNC
,
.
classification
=
FUNC_MGT_AGG_FUNC
|
FUNC_MGT_TIMELINE_FUNC
,
.
translateFunc
=
translateApercentileMerge
,
.
getEnvFunc
=
getApercentileFuncEnv
,
.
initFunc
=
apercentileFunctionSetup
,
...
...
tests/system-test/1-insert/delete_data.py
浏览文件 @
f2807216
tests/system-test/1-insert/influxdb_line_taosc_insert.py
浏览文件 @
f2807216
tests/system-test/1-insert/insertWithMoreVgroup.py
浏览文件 @
f2807216
tests/system-test/1-insert/insert_drop.py
浏览文件 @
f2807216
tests/system-test/1-insert/mutipythonnodebugtaosd.py
浏览文件 @
f2807216
tests/system-test/1-insert/opentsdb_json_taosc_insert.py
浏览文件 @
f2807216
tests/system-test/1-insert/opentsdb_telnet_line_taosc_insert.py
浏览文件 @
f2807216
tests/system-test/1-insert/table_comment.py
浏览文件 @
f2807216
tests/system-test/1-insert/table_param_ttl.py
浏览文件 @
f2807216
tests/system-test/1-insert/test_stmt_muti_insert_query.py
浏览文件 @
f2807216
tests/system-test/1-insert/test_stmt_set_tbname_tag.py
浏览文件 @
f2807216
tests/system-test/1-insert/update_data.py
浏览文件 @
f2807216
tests/system-test/1-insert/update_data_muti_rows.py
浏览文件 @
f2807216
tests/system-test/2-query/distribute_agg_apercentile.py
浏览文件 @
f2807216
...
...
@@ -141,8 +141,8 @@ class TDTestCase:
query_data
=
tdSql
.
queryResult
# nest query for support max
tdSql
.
query
(
f
"select apercentile(c2+2,10)+1 from (select max(c1) c2 from
{
dbname
}
.stb1)"
)
tdSql
.
checkData
(
0
,
0
,
31.000000000
)
#
tdSql.query(f"select apercentile(c2+2,10)+1 from (select max(c1) c2 from {dbname}.stb1)")
#
tdSql.checkData(0,0,31.000000000)
tdSql
.
query
(
f
"select apercentile(c1+2,10)+1 as c2 from (select ts ,c1 ,c2 from
{
dbname
}
.stb1)"
)
tdSql
.
checkData
(
0
,
0
,
7.560701700
)
tdSql
.
query
(
f
"select apercentile(a+2,10)+1 as c2 from (select ts ,abs(c1) a ,c2 from
{
dbname
}
.stb1)"
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录