calc stream tag size
This commit is contained in:
parent
dbc76c5361
commit
f26b7f78f5
|
@ -8135,7 +8135,9 @@ static int32_t adjustTagsForCreateTable(STranslateContext* pCxt, SCreateStreamSt
|
||||||
SColumnDefNode* pDef = (SColumnDefNode*)pTagDef;
|
SColumnDefNode* pDef = (SColumnDefNode*)pTagDef;
|
||||||
if (!dataTypeEqual(&pDef->dataType, &((SExprNode*)pTagExpr)->resType)) {
|
if (!dataTypeEqual(&pDef->dataType, &((SExprNode*)pTagExpr)->resType)) {
|
||||||
SNode* pFunc = NULL;
|
SNode* pFunc = NULL;
|
||||||
int32_t code = createCastFunc(pCxt, pTagExpr, pDef->dataType, &pFunc);
|
SDataType defType = pDef->dataType;
|
||||||
|
defType.bytes = calcTypeBytes(defType);
|
||||||
|
int32_t code = createCastFunc(pCxt, pTagExpr, defType, &pFunc);
|
||||||
if (TSDB_CODE_SUCCESS != code) {
|
if (TSDB_CODE_SUCCESS != code) {
|
||||||
return code;
|
return code;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue