This is an automated email from the ASF dual-hosted git repository.

kxiao pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-2.0 by this push:
     new c26ce63457 [fix](FE) varchar default size bug in branch2.0 fe ut 
(#23323)
c26ce63457 is described below

commit c26ce63457bf04f7eb7fd03852982d11d70417f1
Author: minghong <[email protected]>
AuthorDate: Tue Aug 22 21:18:00 2023 +0800

    [fix](FE) varchar default size bug in branch2.0 fe ut (#23323)
---
 .../test/java/org/apache/doris/planner/TableFunctionPlanTest.java    | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git 
a/fe/fe-core/src/test/java/org/apache/doris/planner/TableFunctionPlanTest.java 
b/fe/fe-core/src/test/java/org/apache/doris/planner/TableFunctionPlanTest.java
index 1918efee3a..645143ae6b 100644
--- 
a/fe/fe-core/src/test/java/org/apache/doris/planner/TableFunctionPlanTest.java
+++ 
b/fe/fe-core/src/test/java/org/apache/doris/planner/TableFunctionPlanTest.java
@@ -50,12 +50,12 @@ public class TableFunctionPlanTest {
         CreateDbStmt createDbStmt = (CreateDbStmt) 
UtFrameUtils.parseAndAnalyzeStmt(createDbStmtStr, ctx);
         Env.getCurrentEnv().createDb(createDbStmt);
         // 3. create table tbl1
-        String createTblStmtStr = "create table db1.tbl1(k1 int, k2 varchar, 
k3 varchar) "
+        String createTblStmtStr = "create table db1.tbl1(k1 int, k2 
varchar(1), k3 varchar(1)) "
                 + "DUPLICATE KEY(k1) distributed by hash(k1) buckets 3 
properties('replication_num' = '1');";
         CreateTableStmt createTableStmt = (CreateTableStmt) 
UtFrameUtils.parseAndAnalyzeStmt(createTblStmtStr, ctx);
         Env.getCurrentEnv().createTable(createTableStmt);
 
-        createTblStmtStr = "create table db1.tbl2(k1 int, k2 varchar, v1 
bitmap bitmap_union) "
+        createTblStmtStr = "create table db1.tbl2(k1 int, k2 varchar(1), v1 
bitmap bitmap_union) "
                 + "distributed by hash(k1) buckets 3 
properties('replication_num' = '1');";
         createTableStmt = (CreateTableStmt) 
UtFrameUtils.parseAndAnalyzeStmt(createTblStmtStr, ctx);
         Env.getCurrentEnv().createTable(createTableStmt);
@@ -402,6 +402,7 @@ public class TableFunctionPlanTest {
         Assert.assertTrue(explainString.contains("output slot id: 2 6"));
         Assert.assertTrue(explainString.contains("tuple ids: 1 3"));
         String formatString = explainString.replaceAll(" ", "");
+        System.out.println(formatString);
         Assert.assertTrue(formatString.contains(
                 "SlotDescriptor{id=0,col=k1,colUniqueId=0,type=int"
         ));


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to