You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2020/12/23 01:36:04 UTC

[incubator-doris] branch master updated: [Bug-Fix] Fix 'Malformed packet' error when desc OlapTable with Rollup (#4455) (#5115)

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

morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git


The following commit(s) were added to refs/heads/master by this push:
     new cf3f830  [Bug-Fix] Fix 'Malformed packet' error when desc OlapTable with Rollup (#4455) (#5115)
cf3f830 is described below

commit cf3f830e9a10ed91e53b918f805cdb6f418a6367
Author: 曹建华 <ca...@killxdcj.com>
AuthorDate: Wed Dec 23 09:34:12 2020 +0800

    [Bug-Fix] Fix 'Malformed packet' error when desc OlapTable with Rollup (#4455) (#5115)
    
    Fix 'Malformed packet' error when desc OlapTable with Rollup #4455
---
 .../src/main/java/org/apache/doris/analysis/DescribeStmt.java  | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/fe/fe-core/src/main/java/org/apache/doris/analysis/DescribeStmt.java b/fe/fe-core/src/main/java/org/apache/doris/analysis/DescribeStmt.java
index 721c313..2fd4865 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/analysis/DescribeStmt.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/analysis/DescribeStmt.java
@@ -46,6 +46,7 @@ import com.google.common.collect.Lists;
 import org.apache.commons.lang.StringUtils;
 
 import java.util.Arrays;
+import java.util.ArrayList;
 import java.util.LinkedList;
 import java.util.List;
 import java.util.Map;
@@ -76,7 +77,7 @@ public class DescribeStmt extends ShowStmt {
                     .build();
 
     // empty col num equals to DESC_OLAP_TABLE_ALL_META_DATA.size()
-    private static final List<String> EMPTY_ROW = Arrays.asList("", "", "", "", "", "", "", "");
+    private static final List<String> EMPTY_ROW = initEmptyRow();
 
     private TableName dbTableName;
     private ProcNodeInterface node;
@@ -274,4 +275,11 @@ public class DescribeStmt extends ShowStmt {
         return toSql();
     }
 
+    private static List<String> initEmptyRow() {
+        List<String> emptyRow = new ArrayList<>(DESC_OLAP_TABLE_ALL_META_DATA.getColumns().size());
+        for (int i = 0; i < DESC_OLAP_TABLE_ALL_META_DATA.getColumns().size(); i++) {
+            emptyRow.add("");
+        }
+        return emptyRow;
+    }
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org