From 482afcf2880413d903495080ceb43564aef9feda Mon Sep 17 00:00:00 2001 From: Ganlin Zhao Date: Tue, 19 Apr 2022 18:16:29 +0800 Subject: [PATCH] refactor(query): refactor cast function TD-14837 TD-14843 TD-14904 --- source/libs/scalar/src/scalar.c | 3 --- 1 file changed, 3 deletions(-) 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; -- GitLab