diff --git a/source/libs/scalar/src/scalar.c b/source/libs/scalar/src/scalar.c index e6de165ab5..0432ae1df8 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;