diff --git a/source/libs/scalar/src/scalar.c b/source/libs/scalar/src/scalar.c index e6de165ab5c3a36151c0a76d7cdff5e75dbb5c93..0432ae1df877fcc35ece5aac538a2f0b80d91b8f 100644 --- a/source/libs/scalar/src/scalar.c +++ b/source/libs/scalar/src/scalar.c @@ -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;