From 5d3805fe665ba0a7a1f0daf56fffa87d929161cc 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 e9e055f5acf3601..8e92f83274e2f5d 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