未验证 提交 2742bf29 编写于 作者: S Shengliang Guan 提交者: GitHub

Merge pull request #16726 from taosdata/fix/TS-1699-V26

fix(query): V26 the name of fields maybe contain dot
......@@ -8481,7 +8481,15 @@ static bool check_expr_in_groupby_colum(SGroupbyExpr* pGroupbyExpr, SExprInfo* p
return false;
for (int32_t k = 0; k < pGroupbyExpr->numOfGroupCols ; ++k) {
pIndex = taosArrayGet(pGroupbyExpr->columnInfo, k);
if (!strcmp(pIndex->name,&pExpr->base.colInfo.name[1])){ // notes:first char is dot, skip one char.
// find last dot
char * name = strrchr(pExpr->base.colInfo.name, '.');
if(name)
name += 1;
else
name = pExpr->base.colInfo.name;
if (!strcmp(pIndex->name, name)){
return true;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册