refactor(query): refactor cast function

TD-14837
TD-14843
TD-14904
This commit is contained in:
Ganlin Zhao 2022-04-19 18:16:29 +08:00
parent 11028921b6
commit 482afcf288
1 changed files with 0 additions and 3 deletions

View File

@ -444,9 +444,6 @@ EDealRes sclRewriteFunction(SNode** pNode, SScalarCtx *ctx) {
res->node.resType.type = TSDB_DATA_TYPE_NULL;
} else {
res->node.resType = node->node.resType;
if (res->node.resType.type == TSDB_DATA_TYPE_NCHAR) {
res->node.resType.bytes *= TSDB_NCHAR_SIZE;
}
int32_t type = output.columnData->info.type;
if (IS_VAR_DATA_TYPE(type)) {
res->datum.p = output.columnData->pData;