Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
20cf2ff3
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看板
未验证
提交
20cf2ff3
编写于
11月 26, 2021
作者:
M
Minglei Jin
提交者:
GitHub
11月 26, 2021
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #8751 from taosdata/fix/TS-426-D
fixed TS-426 on develop. group by can not ignore NULL
上级
9d4d08ea
7fed6fd6
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
16 addition
and
19 deletion
+16
-19
src/query/src/qExecutor.c
src/query/src/qExecutor.c
+0
-3
tests/pytest/functions/function_count_last_stab.py
tests/pytest/functions/function_count_last_stab.py
+12
-12
tests/script/general/parser/col_arithmetic_query.sim
tests/script/general/parser/col_arithmetic_query.sim
+4
-4
未找到文件。
src/query/src/qExecutor.c
浏览文件 @
20cf2ff3
...
@@ -1578,9 +1578,6 @@ static void doHashGroupbyAgg(SOperatorInfo* pOperator, SGroupbyOperatorInfo *pIn
...
@@ -1578,9 +1578,6 @@ static void doHashGroupbyAgg(SOperatorInfo* pOperator, SGroupbyOperatorInfo *pIn
int32_t
num
=
0
;
int32_t
num
=
0
;
for
(
int32_t
j
=
0
;
j
<
pSDataBlock
->
info
.
rows
;
++
j
)
{
for
(
int32_t
j
=
0
;
j
<
pSDataBlock
->
info
.
rows
;
++
j
)
{
char
*
val
=
((
char
*
)
pColInfoData
->
pData
)
+
bytes
*
j
;
char
*
val
=
((
char
*
)
pColInfoData
->
pData
)
+
bytes
*
j
;
if
(
isNull
(
val
,
type
))
{
continue
;
}
// Compare with the previous row of this column, and do not set the output buffer again if they are identical.
// Compare with the previous row of this column, and do not set the output buffer again if they are identical.
if
(
pInfo
->
prevData
==
NULL
)
{
if
(
pInfo
->
prevData
==
NULL
)
{
...
...
tests/pytest/functions/function_count_last_stab.py
浏览文件 @
20cf2ff3
...
@@ -42,22 +42,22 @@ class TDTestCase:
...
@@ -42,22 +42,22 @@ class TDTestCase:
%
(
self
.
ts
+
i
,
i
+
1
,
1
,
i
+
1
,
i
+
1
,
i
+
0.1
,
i
+
0.1
,
i
%
2
,
i
+
1
,
i
+
1
,
i
+
1
,
i
+
1
,
i
+
1
,
i
+
1
))
%
(
self
.
ts
+
i
,
i
+
1
,
1
,
i
+
1
,
i
+
1
,
i
+
0.1
,
i
+
0.1
,
i
%
2
,
i
+
1
,
i
+
1
,
i
+
1
,
i
+
1
,
i
+
1
,
i
+
1
))
tdSql
.
query
(
"select count(*),last(*) from stest group by col1"
)
tdSql
.
query
(
"select count(*),last(*) from stest group by col1"
)
tdSql
.
checkRows
(
1
0
)
tdSql
.
checkRows
(
1
1
)
tdSql
.
checkData
(
0
,
0
,
1
)
tdSql
.
checkData
(
1
,
0
,
1
)
tdSql
.
checkData
(
1
,
2
,
2
)
tdSql
.
checkData
(
2
,
2
,
2
)
tdSql
.
checkData
(
1
,
3
,
1
)
tdSql
.
checkData
(
2
,
3
,
1
)
tdSql
.
query
(
"select count(*),last(*) from stest group by col2"
)
tdSql
.
query
(
"select count(*),last(*) from stest group by col2"
)
tdSql
.
checkRows
(
1
)
tdSql
.
checkRows
(
2
)
tdSql
.
checkData
(
0
,
0
,
10
)
tdSql
.
checkData
(
1
,
0
,
10
)
tdSql
.
checkData
(
0
,
2
,
10
)
tdSql
.
checkData
(
1
,
2
,
10
)
tdSql
.
checkData
(
0
,
3
,
1
)
tdSql
.
checkData
(
1
,
3
,
1
)
tdSql
.
query
(
"select count(*),last(ts,stest.*) from stest group by col1"
)
tdSql
.
query
(
"select count(*),last(ts,stest.*) from stest group by col1"
)
tdSql
.
checkRows
(
1
0
)
tdSql
.
checkRows
(
1
1
)
tdSql
.
checkData
(
0
,
0
,
1
)
tdSql
.
checkData
(
1
,
0
,
1
)
tdSql
.
checkData
(
0
,
2
,
"2018-09-17 09:00:00"
)
tdSql
.
checkData
(
1
,
2
,
"2018-09-17 09:00:00"
)
tdSql
.
checkData
(
1
,
4
,
1
)
tdSql
.
checkData
(
2
,
4
,
1
)
...
...
tests/script/general/parser/col_arithmetic_query.sim
浏览文件 @
20cf2ff3
...
@@ -561,19 +561,19 @@ endi
...
@@ -561,19 +561,19 @@ endi
sql_error select first(c6) - last(c6) *12 / count(*) from $stb group by c3;
sql_error select first(c6) - last(c6) *12 / count(*) from $stb group by c3;
sql select first(c6) - last(c6) *12 / count(*) from $stb group by c5;
sql select first(c6) - last(c6) *12 / count(*) from $stb group by c5;
if $rows != 1
0
then
if $rows != 1
1
then
return -1
return -1
endi
endi
if $data00 !=
0.00000
0000 then
if $data00 !=
-0.00216
0000 then
return -1
return -1
endi
endi
if $data10 != 0.
9976
00000 then
if $data10 != 0.
0000
00000 then
return -1
return -1
endi
endi
if $data90 !=
8.9784
00000 then
if $data90 !=
7.9808
00000 then
return -1
return -1
endi
endi
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录