From e62f6f6bab2ba7eb0c8244a0d4e530dc2adb178a Mon Sep 17 00:00:00 2001 From: "zhongjian.xzj" Date: Mon, 23 Sep 2024 16:59:29 +0800 Subject: [PATCH] [opt](nereids) refine expression estimation --- .../java/org/apache/doris/nereids/types/StringType.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/types/StringType.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/types/StringType.java index e9e055f5acf360..8e92f83274e2f5 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/nereids/types/StringType.java +++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/types/StringType.java @@ -28,12 +28,7 @@ public class StringType extends CharacterType { public static final StringType INSTANCE = new StringType(); private StringType() { - super(CharacterType.DEFAULT_WIDTH); - } - - @Override - public int width() { - return len; + super(-1); } @Override