You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by li...@apache.org on 2022/06/29 06:07:33 UTC

[doris] branch master updated: [feature-wip](array-type) Use uppercase to describe columns with array type (#10193)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new d1055eacb4 [feature-wip](array-type) Use uppercase to describe columns with array type (#10193)
d1055eacb4 is described below

commit d1055eacb4255fc01ddd3acd1d3db50067832f3d
Author: Adonis Ling <ad...@gmail.com>
AuthorDate: Wed Jun 29 14:07:27 2022 +0800

    [feature-wip](array-type) Use uppercase to describe columns with array type (#10193)
    
    Use uppercase to describe columns with array type.
---
 fe/fe-core/src/main/java/org/apache/doris/catalog/ArrayType.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/fe/fe-core/src/main/java/org/apache/doris/catalog/ArrayType.java b/fe/fe-core/src/main/java/org/apache/doris/catalog/ArrayType.java
index 04775c2bf6..ff1b51d860 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/catalog/ArrayType.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/catalog/ArrayType.java
@@ -96,9 +96,9 @@ public class ArrayType extends Type {
     @Override
     public String toSql(int depth) {
         if (!containsNull) {
-            return "ARRAY<NOT_NULL(" + itemType.toSql(depth + 1) + ")>";
+            return "array<not_null(" + itemType.toSql(depth + 1) + ")>";
         } else {
-            return "ARRAY<" + itemType.toSql(depth + 1) + ">";
+            return "array<" + itemType.toSql(depth + 1) + ">";
         }
     }
 
@@ -158,7 +158,7 @@ public class ArrayType extends Type {
 
     @Override
     public String toString() {
-        return toSql(0);
+        return toSql(0).toUpperCase();
     }
 
     @Override


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